Lines Matching refs:ahw
46 static inline u32 qlcnic_get_cmd_signature(struct qlcnic_hardware_context *ahw) in qlcnic_get_cmd_signature() argument
48 return (ahw->pci_func & 0xff) | ((ahw->fw_hal_version & 0xff) << 8) | in qlcnic_get_cmd_signature()
118 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_issue_cmd() local
121 signature = qlcnic_get_cmd_signature(ahw); in qlcnic_82xx_issue_cmd()
237 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_fw_cmd_create_rx_ctx() local
287 !adapter->ahw->diag_test) { in qlcnic_82xx_fw_cmd_create_rx_ctx()
331 !adapter->ahw->diag_test) in qlcnic_82xx_fw_cmd_create_rx_ctx()
332 prq_sds[i].msi_index = cpu_to_le16(ahw->intr_tbl[i].id); in qlcnic_82xx_fw_cmd_create_rx_ctx()
358 rds_ring->crb_rcv_producer = ahw->pci_base0 + reg; in qlcnic_82xx_fw_cmd_create_rx_ctx()
367 if (qlcnic_check_multi_tx(adapter) && !adapter->ahw->diag_test) in qlcnic_82xx_fw_cmd_create_rx_ctx()
368 reg2 = ahw->intr_tbl[i].src; in qlcnic_82xx_fw_cmd_create_rx_ctx()
372 sds_ring->crb_intr_mask = ahw->pci_base0 + reg2; in qlcnic_82xx_fw_cmd_create_rx_ctx()
373 sds_ring->crb_sts_consumer = ahw->pci_base0 + reg; in qlcnic_82xx_fw_cmd_create_rx_ctx()
417 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_fw_cmd_create_tx_ctx() local
457 if (qlcnic_check_multi_tx(adapter) && !adapter->ahw->diag_test) in qlcnic_82xx_fw_cmd_create_tx_ctx()
463 !adapter->ahw->diag_test) { in qlcnic_82xx_fw_cmd_create_tx_ctx()
466 msix_id = ahw->intr_tbl[index].id; in qlcnic_82xx_fw_cmd_create_tx_ctx()
496 tx_ring->crb_cmd_producer = adapter->ahw->pci_base0 + temp; in qlcnic_82xx_fw_cmd_create_tx_ctx()
499 !adapter->ahw->diag_test && in qlcnic_82xx_fw_cmd_create_tx_ctx()
502 intr_mask = ahw->intr_tbl[index].src; in qlcnic_82xx_fw_cmd_create_tx_ctx()
503 tx_ring->crb_intr_mask = ahw->pci_base0 + intr_mask; in qlcnic_82xx_fw_cmd_create_tx_ctx()
635 if (dev->ahw->diag_test != QLCNIC_LOOPBACK_TEST) { in qlcnic_fw_create_ctx()
643 qlcnic_check_multi_tx(dev) && !dev->ahw->diag_test) { in qlcnic_fw_create_ctx()
675 qlcnic_check_multi_tx(dev) && !dev->ahw->diag_test) in qlcnic_fw_create_ctx()
679 if (dev->ahw->diag_test != QLCNIC_LOOPBACK_TEST) in qlcnic_fw_create_ctx()
699 !adapter->ahw->diag_test) in qlcnic_fw_destroy_ctx()
704 if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST) in qlcnic_fw_destroy_ctx()
768 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_config_intrpt() local
774 for (i = 0; i < ahw->num_msix; i++) { in qlcnic_82xx_config_intrpt()
780 val = type | (ahw->intr_tbl[i].type << 4); in qlcnic_82xx_config_intrpt()
781 if (ahw->intr_tbl[i].type == QLCNIC_INTRPT_MSIX) in qlcnic_82xx_config_intrpt()
782 val |= (ahw->intr_tbl[i].id << 16); in qlcnic_82xx_config_intrpt()
796 ahw->intr_tbl[i].id); in qlcnic_82xx_config_intrpt()
800 ahw->intr_tbl[i].id = MSW(val); in qlcnic_82xx_config_intrpt()
801 ahw->intr_tbl[i].enabled = 1; in qlcnic_82xx_config_intrpt()
802 ahw->intr_tbl[i].src = cmd.rsp.arg[2]; in qlcnic_82xx_config_intrpt()
804 ahw->intr_tbl[i].id = i; in qlcnic_82xx_config_intrpt()
805 ahw->intr_tbl[i].enabled = 0; in qlcnic_82xx_config_intrpt()
806 ahw->intr_tbl[i].src = 0; in qlcnic_82xx_config_intrpt()
907 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_82xx_set_nic_info()
955 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_82xx_get_pci_info() local
957 size_t pci_size = npar_size * ahw->max_vnic_func; in qlcnic_82xx_get_pci_info()
980 ahw->total_nic_func = 0; in qlcnic_82xx_get_pci_info()
982 for (i = 0; i < ahw->max_vnic_func; i++, npar++, pci_info++) { in qlcnic_82xx_get_pci_info()
1004 ahw->total_nic_func = nic; in qlcnic_82xx_get_pci_info()
1005 ahw->total_pci_func = nic + fcoe + iscsi; in qlcnic_82xx_get_pci_info()
1006 if (ahw->total_nic_func == 0 || ahw->total_pci_func == 0) { in qlcnic_82xx_get_pci_info()
1009 __func__, ahw->total_nic_func, ahw->total_pci_func); in qlcnic_82xx_get_pci_info()
1029 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC || in qlcnic_config_port_mirroring()
1072 if ((adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) && in qlcnic_get_port_stats()
1073 (func != adapter->ahw->pci_func)) { in qlcnic_get_port_stats()
1192 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_get_eswitch_stats()
1207 for (i = 0; i < adapter->ahw->total_nic_func; i++) { in qlcnic_get_eswitch_stats()
1240 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_clear_esw_stats() local
1245 if (ahw->op_mode != QLCNIC_MGMT_FUNC) in qlcnic_clear_esw_stats()
1249 if (port >= ahw->max_vnic_func) in qlcnic_clear_esw_stats()
1324 if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) { in qlcnic_config_switch_port()
1346 if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO) in qlcnic_config_switch_port()
1406 if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC) { in qlcnic_get_eswitch_port_config()
1412 phy_port = adapter->ahw->physical_port; in qlcnic_get_eswitch_port_config()