Lines Matching refs:ahw

156 	adapter->ahw->sriov = sriov;
235 kfree(adapter->ahw->sriov);
263 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
287 kfree(adapter->ahw->sriov);
314 struct qlcnic_hardware_context *ahw = adapter->ahw;
315 struct qlcnic_mailbox *mbx = ahw->mailbox;
332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func,
333 ahw->op_mode);
340 __func__, cmd.cmd_op, cmd.type, ahw->pci_func,
341 ahw->op_mode);
436 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
469 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
500 struct qlcnic_hardware_context *ahw = adapter->ahw;
508 ahw->max_mc_count = nic_info.max_rx_mcast_mac_filters;
510 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func);
520 adapter->ahw->fw_hal_version);
522 ahw->physical_port = (u8) nic_info.phys_port;
523 ahw->switch_mode = nic_info.switch_mode;
524 ahw->max_mtu = nic_info.max_mtu;
525 ahw->op_mode = nic_info.op_mode;
526 ahw->capabilities = nic_info.capabilities;
535 adapter->ahw->total_nic_func = 1;
584 adapter->ahw->idc.delay);
612 state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
620 struct qlcnic_hardware_context *ahw = adapter->ahw;
623 set_bit(QLC_83XX_MODULE_LOADED, &ahw->idc.status);
624 ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY;
625 ahw->reset_context = 0;
627 ahw->msix_supported = 1;
650 struct qlcnic_hardware_context *ahw = adapter->ahw;
652 ahw->op_mode = QLCNIC_SRIOV_VF_FUNC;
655 ahw->fw_hal_version);
661 void qlcnic_sriov_vf_register_map(struct qlcnic_hardware_context *ahw)
663 ahw->hw_ops = &qlcnic_sriov_vf_hw_ops;
664 ahw->reg_tbl = (u32 *)qlcnic_83xx_reg_tbl;
665 ahw->ext_reg_tbl = (u32 *)qlcnic_83xx_ext_reg_tbl;
684 struct qlcnic_vf_info *vf_info = adapter->ahw->sriov->vf_info;
690 for (i = 0; i < adapter->ahw->sriov->num_vfs; i++) {
908 struct qlcnic_hardware_context *ahw = adapter->ahw;
915 *(hdr++) = readl(QLCNIC_MBX_FW(ahw, i));
917 *(pay++) = readl(QLCNIC_MBX_FW(ahw, i));
1015 vf = &adapter->ahw->sriov->vf_info[index];
1082 qlcnic_sriov_schedule_bc_cmd(adapter->ahw->sriov, vf,
1272 ptr[i - 2] = readl(QLCNIC_MBX_FW(vf->adapter->ahw, i));
1304 sriov = adapter->ahw->sriov;
1358 state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
1375 struct qlcnic_hardware_context *ahw = adapter->ahw;
1376 struct qlcnic_mailbox *mbx = ahw->mailbox;
1381 u16 seq = ++adapter->ahw->sriov->bc.trans_counter;
1382 u8 func = ahw->pci_func;
1439 ahw->reset_context = 1;
1469 struct qlcnic_vf_info *vf = &adapter->ahw->sriov->vf_info[0];
1501 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
1506 vf = &adapter->ahw->sriov->vf_info[0];
1546 struct qlcnic_hardware_context *ahw = adapter->ahw;
1560 (netdev_mc_count(netdev) > ahw->max_mc_count)) {
1575 if (netdev_uc_count(netdev) > ahw->max_uc_count) {
1664 struct qlcnic_back_channel *bc = &adapter->ahw->sriov->bc;
1679 qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox);
1718 struct qlcnic_hardware_context *ahw = adapter->ahw;
1719 struct qlcnic_intrpt_config *intr_tbl = ahw->intr_tbl;
1721 u8 i, max_ints = ahw->num_msix - 1;
1735 ahw->reset_context = 0;
1740 struct qlcnic_hardware_context *ahw = adapter->ahw;
1742 struct qlc_83xx_idc *idc = &ahw->idc;
1743 u8 func = ahw->pci_func;
1758 state = QLCRDX(ahw, QLC_83XX_IDC_DEV_STATE);
1769 struct qlcnic_hardware_context *ahw = adapter->ahw;
1770 struct qlcnic_mailbox *mbx = ahw->mailbox;
1772 struct qlc_83xx_idc *idc = &ahw->idc;
1773 u8 func = ahw->pci_func;
1819 state = QLCRDX(ahw, QLC_83XX_IDC_DEV_STATE);
1828 struct qlcnic_hardware_context *ahw = adapter->ahw;
1831 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY)
1833 else if (ahw->reset_context)
1842 struct qlc_83xx_idc *idc = &adapter->ahw->idc;
1856 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
1857 struct qlc_83xx_idc *idc = &adapter->ahw->idc;
1873 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
1874 struct qlc_83xx_idc *idc = &adapter->ahw->idc;
1875 u8 func = adapter->ahw->pci_func;
1908 idc = &adapter->ahw->idc;
1909 idc->curr_state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
1944 clear_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status);
1987 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
1993 vf = &adapter->ahw->sriov->vf_info[0];
2028 sriov = adapter->ahw->sriov;
2053 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
2063 vf = &adapter->ahw->sriov->vf_info[0];
2135 struct qlc_83xx_idc *idc = &adapter->ahw->idc;
2162 struct qlcnic_sriov *sriov = adapter->ahw->sriov;
2179 struct qlcnic_sriov *sriov = adapter->ahw->sriov;