| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| A D | qlcnic_83xx_vnic.c | 25 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_disable_vnic_mode() local 46 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_set_vnic_opmode() local 51 id = ahw->pci_func; in qlcnic_83xx_set_vnic_opmode() 66 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_vnic_buff_descriptors() local 96 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_init_mgmt_vnic() local 117 ahw->max_pci_func, ahw->total_nic_func); in qlcnic_83xx_init_mgmt_vnic() 138 ahw->fw_hal_version); in qlcnic_83xx_init_mgmt_vnic() 157 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_privileged_vnic() 194 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_vnic_opmode() local 204 ahw->pci_func); in qlcnic_83xx_config_vnic_opmode() [all …]
|
| A D | qlcnic_83xx_init.c | 648 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_update_idc_params() local 678 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_ready_state_entry() local 708 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_vnic_pf_entry() local 820 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_ready_state() local 954 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_failed_state() local 1688 struct qlcnic_hardware_context *ahw = p_dev->ahw; in qlcnic_83xx_get_reset_instruction_template() local 1729 ahw->reset.init_offset = ahw->reset.buff + ahw->reset.hdr->init_offset; in qlcnic_83xx_get_reset_instruction_template() 1730 ahw->reset.start_offset = ahw->reset.buff + in qlcnic_83xx_get_reset_instruction_template() 1732 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template() 2253 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_nic_configuration() local [all …]
|
| A D | qlcnic_83xx_hw.c | 302 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_rd_reg_indirect() local 318 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_wrt_reg_indirect() local 334 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_enable_legacy() local 361 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_setup_intr() local 465 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_clear_legacy_intr() local 527 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_intr() local 640 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_cam_lock() local 660 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_cam_unlock() local 702 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_port_info() local 730 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_set_mac_filter_count() local [all …]
|
| A D | qlcnic_main.c | 91 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_vlan_tx_check() local 460 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_get_phys_port_id() local 612 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_check_multi_tx_capability() local 824 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_enable_msi_legacy() local 884 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_mq_intrpt() local 937 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_get_act_pci_func() local 984 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_init_pci_info() local 1080 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_set_function_modes() local 1227 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_check_options() local 2509 adapter->ahw = ahw; in qlcnic_probe() [all …]
|
| A D | qlcnic_sriov_common.c | 312 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_post_bc_msg() local 498 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_init_driver() local 619 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_init() local 649 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_set_ops() local 907 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_pull_bc_msg() local 1374 struct qlcnic_hardware_context *ahw = adapter->ahw; in __qlcnic_sriov_issue_cmd() local 1545 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_set_multi() local 1717 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_detach() local 1739 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_handle_dev_ready() local 1768 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_handle_context_reset() local [all …]
|
| A D | qlcnic_ethtool.c | 290 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_get_link_ksettings() local 293 u16 pcifn = ahw->pci_func; in qlcnic_82xx_get_link_ksettings() 327 if (ahw->linkup) { in qlcnic_82xx_get_link_ksettings() 378 ahw->has_link_events; in qlcnic_82xx_get_link_ksettings() 394 ahw->has_link_events; in qlcnic_82xx_get_link_ksettings() 974 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_irq_test() local 989 ahw->diag_cnt = 0; in qlcnic_irq_test() 1000 ret = !ahw->diag_cnt; in qlcnic_irq_test() 1092 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_loopback_test() local 1125 ahw->diag_cnt = 0; in qlcnic_loopback_test() [all …]
|
| A D | qlcnic_ctx.c | 47 return (ahw->pci_func & 0xff) | ((ahw->fw_hal_version & 0xff) << 8) | in qlcnic_get_cmd_signature() 117 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_issue_cmd() local 236 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_fw_cmd_create_rx_ctx() local 416 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_fw_cmd_create_tx_ctx() local 769 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_config_intrpt() local 805 ahw->intr_tbl[i].id = i; in qlcnic_82xx_config_intrpt() 956 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_get_pci_info() local 981 ahw->total_nic_func = 0; in qlcnic_82xx_get_pci_info() 1007 if (ahw->total_nic_func == 0 || ahw->total_pci_func == 0) { in qlcnic_82xx_get_pci_info() 1010 __func__, ahw->total_nic_func, ahw->total_pci_func); in qlcnic_82xx_get_pci_info() [all …]
|
| A D | qlcnic_hw.c | 531 struct qlcnic_hardware_context *ahw = adapter->ahw; in __qlcnic_set_multi() local 758 adapter->ahw->physical_port); in qlcnic_82xx_read_phys_port_id() 1250 mutex_lock(&adapter->ahw->mem_lock); in qlcnic_pci_mem_access_direct() 1254 readl(adapter->ahw->ocm_win_crb); in qlcnic_pci_mem_access_direct() 1266 readl(adapter->ahw->ocm_win_crb); in qlcnic_pci_mem_access_direct() 1278 mutex_lock(&adapter->ahw->mem_lock); in qlcnic_pci_camqm_read_2M() 1289 mutex_lock(&adapter->ahw->mem_lock); in qlcnic_pci_camqm_write_2M() 1352 mutex_lock(&adapter->ahw->mem_lock); in qlcnic_pci_mem_write_2M() 1424 mutex_lock(&adapter->ahw->mem_lock); in qlcnic_pci_mem_read_2M() 1561 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_get_beacon_state() local [all …]
|
| A D | qlcnic_sysfs.c | 119 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_store_beacon() local 131 if (ahw->beacon_state == h_beacon) in qlcnic_83xx_store_beacon() 135 if (!ahw->beacon_state) { in qlcnic_83xx_store_beacon() 147 ahw->beacon_state = h_beacon; in qlcnic_83xx_store_beacon() 149 if (!ahw->beacon_state) in qlcnic_83xx_store_beacon() 159 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_store_beacon() local 174 if (ahw->beacon_state == b_state) in qlcnic_82xx_store_beacon() 178 if (!ahw->beacon_state) { in qlcnic_82xx_store_beacon() 200 ahw->beacon_state = b_state; in qlcnic_82xx_store_beacon() 207 if (!ahw->beacon_state) in qlcnic_82xx_store_beacon() [all …]
|
| A D | qlcnic.h | 1100 struct qlcnic_hardware_context *ahw; member 1832 return adapter->ahw->extra_capability[0] & in qlcnic_83xx_encap_tx_offload() 1838 return adapter->ahw->extra_capability[0] & in qlcnic_83xx_encap_rx_offload() 1899 if (adapter->ahw->hw_ops->mbx_cmd) in qlcnic_issue_cmd() 1922 if (adapter->ahw->hw_ops->add_sysfs) in qlcnic_add_sysfs() 1928 if (adapter->ahw->hw_ops->remove_sysfs) in qlcnic_remove_sysfs() 2168 !adapter->ahw->diag_test) in qlcnic_82xx_enable_tx_intr() 2177 !adapter->ahw->diag_test) in qlcnic_82xx_disable_tx_intr() 2225 !adapter->ahw->diag_test && in qlcnic_82xx_disable_sds_intr() 2250 if (adapter->ahw->hw_ops->enable_tx_intr) in qlcnic_enable_tx_intr() [all …]
|
| A D | qlcnic_hw.h | 39 readl(((a)->ahw->pci_base0) + ((a)->ahw->reg_tbl[addr])) 43 writel(value, ((a)->ahw->pci_base0) + ((a)->ahw->reg_tbl[addr])) 46 #define QLCRDX(ahw, addr) \ argument 47 readl(((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr])) 50 #define QLCWRX(ahw, addr, value) \ argument 51 writel(value, (((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr])))
|
| A D | qlcnic_sriov_pf.c | 505 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_pf_init() local 508 u8 func = ahw->pci_func; in qlcnic_sriov_pf_init() 752 sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_channel_cfg_cmd() 863 sriov = adapter->ahw->sriov; in qlcnic_83xx_cfg_default_mac_vlan() 1345 sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_get_acl_cmd() 1531 adapter->ahw->pci_func); in qlcnic_pf_set_interface_id_create_rx_ctx() 1541 adapter->ahw->pci_func); in qlcnic_pf_set_interface_id_del_rx_ctx() 1764 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_pf_reset() local 1780 QLCWRX(ahw, QLCNIC_MBX_INTR_ENBL, (ahw->num_msix - 1) << 8); in qlcnic_sriov_pf_reset() 1785 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_pf_reinit() local [all …]
|
| A D | qlcnic_minidump.c | 405 void *hdr = adapter->ahw->fw_dump.tmpl_hdr; in qlcnic_dump_ctrl() 575 adapter->ahw->pci_func); in qlcnic_read_rom() 678 mutex_lock(&adapter->ahw->mem_lock); in qlcnic_read_memory_test_agent() 708 mutex_unlock(&adapter->ahw->mem_lock); in qlcnic_read_memory_test_agent() 1208 struct qlcnic_hardware_context *ahw; in qlcnic_fw_cmd_get_minidump_temp() local 1216 ahw = adapter->ahw; in qlcnic_fw_cmd_get_minidump_temp() 1217 fw_dump = &ahw->fw_dump; in qlcnic_fw_cmd_get_minidump_temp() 1293 struct qlcnic_hardware_context *ahw; in qlcnic_dump_fw() local 1301 ahw = adapter->ahw; in qlcnic_dump_fw() 1410 (adapter->ahw->extra_capability[0] & in qlcnic_83xx_md_check_extended_dump_capability() [all …]
|
| A D | qlcnic_init.c | 213 if (adapter->ahw->capabilities & in qlcnic_alloc_sw_resources() 247 !adapter->ahw->diag_test) in qlcnic_alloc_sw_resources() 627 adapter->ahw->physical_port = (val >> 2); in qlcnic_setup_idc_param() 698 if (adapter->ahw->revision_id == QLCNIC_P3P_C0) in qlcnic_check_flash_fw_ver() 881 u8 chiprev = adapter->ahw->revision_id; in qlcnic_validate_product_offs() 1115 fw_name[adapter->ahw->fw_type]); in qlcnic_load_firmware() 1207 u8 fw_type = adapter->ahw->fw_type; in qlcnic_validate_firmware() 1252 switch (adapter->ahw->fw_type) { in qlcnic_get_next_fwtype() 1263 adapter->ahw->fw_type = fw_type; in qlcnic_get_next_fwtype() 1273 adapter->ahw->fw_type = QLCNIC_UNKNOWN_ROMIMAGE; in qlcnic_request_firmware() [all …]
|
| A D | qlcnic_io.c | 795 adapter->ahw->linkup = 0; in qlcnic_advert_link_change() 798 adapter->ahw->linkup = 1; in qlcnic_advert_link_change() 1039 adapter->ahw->has_link_events = 1; in qlcnic_handle_linkevent() 1070 adapter->ahw->module_type = module; in qlcnic_handle_linkevent() 1119 adapter->ahw->diag_cnt = -ENODEV; in qlcnic_handle_fw_message() 1125 adapter->ahw->diag_cnt = -EIO; in qlcnic_handle_fw_message() 1525 adapter->ahw->diag_cnt++; in qlcnic_process_rcv_diag() 1587 !adapter->ahw->diag_test) { in qlcnic_82xx_napi_add() 1660 !adapter->ahw->diag_test) { in qlcnic_82xx_napi_enable() 1687 !adapter->ahw->diag_test && in qlcnic_82xx_napi_disable() [all …]
|
| A D | qlcnic_83xx_hw.h | 350 #define QLCNIC_MBX_HOST(ahw, i) ((ahw)->pci_base0 + ((i) * 4)) argument 351 #define QLCNIC_MBX_FW(ahw, i) ((ahw)->pci_base0 + 0x800 + ((i) * 4)) argument
|
| /linux/drivers/net/ethernet/qlogic/netxen/ |
| A D | netxen_nic_hw.c | 34 ((adapter)->ahw.pci_base0 + (off)) 1951 adapter->ahw.pci_base0, in netxen_md_cntrl() 1956 adapter->ahw.pci_base0, in netxen_md_cntrl() 1959 adapter->ahw.pci_base0, in netxen_md_cntrl() 1964 adapter->ahw.pci_base0, in netxen_md_cntrl() 1968 adapter->ahw.pci_base0, in netxen_md_cntrl() 1973 adapter->ahw.pci_base0, in netxen_md_cntrl() 1977 adapter->ahw.pci_base0, in netxen_md_cntrl() 2129 writel(adapter->ahw.pci_func, (void __iomem *)(adapter->ahw.pci_base0 + in netxen_md_rdrom() 2178 adapter->ahw.pci_base0, in netxen_md_L2Cache() [all …]
|
| A D | netxen_nic_main.c | 716 struct netxen_hardware_context *ahw = &adapter->ahw; in netxen_setup_pci_map() local 724 adapter->ahw.crb_win = -1; in netxen_setup_pci_map() 725 adapter->ahw.ocm_win = -1; in netxen_setup_pci_map() 739 if (ahw->pci_base0 == NULL || ahw->pci_base1 == NULL || in netxen_setup_pci_map() 753 if (ahw->pci_base1 == NULL || ahw->pci_base2 == NULL) { in netxen_setup_pci_map() 766 ahw->pci_len0 = mem_len; in netxen_setup_pci_map() 1115 adapter->ahw.linkup = 0; in __netxen_nic_up() 1705 adapter->ahw.crb_win = -1; in netxen_nic_attach_late_func() 1706 adapter->ahw.ocm_win = -1; in netxen_nic_attach_late_func() 2183 adapter->ahw.linkup = 0; in netxen_advert_link_change() [all …]
|
| A D | netxen_nic_ethtool.c | 91 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_link_ksettings() 132 u16 pcifn = adapter->ahw.pci_func; in netxen_nic_get_link_ksettings() 148 switch (adapter->ahw.board_type) { in netxen_nic_get_link_ksettings() 164 cmd->base.autoneg = (adapter->ahw.board_type == in netxen_nic_get_link_ksettings() 211 adapter->ahw.board_type); in netxen_nic_get_link_ksettings() 254 if (adapter->ahw.port_type != NETXEN_NIC_GBE) in netxen_nic_set_link_ksettings() 404 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_ringparam() 446 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_set_ringparam() 481 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_pauseparam() 531 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_set_pauseparam() [all …]
|
| A D | netxen_nic_init.c | 217 if (adapter->ahw.cut_through) { in netxen_alloc_sw_resources() 223 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_alloc_sw_resources() 236 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_alloc_sw_resources() 504 !NX_IS_REVISION_P3P(adapter->ahw.revision_id)) in netxen_pinit_from_rom() 706 u8 chiprev = adapter->ahw.revision_id; in netxen_nic_validate_product_offs() 878 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_need_fw_reset() 944 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_check_flash_fw_compatibility() 985 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_load_firmware() 1094 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_validate_firmware() 1192 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_p3_has_mn() [all …]
|
| A D | netxen_nic_ctx.c | 39 signature = NX_CDRP_SIGNATURE_MAKE(adapter->ahw.pci_func, in netxen_issue_cmd() 794 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_alloc_hw_resources() 815 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_alloc_hw_resources() 827 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_alloc_hw_resources() 860 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_free_hw_resources()
|
| A D | netxen_nic.h | 94 (adapter->ahw.db_base + (off)) 1582 struct netxen_hardware_context ahw; member
|