/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_fm.c | 26 #include <qlge.h> 31 ql_fm_ereport(qlge_t *qlge, char *detail) argument 38 if (DDI_FM_EREPORT_CAP(qlge->fm_capabilities)) { 39 ddi_fm_ereport_post(qlge->dip, buf, ena, DDI_NOSLEEP,
|
H A D | qlge_mpi.c | 26 #include <qlge.h> 35 ql_poll_processor_intr(qlge_t *qlge, uint8_t timeout) argument 39 if (ql_wait_reg_bit(qlge, REG_STATUS, STS_PI, BIT_SET, timeout) 51 ql_wait_processor_addr_reg_ready(qlge_t *qlge) argument 55 if (ql_wait_reg_bit(qlge, REG_PROCESSOR_ADDR, 69 ql_write_processor_data(qlge_t *qlge, uint32_t addr, uint32_t data) argument 74 if (ql_wait_processor_addr_reg_ready(qlge) == DDI_FAILURE) 77 ql_write_reg(qlge, REG_PROCESSOR_DATA, data); 79 ql_write_reg(qlge, REG_PROCESSOR_ADDR, addr); 81 if (ql_wait_processor_addr_reg_ready(qlge) 95 ql_read_processor_data(qlge_t *qlge, uint32_t addr, uint32_t *data) argument 125 ql_read_mailbox_cmd(qlge_t *qlge, mbx_data_t *mbx_buf, uint32_t count) argument 169 ql_issue_mailbox_cmd(qlge_t *qlge, mbx_cmd_t *mbx_cmd) argument 228 ql_issue_mailbox_cmd_and_poll_rsp(qlge_t *qlge, mbx_cmd_t *mbx_cmd, mbx_data_t *p_results) argument 293 ql_issue_mailbox_cmd_and_wait_rsp(qlge_t *qlge, mbx_cmd_t *mbx_cmd) argument 363 ql_async_event_parser(qlge_t *qlge, mbx_data_t *mbx_cmds) argument 668 ql_do_mpi_intr(qlge_t *qlge) argument 710 ql_mbx_test(qlge_t *qlge) argument 768 ql_mbx_test2(qlge_t *qlge) argument 816 ql_get_fw_state(qlge_t *qlge, uint32_t *fw_state_ptr) argument 855 ql_set_IDC_Req(qlge_t *qlge, uint8_t dest_functions, uint8_t timeout) argument 926 ql_set_mpi_port_config(qlge_t *qlge, port_cfg_info_t new_cfg) argument 956 ql_set_pause_mode(qlge_t *qlge) argument 973 ql_set_loop_back_mode(qlge_t *qlge) argument 996 ql_get_port_cfg(qlge_t *qlge) argument 1038 qlge_get_link_status(qlge_t *qlge, struct qlnic_link_status_info *link_status_ptr) argument 1085 ql_get_firmware_version(qlge_t *qlge, struct qlnic_mpi_version_info *mpi_version_ptr) argument 1148 ql_trigger_system_error_event(qlge_t *qlge) argument 1168 ql_reset_mpi_risc(qlge_t *qlge) argument 1186 ql_read_risc_ram(qlge_t *qlge, uint32_t risc_address, uint64_t bp, uint32_t word_count) argument [all...] |
H A D | qlge_flash.c | 26 #include <qlge.h> 41 ql_flash_id(qlge_t *qlge) argument 50 rval = ql_read_flash(qlge, FLASH_CONF_ADDR | 0x300 | FLASH_RES_CMD, 53 __func__, qlge->instance, fdata)); 57 rval = ql_read_flash(qlge, FLASH_CONF_ADDR | 0x0400 | FLASH_RDID_CMD, 62 __func__, qlge->instance, fdata); 64 qlge->flash_info.flash_manuf = LSB(LSW(fdata)); 65 qlge->flash_info.flash_id = MSB(LSW(fdata)); 66 qlge->flash_info.flash_cap = LSB(MSW(fdata)); 69 __func__, qlge 81 qlge_dump_fcode(qlge_t *qlge, uint8_t *dp, uint32_t size, uint32_t startpos) argument 133 ql_erase_and_write_to_flash(qlge_t *qlge, uint8_t *dp, uint32_t size, uint32_t faddr) argument 208 get_sector_number(qlge_t *qlge, uint32_t faddr, uint32_t *psector) argument 219 qlge_load_flash(qlge_t *qlge, uint8_t *dp, uint32_t len, uint32_t faddr) argument 308 ql_check_pci(qlge_t *qlge, uint8_t *buf, uint32_t *nextpos) argument 406 ql_find_flash_layout_table_data_structure_addr(qlge_t *qlge) argument 465 ql_flash_fltds(qlge_t *qlge) argument 523 ql_flash_flt(qlge_t *qlge) argument 654 ql_flash_desc(qlge_t *qlge) argument 725 ql_flash_nic_config(qlge_t *qlge) argument 835 ql_flash_vpd(qlge_t *qlge, uint8_t *buf) argument 884 ql_get_flash_params(qlge_t *qlge) argument 946 ql_setup_flash(qlge_t *qlge) argument 1026 ql_wait_flash_reg_ready(qlge_t *qlge, uint32_t wait_bit) argument 1065 ql_read_flash(qlge_t *qlge, uint32_t faddr, uint32_t *bp) argument 1081 ql_read_flash_status(qlge_t *qlge, uint8_t *value) argument 1102 ql_flash_write_enable(qlge_t *qlge) argument 1138 ql_flash_erase_sector(qlge_t *qlge, uint32_t sectorAddr) argument 1184 ql_write_flash(qlge_t *qlge, uint32_t addr, uint32_t data) argument 1225 ql_unprotect_flash(qlge_t *qlge) argument 1269 ql_protect_flash(qlge_t *qlge) argument 1316 ql_write_flash_test(qlge_t *qlge, uint32_t test_addr) argument 1360 ql_write_flash_test2(qlge_t *qlge, uint32_t test_addr) argument 1396 ql_sem_flash_lock(qlge_t *qlge) argument 1408 ql_sem_flash_unlock(qlge_t *qlge) argument [all...] |
H A D | qlge_gld.c | 27 #include <qlge.h> 86 qlge_t *qlge = (qlge_t *)arg; local 92 mutex_enter(&qlge->gen_mutex); 93 if (qlge->mac_flags == QL_MAC_SUSPENDED) { 94 mutex_exit(&qlge->gen_mutex); 97 mutex_enter(&qlge->hw_mutex); 98 qlge->mac_flags = QL_MAC_INIT; 103 (void) ql_unicst_set(qlge, 104 (uint8_t *)qlge->unicst_addr[0].addr.ether_addr_octet, 0); 105 qlge 127 qlge_t *qlge = (qlge_t *)arg; local 145 qlge_t *qlge = (qlge_t *)arg; local 186 qlge_t *qlge = (qlge_t *)arg; local 217 qlge_t *qlge = (qlge_t *)arg; local 411 ql_unicst_set(qlge_t *qlge, const uint8_t *macaddr, int slot) argument 445 qlge_t *qlge = (qlge_t *)arg; local 471 qlge_t *qlge = (qlge_t *)arg; local 546 qlge_t *qlge = (qlge_t *)arg; local 694 qlge_set_priv_prop(qlge_t *qlge, const char *pr_name, uint_t pr_valsize, const void *pr_val) argument 735 qlge_t *qlge = barg; local 796 qlge_get_priv_prop(qlge_t *qlge, const char *pr_name, uint_t pr_valsize, void *pr_val) argument 821 qlge_t *qlge = barg; local 909 qlge_t *qlge = (qlge_t *)arg; local 954 ql_gld3_init(qlge_t *qlge, mac_register_t *macp) argument [all...] |
H A D | qlge_dbg.c | 26 #include <qlge.h> 44 ql_get8(qlge_t *qlge, uint32_t index) argument 48 ret = (uint8_t)ddi_get8(qlge->dev_handle, 49 (uint8_t *)(((caddr_t)qlge->iobase) + index)); 57 ql_get16(qlge_t *qlge, uint32_t index) argument 61 ret = (uint16_t)ddi_get16(qlge->dev_handle, 62 (uint16_t *)(void *)(((caddr_t)qlge->iobase) + index)); 70 ql_get32(qlge_t *qlge, uint32_t index) argument 74 ret = ddi_get32(qlge->dev_handle, 75 (uint32_t *)(void *)(((caddr_t)qlge 83 ql_put8(qlge_t *qlge, uint32_t index, uint8_t data) argument 93 ql_put16(qlge_t *qlge, uint32_t index, uint16_t data) argument 103 ql_put32(qlge_t *qlge, uint32_t index, uint32_t data) argument 113 ql_read_reg(qlge_t *qlge, uint32_t reg) argument 124 ql_write_reg(qlge_t *qlge, uint32_t reg, uint32_t data) argument 133 ql_sem_lock(qlge_t *qlge, uint32_t sem_mask, uint32_t sem_bits) argument 147 ql_wait_reg_bit(qlge_t *qlge, uint32_t reg, uint32_t wait_bit, int set, uint32_t delay) argument 195 ql_dump_all_contrl_regs(qlge_t *qlge) argument 471 ql_dump_cqicb(qlge_t *qlge, struct cqicb_t *cqicb) argument 527 ql_dump_wqicb(qlge_t *qlge, struct wqicb_t *wqicb) argument 559 ql_dump_req_pkt(qlge_t *qlge, struct ob_mac_iocb_req *pkt, void *oal, int number) argument 628 ql_dump_pci_config(qlge_t *qlge) argument 791 read_ctrl_reg_set(qlge_t *qlge, caddr_t bufp) argument 832 ql_get_flash_table_region_info(qlge_t *qlge, uint32_t region, uint32_t *addr, uint32_t *size) argument 902 ql_get_pci_bus_info(qlge_t *qlge, uint32_t *pci_bus_info_ptr) argument 929 build_init_pkt_header(qlge_t *qlge, ioctl_header_info_t *pheader, uint32_t size) argument 956 ql_chip_ioctl(qlge_t *qlge, queue_t *q, mblk_t *mp) argument 1488 qlge_set_loop_mode(qlge_t *qlge, uint32_t mode) argument 1531 ql_loop_ioctl(qlge_t *qlge, queue_t *wq, mblk_t *mp, struct iocblk *iocp) argument 1586 ql_8xxx_binary_core_dump_with_header(qlge_t *qlge, caddr_t buf, uint32_t *len_ptr) argument 1621 ql_8xxx_binary_register_dump_with_header(qlge_t *qlge, caddr_t buf, uint32_t *len_ptr) argument 1666 ql_binary_core_dump(qlge_t *qlge, uint32_t requested_dumps, uint32_t *len_ptr) argument 1771 ql_unpause_mpi_risc(qlge_t *qlge) argument 1788 ql_pause_mpi_risc(qlge_t *qlge) argument 1809 ql_get_intr_states(qlge_t *qlge, uint32_t *buf) argument 1824 ql_read_serdes_reg(qlge_t *qlge, uint32_t reg, uint32_t *data) argument 1849 ql_get_xgmac_regs(qlge_t *qlge, uint32_t *buf) argument 2123 ql_get_mpi_regs(qlge_t *qlge, uint32_t *buf, uint32_t offset, uint32_t count) argument 2143 ql_get_mpi_shadow_regs(qlge_t *qlge, uint32_t *buf) argument 2175 ql_get_probe(qlge_t *qlge, uint32_t clock, uint8_t *valid, uint32_t *buf) argument 2205 ql_get_probe_dump(qlge_t *qlge, uint32_t *buf) argument 2368 ql_get_routing_index_registers(qlge_t *qlge, uint32_t *buf) argument 2406 ql_get_mac_protocol_registers(qlge_t *qlge, uint32_t *buf) argument 2510 ql_get_serdes_regs(qlge_t *qlge, struct ql_mpi_coredump *mpi_coredump) argument 2591 ql_get_ets_regs(qlge_t *qlge, uint32_t *buf) argument 2622 ql_8xxx_binary_core_dump(qlge_t *qlge, ql_mpi_coredump_t *mpi_coredump) argument [all...] |
H A D | qlge.c | 26 #include <qlge.h> 67 static void ql_stop_timer(qlge_t *qlge); 68 static void ql_fm_fini(qlge_t *qlge); 169 ql_read_sh_reg(qlge_t *qlge, struct rx_ring *rx_ring) argument 174 (void) ddi_dma_sync(qlge->host_copy_shadow_dma_attr.dma_handle, 178 rtn = ddi_get32(qlge->host_copy_shadow_dma_attr.acc_handle, 212 ql_pci_config(qlge_t *qlge) argument 216 qlge->vendor_id = (uint16_t)pci_config_get16(qlge->pci_handle, 218 qlge 252 ql_set_mac_info(qlge_t *qlge) argument 313 ql_write_doorbell_reg(qlge_t *qlge, uint32_t *addr, uint32_t data) argument 322 ql_read_doorbell_reg(qlge_t *qlge, uint32_t *addr) argument 338 ql_wait_reg_rdy(qlge_t *qlge, uint32_t reg, uint32_t bit, uint32_t err_bit) argument 368 ql_wait_cfg(qlge_t *qlge, uint32_t bit) argument 379 ql_write_cfg(qlge_t *qlge, uint32_t bit, uint64_t phy_addr, uint16_t q_id) argument 415 ql_init_instance(qlge_t *qlge) argument 507 ql_sem_trylock(qlge_t *qlge, uint32_t sem_mask) argument 550 ql_sem_spinlock(qlge_t *qlge, uint32_t sem_mask) argument 570 ql_sem_unlock(qlge_t *qlge, uint32_t sem_mask) argument 585 ql_get_prop(qlge_t *qlge, char *string) argument 609 ql_read_conf(qlge_t *qlge) argument 776 ql_enable_global_interrupt(qlge_t *qlge) argument 787 ql_disable_global_interrupt(qlge_t *qlge) argument 797 ql_enable_completion_interrupt(qlge_t *qlge, uint32_t intr) argument 829 ql_forced_disable_completion_interrupt(qlge_t *qlge, uint32_t intr) argument 855 ql_disable_completion_interrupt(qlge_t *qlge, uint32_t intr) argument 881 ql_enable_all_completion_interrupts(qlge_t *qlge) argument 902 ql_disable_all_completion_interrupts(qlge_t *qlge) argument 924 ql_update_sbq_prod_idx(qlge_t *qlge, struct rx_ring *rx_ring) argument 937 ql_update_lbq_prod_idx(qlge_t *qlge, struct rx_ring *rx_ring) argument 1147 qlge_t *qlge = (qlge_t *)rx_ring->qlge; local 1262 qlge_t *qlge = rx_ring->qlge; local 1442 ql_alloc_sbufs(qlge_t *qlge, struct rx_ring *rx_ring) argument 1587 ql_alloc_lbufs(qlge_t *qlge, struct rx_ring *rx_ring) argument 1669 ql_free_rx_buffers(qlge_t *qlge) argument 1687 ql_alloc_rx_buffers(qlge_t *qlge) argument 1787 qlge_t *qlge = tx_ring->qlge; local 1870 ql_build_rx_mp(qlge_t *qlge, struct rx_ring *rx_ring, struct ib_mac_iocb_rsp *ib_mac_rsp) argument 2316 qlge_t *qlge = rx_ring->qlge; local 2328 ql_process_chip_ae_intr(qlge_t *qlge, struct ib_sys_event_iocb_rsp *ib_sys_event_rsp_ptr) argument 2439 qlge_t *qlge = rx_ring->qlge; local 2603 ql_process_mac_tx_intr(qlge_t *qlge, struct ob_mac_iocb_rsp *mac_rsp) argument 2673 qlge_t *qlge = rx_ring->qlge; local 2773 qlge_t *qlge = (qlge_t *)((void *)arg1); local 2815 qlge_t *qlge = (qlge_t *)((void *)arg1); local 2828 qlge_t *qlge = (qlge_t *)((void *)arg1); local 2836 ql_wake_asic_reset_soft_intr(qlge_t *qlge) argument 2842 ql_wake_mpi_reset_soft_intr(qlge_t *qlge) argument 2848 ql_wake_mpi_event_soft_intr(qlge_t *qlge) argument 2865 qlge_t *qlge = rx_ring->qlge; local 3008 qlge_t *qlge = rx_ring->qlge; local 3027 qlge_t *qlge = rx_ring->qlge; local 3066 qlge_t *qlge = rx_ring->qlge; local 3123 qlge_t *qlge = rx_ring->qlge; local 3148 ql_alloc_ioctl_dma_buf(qlge_t *qlge) argument 3206 ql_free_ioctl_dma_buf(qlge_t *qlge) argument 3221 ql_free_shadow_space(qlge_t *qlge) argument 3242 ql_alloc_shadow_space(qlge_t *qlge) argument 3371 ql_alloc_tx_resources(qlge_t *qlge, struct tx_ring *tx_ring) argument 3532 ql_alloc_rx_resources(qlge_t *qlge, struct rx_ring *rx_ring) argument 3646 ql_free_mem_resources(qlge_t *qlge) argument 3678 ql_alloc_mem_resources(qlge_t *qlge) argument 3904 ql_add_intr_handlers(qlge_t *qlge) argument 4007 ql_resolve_queues_to_irqs(qlge_t *qlge) argument 4136 ql_free_irq_vectors(qlge_t *qlge) argument 4190 ql_request_irq_vectors(qlge_t *qlge, int intr_type) argument 4357 ql_alloc_irqs(qlge_t *qlge) argument 4436 ql_free_rx_tx_locks(qlge_t *qlge) argument 4466 ql_free_resources(qlge_t *qlge) argument 4560 ql_set_promiscuous(qlge_t *qlge, int mode) argument 4576 ql_write_mac_proto_regs(qlge_t *qlge, uint32_t data1, uint32_t data2) argument 4596 ql_add_multicast_address(qlge_t *qlge, int index) argument 4637 ql_remove_multicast_address(qlge_t *qlge, int index) argument 4680 ql_add_to_multicast_list(qlge_t *qlge, uint8_t *ep) argument 4732 ql_remove_from_multicast_list(qlge_t *qlge, uint8_t *ep) argument 4790 ql_read_xgmac_reg(qlge_t *qlge, uint32_t addr, uint32_t *val) argument 4821 ql_hw_csum_setup(qlge_t *qlge, uint32_t pflags, caddr_t bp, struct ob_mac_iocb_req *mac_iocb_ptr) argument 5078 ql_tx_hashing(qlge_t *qlge, caddr_t bp) argument 5171 ql_hw_lso_setup(qlge_t *qlge, uint32_t mss, caddr_t bp, struct ob_mac_iocb_req *mac_iocb_ptr) argument 5327 qlge_t *qlge = tx_ring->qlge; local 5670 ql_do_start(qlge_t *qlge) argument 5775 ql_do_stop(qlge_t *qlge) argument 5854 ql_disable_isr(qlge_t *qlge) argument 5880 ql_get_pci_config(qlge_t *qlge) argument 5889 ql_get_link_state(qlge_t *qlge) argument 5919 ql_get_and_report_link_state(qlge_t *qlge) argument 5957 ql_stop_timer(qlge_t *qlge) argument 5972 ql_restart_timer(qlge_t *qlge) argument 6014 qlge_t *qlge; local 6061 qlge_t *qlge; local 6124 qlge_t *qlge; local 6193 ql_setup_named_kstat(qlge_t *qlge, int instance, char *name, const ql_ksindex_t *ksip, size_t size, int (*update)(kstat_t *, int)) argument 6230 ql_init_kstats(qlge_t *qlge) argument 6262 ql_fini_kstats(qlge_t *qlge) argument 6283 ql_setup_rings(qlge_t *qlge) argument 6387 ql_start_rx_ring(qlge_t *qlge, struct rx_ring *rx_ring) argument 6582 ql_start_rss(qlge_t *qlge) argument 6621 ql_start_tx_ring(qlge_t *qlge, struct tx_ring *tx_ring) argument 6685 ql_set_mac_addr_reg(qlge_t *qlge, uint8_t *addr, uint32_t type, uint16_t index) argument 6770 ql_set_routing_reg(qlge_t *qlge, uint32_t index, uint32_t mask, int enable) argument 6872 ql_stop_routing(qlge_t *qlge) argument 6888 ql_route_initialize(qlge_t *qlge) argument 6947 ql_device_initialize(qlge_t *qlge) argument 7091 ql_asic_reset(qlge_t *qlge) argument 7114 ql_arm_sbuf(qlge_t *qlge, struct rx_ring *rx_ring) argument 7151 ql_arm_lbuf(qlge_t *qlge, struct rx_ring *rx_ring) argument 7189 ql_bringup_adapter(qlge_t *qlge) argument 7265 ql_init_rx_tx_locks(qlge_t *qlge) argument 7303 ql_fm_init(qlge_t *qlge) argument 7358 ql_fm_fini(qlge_t *qlge) argument 7391 qlge_t *qlge = NULL; local 7711 ql_wait_tx_quiesce(qlge_t *qlge) argument 7825 ql_wait_rx_complete(qlge_t *qlge) argument 7847 ql_bringdown_adapter(qlge_t *qlge) argument 7920 qlge_t *qlge; local 7978 qlge_t *qlge; local [all...] |
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlge/ |
H A D | qlge.h | 65 #define ADAPTER_NAME "qlge" 133 #define CARRIER_ON(qlge) mac_link_update((qlge)->mh, LINK_STATE_UP) 134 #define CARRIER_OFF(qlge) mac_link_update((qlge)->mh, LINK_STATE_DOWN) 137 * qlge local function return status codes 190 #define RESUME_TX(tx_ring) mac_tx_update(tx_ring->qlge->mh); 191 #define RX_UPSTREAM(rx_ring, mp) mac_rx(rx_ring->qlge->mh, \ 192 rx_ring->qlge->handle, mp); 445 struct qlge *qlg member in struct:tx_ring 511 struct qlge *qlge; member in struct:rx_ring 581 struct qlge *qlge; member in struct:intr_ctx 606 typedef struct qlge { struct [all...] |