Home
last modified time | relevance | path

Searched refs:ahw (Results 1 – 22 of 22) sorted by relevance

/linux-6.15/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_83xx_vnic.c25 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 …]
H A Dqlcnic_83xx_init.c648 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 …]
H A Dqlcnic_83xx_hw.c301 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_rd_reg_indirect() local
317 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_wrt_reg_indirect() local
333 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_enable_legacy() local
360 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_setup_intr() local
464 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_clear_legacy_intr() local
526 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_intr() local
639 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_cam_lock() local
659 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_cam_unlock() local
701 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_port_info() local
729 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_set_mac_filter_count() local
[all …]
H A Dqlcnic_main.c90 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
2490 adapter->ahw = ahw; in qlcnic_probe()
[all …]
H A Dqlcnic_sriov_common.c314 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_post_bc_msg() local
502 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_init_driver() local
622 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_init() local
652 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_set_ops() local
910 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_pull_bc_msg() local
1377 struct qlcnic_hardware_context *ahw = adapter->ahw; in __qlcnic_sriov_issue_cmd() local
1551 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_set_multi() local
1723 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_detach() local
1745 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_handle_dev_ready() local
1774 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_vf_handle_context_reset() local
[all …]
H A Dqlcnic_ethtool.c290 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()
978 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_irq_test() local
993 ahw->diag_cnt = 0; in qlcnic_irq_test()
1004 ret = !ahw->diag_cnt; in qlcnic_irq_test()
1096 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_loopback_test() local
1129 ahw->diag_cnt = 0; in qlcnic_loopback_test()
[all …]
H A Dqlcnic_ctx.c47 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
775 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_config_intrpt() local
811 ahw->intr_tbl[i].id = i; in qlcnic_82xx_config_intrpt()
962 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_get_pci_info() local
987 ahw->total_nic_func = 0; in qlcnic_82xx_get_pci_info()
1013 if (ahw->total_nic_func == 0 || ahw->total_pci_func == 0) { in qlcnic_82xx_get_pci_info()
1016 __func__, ahw->total_nic_func, ahw->total_pci_func); in qlcnic_82xx_get_pci_info()
[all …]
H A Dqlcnic_hw.c531 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 …]
H A Dqlcnic_sysfs.c118 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_store_beacon() local
130 if (ahw->beacon_state == h_beacon) in qlcnic_83xx_store_beacon()
134 if (!ahw->beacon_state) { in qlcnic_83xx_store_beacon()
146 ahw->beacon_state = h_beacon; in qlcnic_83xx_store_beacon()
148 if (!ahw->beacon_state) in qlcnic_83xx_store_beacon()
158 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_store_beacon() local
173 if (ahw->beacon_state == b_state) in qlcnic_82xx_store_beacon()
177 if (!ahw->beacon_state) { in qlcnic_82xx_store_beacon()
199 ahw->beacon_state = b_state; in qlcnic_82xx_store_beacon()
206 if (!ahw->beacon_state) in qlcnic_82xx_store_beacon()
[all …]
H A Dqlcnic.h1100 struct qlcnic_hardware_context *ahw; member
1831 return adapter->ahw->extra_capability[0] & in qlcnic_83xx_encap_tx_offload()
1837 return adapter->ahw->extra_capability[0] & in qlcnic_83xx_encap_rx_offload()
1898 if (adapter->ahw->hw_ops->mbx_cmd) in qlcnic_issue_cmd()
1921 if (adapter->ahw->hw_ops->add_sysfs) in qlcnic_add_sysfs()
1927 if (adapter->ahw->hw_ops->remove_sysfs) in qlcnic_remove_sysfs()
2167 !adapter->ahw->diag_test) in qlcnic_82xx_enable_tx_intr()
2176 !adapter->ahw->diag_test) in qlcnic_82xx_disable_tx_intr()
2224 !adapter->ahw->diag_test && in qlcnic_82xx_disable_sds_intr()
2249 if (adapter->ahw->hw_ops->enable_tx_intr) in qlcnic_enable_tx_intr()
[all …]
H A Dqlcnic_hw.h39 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])))
H A Dqlcnic_sriov_pf.c505 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 …]
H A Dqlcnic_minidump.c405 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 …]
H A Dqlcnic_init.c213 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 …]
H A Dqlcnic_io.c795 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()
1658 !adapter->ahw->diag_test) { in qlcnic_82xx_napi_enable()
1685 !adapter->ahw->diag_test && in qlcnic_82xx_napi_disable()
[all …]
H A Dqlcnic_83xx_hw.h350 #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-6.15/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c34 ((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 …]
H A Dnetxen_nic_main.c712 struct netxen_hardware_context *ahw = &adapter->ahw; in netxen_setup_pci_map() local
720 adapter->ahw.crb_win = -1; in netxen_setup_pci_map()
721 adapter->ahw.ocm_win = -1; in netxen_setup_pci_map()
735 if (ahw->pci_base0 == NULL || ahw->pci_base1 == NULL || in netxen_setup_pci_map()
749 if (ahw->pci_base1 == NULL || ahw->pci_base2 == NULL) { in netxen_setup_pci_map()
762 ahw->pci_len0 = mem_len; in netxen_setup_pci_map()
1111 adapter->ahw.linkup = 0; in __netxen_nic_up()
1694 adapter->ahw.crb_win = -1; in netxen_nic_attach_late_func()
1695 adapter->ahw.ocm_win = -1; in netxen_nic_attach_late_func()
2172 adapter->ahw.linkup = 0; in netxen_advert_link_change()
[all …]
H A Dnetxen_nic_ethtool.c91 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()
406 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_ringparam()
450 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_set_ringparam()
485 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_pauseparam()
535 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_set_pauseparam()
[all …]
H A Dnetxen_nic_init.c217 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()
1191 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_p3_has_mn()
[all …]
H A Dnetxen_nic_ctx.c39 signature = NX_CDRP_SIGNATURE_MAKE(adapter->ahw.pci_func, in netxen_issue_cmd()
791 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_alloc_hw_resources()
812 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_alloc_hw_resources()
824 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_alloc_hw_resources()
857 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_free_hw_resources()
H A Dnetxen_nic.h94 (adapter->ahw.db_base + (off))
1582 struct netxen_hardware_context ahw; member