Home
last modified time | relevance | path

Searched refs:ahw (Results 1 - 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_83xx_vnic.c16 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_OPER); in qlcnic_83xx_enable_vnic_mode()
25 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_disable_vnic_mode() local
32 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_NON_OPER); in qlcnic_83xx_disable_vnic_mode()
33 ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER; in qlcnic_83xx_disable_vnic_mode()
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()
52 data = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_set_vnic_opmode()
56 QLCWRX(adapter->ahw, QLC_83XX_DRV_OP_MOD in qlcnic_83xx_set_vnic_opmode()
66 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_config_vnic_buff_descriptors() local
96 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_init_mgmt_vnic() local
194 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_config_vnic_opmode() local
243 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_check_vnic_state() local
[all...]
H A Dqlcnic_83xx_init.c136 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_driver_presence_reg()
146 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history()
147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history()
151 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history()
152 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history()
166 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT); in qlcnic_83xx_idc_update_audit_reg()
170 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_update_audit_reg()
175 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT, val); in qlcnic_83xx_idc_update_audit_reg()
176 adapter->ahw->idc.sec_counter = jiffies / HZ; in qlcnic_83xx_idc_update_audit_reg()
188 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MIN_VERSIO in qlcnic_83xx_idc_update_minor_version()
648 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_update_idc_params() local
678 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_ready_state_entry() local
708 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_vnic_pf_entry() local
820 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_ready_state() local
954 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_failed_state() local
1688 struct qlcnic_hardware_context *ahw = p_dev->ahw; qlcnic_83xx_get_reset_instruction_template() local
2253 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_nic_configuration() local
2287 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_configure_opmode() local
2323 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_config_buff_descriptors() local
2386 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_fw_info() local
2437 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_init() local
2549 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_aer_stop_poll_work() local
2566 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_aer_reset() local
2590 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_aer_start_poll_work() local
[all...]
H A Dqlcnic_83xx_hw.c261 void qlcnic_83xx_register_map(struct qlcnic_hardware_context *ahw) in qlcnic_83xx_register_map() argument
263 ahw->hw_ops = &qlcnic_83xx_hw_ops; in qlcnic_83xx_register_map()
264 ahw->reg_tbl = (u32 *)qlcnic_83xx_reg_tbl; in qlcnic_83xx_register_map()
265 ahw->ext_reg_tbl = (u32 *)qlcnic_83xx_ext_reg_tbl; in qlcnic_83xx_register_map()
289 base = adapter->ahw->pci_base0 + in __qlcnic_set_win_base()
290 QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func); in __qlcnic_set_win_base()
302 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_rd_reg_indirect() local
306 return QLCRDX(ahw, QLCNIC_WILDCARD); in qlcnic_83xx_rd_reg_indirect()
318 struct qlcnic_hardware_context *ahw in qlcnic_83xx_wrt_reg_indirect() local
334 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_enable_legacy() local
361 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_setup_intr() local
465 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_clear_legacy_intr() local
527 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_intr() local
640 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_cam_lock() local
660 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_cam_unlock() local
702 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_port_info() local
730 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_mac_filter_count() local
761 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_check_vf() local
827 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_poll_for_mbx_completion() local
852 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_issue_cmd() local
966 struct qlcnic_hardware_context *ahw = adapter->ahw; __qlcnic_83xx_process_aen() local
1016 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_process_aen() local
1075 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_add_rings() local
1182 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_create_rx_ctx() local
1327 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_create_tx_ctx() local
1490 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_beacon_state() local
1766 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_loopback_test() local
1835 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_extend_lb_idc_cmpltn_wait() local
1847 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_lb_mode() local
1916 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_clear_lb_mode() local
2323 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_handle_link_aen() local
2423 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_nic_info() local
2497 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_pci_info() local
3183 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_port_type() local
3221 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_test_link() local
3302 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_link_ksettings() local
3403 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_link_ksettings() local
3634 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_interrupt_test() local
3704 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_pauseparam() local
3740 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_pauseparam() local
3837 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_resume() local
3915 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_check_mbx_status() local
3960 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_encode_mbx_cmd() local
4055 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_decode_mbx_rsp() local
4085 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_dump_mailbox_registers() local
4104 struct qlcnic_hardware_context *ahw; qlcnic_83xx_mailbox_worker() local
4163 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_init_mailbox_work() local
[all...]
H A Dqlcnic_main.c91 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_vlan_tx_check() local
94 return ahw->capabilities & QLCNIC_FW_CAPABILITY_FVLANTX; in qlcnic_vlan_tx_check()
303 adapter->ahw->pci_func); in qlcnic_read_mac_addr()
417 if (netdev_uc_count(netdev) < adapter->ahw->max_uc_count) in qlcnic_fdb_add()
462 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_get_phys_port_id() local
467 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
468 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
616 struct qlcnic_hardware_context *ahw in qlcnic_check_multi_tx_capability() local
828 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_enable_msi_legacy() local
888 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_mq_intrpt() local
933 qlcnic_cleanup_pci_map(struct qlcnic_hardware_context *ahw) qlcnic_cleanup_pci_map() argument
941 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_get_act_pci_func() local
988 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_init_pci_info() local
1084 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_set_function_modes() local
1150 qlcnic_setup_pci_map(struct pci_dev *pdev, struct qlcnic_hardware_context *ahw) qlcnic_setup_pci_map() argument
1231 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_check_options() local
1835 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_config_def_intr_coalesce() local
2064 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_alloc_adapter_resources() local
2225 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_set_mac_filter_count() local
2424 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_set_drv_version() local
2449 struct qlcnic_hardware_context *ahw; qlcnic_probe() local
2737 struct qlcnic_hardware_context *ahw; qlcnic_remove() local
3261 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_check_drv_state() local
3676 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_check_health() local
[all...]
H A Dqlcnic_sriov_common.c156 adapter->ahw->sriov = sriov; in qlcnic_sriov_init()
235 kfree(adapter->ahw->sriov); in qlcnic_sriov_init()
263 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in __qlcnic_sriov_cleanup()
287 kfree(adapter->ahw->sriov); in __qlcnic_sriov_cleanup()
314 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_post_bc_msg() local
315 struct qlcnic_mailbox *mbx = ahw->mailbox; in qlcnic_sriov_post_bc_msg()
332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg()
333 ahw->op_mode); in qlcnic_sriov_post_bc_msg()
340 __func__, cmd.cmd_op, cmd.type, ahw in qlcnic_sriov_post_bc_msg()
500 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_init_driver() local
621 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_init() local
651 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_set_ops() local
662 qlcnic_sriov_vf_register_map(struct qlcnic_hardware_context *ahw) qlcnic_sriov_vf_register_map() argument
909 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_pull_bc_msg() local
1376 struct qlcnic_hardware_context *ahw = adapter->ahw; __qlcnic_sriov_issue_cmd() local
1547 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_set_multi() local
1719 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_detach() local
1741 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_handle_dev_ready() local
1770 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_handle_context_reset() local
1829 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_idc_ready_state() local
[all...]
H A Dqlcnic_sysfs.c43 if (!(adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG)) in qlcnic_store_bridged_mode()
66 if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG) in qlcnic_show_bridged_mode()
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
485 struct qlcnic_hardware_context *ahw = adapter->ahw; validate_esw_config() 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()
297 if (adapter->ahw->port_type == QLCNIC_GBE) { in qlcnic_82xx_get_link_ksettings()
310 ecmd->base.speed = adapter->ahw->link_speed; in qlcnic_82xx_get_link_ksettings()
311 ecmd->base.duplex = adapter->ahw->link_duplex; in qlcnic_82xx_get_link_ksettings()
312 ecmd->base.autoneg = adapter->ahw->link_autoneg; in qlcnic_82xx_get_link_ksettings()
314 } else if (adapter->ahw->port_type == QLCNIC_XGBE) { in qlcnic_82xx_get_link_ksettings()
326 if (netif_running(adapter->netdev) && ahw->has_link_events) { in qlcnic_82xx_get_link_ksettings()
327 if (ahw in qlcnic_82xx_get_link_ksettings()
974 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_irq_test() local
1092 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_loopback_test() local
[all...]
H A Dqlcnic_ctx.c45 static inline u32 qlcnic_get_cmd_signature(struct qlcnic_hardware_context *ahw) in qlcnic_get_cmd_signature() argument
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
120 signature = qlcnic_get_cmd_signature(ahw); in qlcnic_82xx_issue_cmd()
236 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_fw_cmd_create_rx_ctx() local
286 !adapter->ahw->diag_test) { in qlcnic_82xx_fw_cmd_create_rx_ctx()
330 !adapter->ahw in qlcnic_82xx_fw_cmd_create_rx_ctx()
416 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_fw_cmd_create_tx_ctx() local
775 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_config_intrpt() local
962 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_get_pci_info() local
1247 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_clear_esw_stats() local
[all...]
H A Dqlcnic.h1031 ((adapter)->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO)
1100 struct qlcnic_hardware_context *ahw; member
1545 (adapter->ahw->hw_ops->read_reg)(adapter, off, err)
1548 adapter->ahw->hw_ops->write_reg(adapter, off, val)
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()
1854 return adapter->ahw->hw_ops->encap_rx_offload(adapter); in qlcnic_encap_rx_offload()
1859 return adapter->ahw->hw_ops->encap_tx_offload(adapter); in qlcnic_encap_tx_offload()
1870 adapter->ahw->hw_ops->read_crb(adapter, buf, offset, size); in qlcnic_read_crb()
1876 adapter->ahw in qlcnic_write_crb()
[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) \
47 readl(((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr]))
50 #define QLCWRX(ahw, addr, value) \
51 writel(value, (((ahw)->pci_base0) + ((ahw)
[all...]
H A Dqlcnic_hw.c359 qlcnic_read_window_reg(addr, adapter->ahw->pci_base0, &data); in qlcnic_ind_rd()
373 qlcnic_write_window_reg(addr, adapter->ahw->pci_base0, data); in qlcnic_ind_wr()
535 struct qlcnic_hardware_context *ahw = adapter->ahw; in __qlcnic_set_multi() local
553 (netdev_mc_count(netdev) > ahw->max_mc_count)) { in __qlcnic_set_multi()
565 if (netdev_uc_count(netdev) > ahw->max_uc_count) { in __qlcnic_set_multi()
762 adapter->ahw->physical_port); in qlcnic_82xx_read_phys_port_id()
766 memcpy(adapter->ahw->phys_port_id, mac, ETH_ALEN); in qlcnic_82xx_read_phys_port_id()
784 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); in qlcnic_82xx_set_rx_coalesce()
785 req.words[2] = cpu_to_le64(adapter->ahw in qlcnic_82xx_set_rx_coalesce()
1118 qlcnic_pci_get_crb_addr_2M(struct qlcnic_hardware_context *ahw, ulong off, void __iomem **addr) qlcnic_pci_get_crb_addr_2M() argument
1238 qlcnic_get_ioaddr(struct qlcnic_hardware_context *ahw, u32 offset) qlcnic_get_ioaddr() argument
1565 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_get_beacon_state() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_83xx_vnic.c16 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_OPER); in qlcnic_83xx_enable_vnic_mode()
25 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_disable_vnic_mode() local
32 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_NON_OPER); in qlcnic_83xx_disable_vnic_mode()
33 ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER; in qlcnic_83xx_disable_vnic_mode()
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()
52 data = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_set_vnic_opmode()
56 QLCWRX(adapter->ahw, QLC_83XX_DRV_OP_MOD in qlcnic_83xx_set_vnic_opmode()
66 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_config_vnic_buff_descriptors() local
96 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_init_mgmt_vnic() local
194 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_config_vnic_opmode() local
243 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_check_vnic_state() local
[all...]
H A Dqlcnic_83xx_init.c136 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_driver_presence_reg()
146 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history()
147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history()
151 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history()
152 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history()
166 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT); in qlcnic_83xx_idc_update_audit_reg()
170 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_update_audit_reg()
175 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT, val); in qlcnic_83xx_idc_update_audit_reg()
176 adapter->ahw->idc.sec_counter = jiffies / HZ; in qlcnic_83xx_idc_update_audit_reg()
188 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MIN_VERSIO in qlcnic_83xx_idc_update_minor_version()
648 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_update_idc_params() local
678 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_ready_state_entry() local
708 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_vnic_pf_entry() local
820 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_ready_state() local
954 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_idc_failed_state() local
1688 struct qlcnic_hardware_context *ahw = p_dev->ahw; qlcnic_83xx_get_reset_instruction_template() local
2253 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_nic_configuration() local
2287 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_configure_opmode() local
2323 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_config_buff_descriptors() local
2386 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_fw_info() local
2437 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_init() local
2549 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_aer_stop_poll_work() local
2566 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_aer_reset() local
2590 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_aer_start_poll_work() local
[all...]
H A Dqlcnic_83xx_hw.c260 void qlcnic_83xx_register_map(struct qlcnic_hardware_context *ahw) in qlcnic_83xx_register_map() argument
262 ahw->hw_ops = &qlcnic_83xx_hw_ops; in qlcnic_83xx_register_map()
263 ahw->reg_tbl = (u32 *)qlcnic_83xx_reg_tbl; in qlcnic_83xx_register_map()
264 ahw->ext_reg_tbl = (u32 *)qlcnic_83xx_ext_reg_tbl; in qlcnic_83xx_register_map()
288 base = adapter->ahw->pci_base0 + in __qlcnic_set_win_base()
289 QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func); in __qlcnic_set_win_base()
301 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_rd_reg_indirect() local
305 return QLCRDX(ahw, QLCNIC_WILDCARD); in qlcnic_83xx_rd_reg_indirect()
317 struct qlcnic_hardware_context *ahw in qlcnic_83xx_wrt_reg_indirect() local
333 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_enable_legacy() local
360 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_setup_intr() local
464 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_clear_legacy_intr() local
526 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_intr() local
639 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_cam_lock() local
659 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_cam_unlock() local
701 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_port_info() local
729 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_mac_filter_count() local
760 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_check_vf() local
826 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_poll_for_mbx_completion() local
851 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_issue_cmd() local
965 struct qlcnic_hardware_context *ahw = adapter->ahw; __qlcnic_83xx_process_aen() local
1015 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_process_aen() local
1074 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_add_rings() local
1181 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_create_rx_ctx() local
1326 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_create_tx_ctx() local
1489 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_beacon_state() local
1765 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_loopback_test() local
1834 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_extend_lb_idc_cmpltn_wait() local
1846 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_lb_mode() local
1915 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_clear_lb_mode() local
2322 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_handle_link_aen() local
2422 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_nic_info() local
2496 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_pci_info() local
3182 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_port_type() local
3220 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_test_link() local
3301 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_link_ksettings() local
3402 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_link_ksettings() local
3633 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_interrupt_test() local
3703 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_get_pauseparam() local
3739 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_set_pauseparam() local
3836 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_resume() local
3914 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_check_mbx_status() local
3959 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_encode_mbx_cmd() local
4054 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_decode_mbx_rsp() local
4084 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_dump_mailbox_registers() local
4103 struct qlcnic_hardware_context *ahw; qlcnic_83xx_mailbox_worker() local
4162 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_83xx_init_mailbox_work() local
[all...]
H A Dqlcnic_main.c90 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_vlan_tx_check() local
93 return ahw->capabilities & QLCNIC_FW_CAPABILITY_FVLANTX; in qlcnic_vlan_tx_check()
302 adapter->ahw->pci_func); in qlcnic_read_mac_addr()
415 if (netdev_uc_count(netdev) < adapter->ahw->max_uc_count) in qlcnic_fdb_add()
460 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_get_phys_port_id() local
465 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
466 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
612 struct qlcnic_hardware_context *ahw in qlcnic_check_multi_tx_capability() local
824 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_enable_msi_legacy() local
884 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_mq_intrpt() local
929 qlcnic_cleanup_pci_map(struct qlcnic_hardware_context *ahw) qlcnic_cleanup_pci_map() argument
937 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_get_act_pci_func() local
984 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_init_pci_info() local
1080 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_set_function_modes() local
1146 qlcnic_setup_pci_map(struct pci_dev *pdev, struct qlcnic_hardware_context *ahw) qlcnic_setup_pci_map() argument
1227 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_check_options() local
1831 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_config_def_intr_coalesce() local
2060 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_alloc_adapter_resources() local
2221 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_set_mac_filter_count() local
2398 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_set_drv_version() local
2423 struct qlcnic_hardware_context *ahw; qlcnic_probe() local
2711 struct qlcnic_hardware_context *ahw; qlcnic_remove() local
3234 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_check_drv_state() local
3647 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_check_health() local
[all...]
H A Dqlcnic_sriov_common.c156 adapter->ahw->sriov = sriov; in qlcnic_sriov_init()
235 kfree(adapter->ahw->sriov); in qlcnic_sriov_init()
263 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in __qlcnic_sriov_cleanup()
287 kfree(adapter->ahw->sriov); in __qlcnic_sriov_cleanup()
314 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_sriov_post_bc_msg() local
315 struct qlcnic_mailbox *mbx = ahw->mailbox; in qlcnic_sriov_post_bc_msg()
332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, in qlcnic_sriov_post_bc_msg()
333 ahw->op_mode); in qlcnic_sriov_post_bc_msg()
340 __func__, cmd.cmd_op, cmd.type, ahw in qlcnic_sriov_post_bc_msg()
500 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_init_driver() local
620 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_init() local
650 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_set_ops() local
661 qlcnic_sriov_vf_register_map(struct qlcnic_hardware_context *ahw) qlcnic_sriov_vf_register_map() argument
908 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_pull_bc_msg() local
1375 struct qlcnic_hardware_context *ahw = adapter->ahw; __qlcnic_sriov_issue_cmd() local
1546 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_set_multi() local
1718 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_detach() local
1740 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_handle_dev_ready() local
1769 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_handle_context_reset() local
1828 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_sriov_vf_idc_ready_state() local
[all...]
H A Dqlcnic_sysfs.c42 if (!(adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG)) in qlcnic_store_bridged_mode()
65 if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG) in qlcnic_show_bridged_mode()
118 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
484 struct qlcnic_hardware_context *ahw = adapter->ahw; validate_esw_config() 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()
297 if (adapter->ahw->port_type == QLCNIC_GBE) { in qlcnic_82xx_get_link_ksettings()
310 ecmd->base.speed = adapter->ahw->link_speed; in qlcnic_82xx_get_link_ksettings()
311 ecmd->base.duplex = adapter->ahw->link_duplex; in qlcnic_82xx_get_link_ksettings()
312 ecmd->base.autoneg = adapter->ahw->link_autoneg; in qlcnic_82xx_get_link_ksettings()
314 } else if (adapter->ahw->port_type == QLCNIC_XGBE) { in qlcnic_82xx_get_link_ksettings()
326 if (netif_running(adapter->netdev) && ahw->has_link_events) { in qlcnic_82xx_get_link_ksettings()
327 if (ahw in qlcnic_82xx_get_link_ksettings()
978 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_irq_test() local
1096 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_loopback_test() local
[all...]
H A Dqlcnic_ctx.c45 static inline u32 qlcnic_get_cmd_signature(struct qlcnic_hardware_context *ahw) in qlcnic_get_cmd_signature() argument
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
120 signature = qlcnic_get_cmd_signature(ahw); in qlcnic_82xx_issue_cmd()
236 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_fw_cmd_create_rx_ctx() local
286 !adapter->ahw->diag_test) { in qlcnic_82xx_fw_cmd_create_rx_ctx()
330 !adapter->ahw in qlcnic_82xx_fw_cmd_create_rx_ctx()
416 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_fw_cmd_create_tx_ctx() local
775 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_config_intrpt() local
962 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_82xx_get_pci_info() local
1247 struct qlcnic_hardware_context *ahw = adapter->ahw; qlcnic_clear_esw_stats() local
[all...]
H A Dqlcnic.h1031 ((adapter)->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO)
1100 struct qlcnic_hardware_context *ahw; member
1545 (adapter->ahw->hw_ops->read_reg)(adapter, off, err)
1548 adapter->ahw->hw_ops->write_reg(adapter, off, val)
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()
1854 return adapter->ahw->hw_ops->encap_rx_offload(adapter); in qlcnic_encap_rx_offload()
1859 return adapter->ahw->hw_ops->encap_tx_offload(adapter); in qlcnic_encap_tx_offload()
1870 adapter->ahw->hw_ops->read_crb(adapter, buf, offset, size); in qlcnic_read_crb()
1876 adapter->ahw in qlcnic_write_crb()
[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) \
47 readl(((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr]))
50 #define QLCWRX(ahw, addr, value) \
51 writel(value, (((ahw)->pci_base0) + ((ahw)
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c34 ((adapter)->ahw.pci_base0 + (off))
36 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START)
38 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START)
320 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_niu_xg_init_port()
334 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_niu_disable_xg_port()
362 u16 board_type = adapter->ahw.board_type; in netxen_p2_nic_set_promisc()
1026 int pci_func = adapter->ahw.pci_func; in netxen_p3_get_mac_addr()
1051 u8 func = adapter->ahw.pci_func; in netxen_nic_pci_set_crbwindow_128M()
1053 if (adapter->ahw.crb_win == window) in netxen_nic_pci_set_crbwindow_128M()
1073 adapter->ahw in netxen_nic_pci_set_crbwindow_128M()
[all...]
H A Dnetxen_nic_ethtool.c91 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_link_ksettings()
110 } else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_nic_get_link_ksettings()
131 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 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()
194 if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_nic_get_link_ksettings()
211 adapter->ahw.board_type); in netxen_nic_get_link_ksettings()
233 if (!netif_running(dev) || !adapter->ahw.linkup) { in netxen_nic_get_link_ksettings()
254 if (adapter->ahw in netxen_nic_set_link_ksettings()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c34 ((adapter)->ahw.pci_base0 + (off))
36 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START)
38 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START)
320 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_niu_xg_init_port()
334 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_niu_disable_xg_port()
362 u16 board_type = adapter->ahw.board_type; in netxen_p2_nic_set_promisc()
1026 int pci_func = adapter->ahw.pci_func; in netxen_p3_get_mac_addr()
1051 u8 func = adapter->ahw.pci_func; in netxen_nic_pci_set_crbwindow_128M()
1053 if (adapter->ahw.crb_win == window) in netxen_nic_pci_set_crbwindow_128M()
1073 adapter->ahw in netxen_nic_pci_set_crbwindow_128M()
[all...]
H A Dnetxen_nic_ethtool.c91 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_link_ksettings()
110 } else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_nic_get_link_ksettings()
131 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 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()
194 if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_nic_get_link_ksettings()
211 adapter->ahw.board_type); in netxen_nic_get_link_ksettings()
233 if (!netif_running(dev) || !adapter->ahw.linkup) { in netxen_nic_get_link_ksettings()
254 if (adapter->ahw in netxen_nic_set_link_ksettings()
[all...]

Completed in 51 milliseconds

12