Lines Matching refs:ahw
16 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_MODE, data); in qlcnic_83xx_set_vnic_opmode()
66 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_vnic_buff_descriptors() local
68 if (ahw->port_type == QLCNIC_XGBE) { in qlcnic_83xx_config_vnic_buff_descriptors()
74 } else if (ahw->port_type == QLCNIC_GBE) { in qlcnic_83xx_config_vnic_buff_descriptors()
96 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_init_mgmt_vnic() local
109 for (i = 0; i < ahw->total_nic_func; i++, npar++) { in qlcnic_83xx_init_mgmt_vnic()
117 ahw->max_pci_func, ahw->total_nic_func); in qlcnic_83xx_init_mgmt_vnic()
133 ahw->msix_supported = qlcnic_use_msi_x ? 1 : 0; in qlcnic_83xx_init_mgmt_vnic()
138 ahw->fw_hal_version); in qlcnic_83xx_init_mgmt_vnic()
152 adapter->ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init_privileged_vnic()
157 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_privileged_vnic()
173 adapter->ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init_non_privileged_vnic()
177 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_non_privileged_vnic()
194 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_vnic_opmode() local
198 op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_config_vnic_opmode()
204 ahw->pci_func); in qlcnic_83xx_config_vnic_opmode()
207 ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_83xx_config_vnic_opmode()
208 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_config_vnic_opmode()
212 ahw->op_mode = QLCNIC_PRIV_FUNC; in qlcnic_83xx_config_vnic_opmode()
213 ahw->idc.state_entry = qlcnic_83xx_idc_vnic_pf_entry; in qlcnic_83xx_config_vnic_opmode()
217 ahw->op_mode = QLCNIC_MGMT_FUNC; in qlcnic_83xx_config_vnic_opmode()
218 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_config_vnic_opmode()
226 if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY) { in qlcnic_83xx_config_vnic_opmode()
235 ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER; in qlcnic_83xx_config_vnic_opmode()
236 ahw->idc.vnic_wait_limit = QLCNIC_DEV_NPAR_OPER_TIMEO; in qlcnic_83xx_config_vnic_opmode()
243 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_check_vnic_state() local
244 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_check_vnic_state()
247 state = QLCRDX(ahw, QLC_83XX_VNIC_STATE); in qlcnic_83xx_check_vnic_state()
251 state = QLCRDX(ahw, QLC_83XX_VNIC_STATE); in qlcnic_83xx_check_vnic_state()