Lines Matching refs:ahw
17 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_OPER); in qlcnic_83xx_enable_vnic_mode()
26 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_disable_vnic_mode() local
33 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_NON_OPER); in qlcnic_83xx_disable_vnic_mode()
34 ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER; in qlcnic_83xx_disable_vnic_mode()
47 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_set_vnic_opmode() local
52 id = ahw->pci_func; in qlcnic_83xx_set_vnic_opmode()
53 data = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_set_vnic_opmode()
57 QLCWRX(adapter->ahw, QLC_83XX_DRV_OP_MODE, data); in qlcnic_83xx_set_vnic_opmode()
67 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_vnic_buff_descriptors() local
69 if (ahw->port_type == QLCNIC_XGBE) { in qlcnic_83xx_config_vnic_buff_descriptors()
75 } else if (ahw->port_type == QLCNIC_GBE) { in qlcnic_83xx_config_vnic_buff_descriptors()
97 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_init_mgmt_vnic() local
110 for (i = 0; i < ahw->total_nic_func; i++, npar++) { in qlcnic_83xx_init_mgmt_vnic()
118 ahw->max_pci_func, ahw->total_nic_func); in qlcnic_83xx_init_mgmt_vnic()
134 ahw->msix_supported = qlcnic_use_msi_x ? 1 : 0; in qlcnic_83xx_init_mgmt_vnic()
139 ahw->fw_hal_version); in qlcnic_83xx_init_mgmt_vnic()
153 adapter->ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init_privileged_vnic()
158 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_privileged_vnic()
174 adapter->ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init_non_privileged_vnic()
178 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_non_privileged_vnic()
195 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_vnic_opmode() local
199 op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); in qlcnic_83xx_config_vnic_opmode()
205 ahw->pci_func); in qlcnic_83xx_config_vnic_opmode()
208 ahw->op_mode = QLCNIC_NON_PRIV_FUNC; in qlcnic_83xx_config_vnic_opmode()
209 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_config_vnic_opmode()
213 ahw->op_mode = QLCNIC_PRIV_FUNC; in qlcnic_83xx_config_vnic_opmode()
214 ahw->idc.state_entry = qlcnic_83xx_idc_vnic_pf_entry; in qlcnic_83xx_config_vnic_opmode()
218 ahw->op_mode = QLCNIC_MGMT_FUNC; in qlcnic_83xx_config_vnic_opmode()
219 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_config_vnic_opmode()
227 if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY) { in qlcnic_83xx_config_vnic_opmode()
236 ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER; in qlcnic_83xx_config_vnic_opmode()
237 ahw->idc.vnic_wait_limit = QLCNIC_DEV_NPAR_OPER_TIMEO; in qlcnic_83xx_config_vnic_opmode()
244 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_check_vnic_state() local
245 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_check_vnic_state()
248 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()