• Home
  • Raw
  • Download

Lines Matching refs:sriov

70 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;  in qlcnic_sriov_pf_cal_res_limit()  local
71 struct qlcnic_resources *res = &sriov->ff_max; in qlcnic_sriov_pf_cal_res_limit()
72 u16 num_macs = sriov->num_allowed_vlans + 1; in qlcnic_sriov_pf_cal_res_limit()
81 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit()
103 info->max_tx_ques = res->num_tx_queues - sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit()
108 vp = sriov->vf_info[id].vp; in qlcnic_sriov_pf_cal_res_limit()
139 struct qlcnic_resources *ff_max = &adapter->ahw->sriov->ff_max; in qlcnic_sriov_pf_set_ff_max_res()
158 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_max_vlan() local
162 total_fn = sriov->num_vfs + 1; in qlcnic_sriov_set_vf_max_vlan()
165 sriov->num_allowed_vlans = temp - 1; in qlcnic_sriov_set_vf_max_vlan()
168 sriov->num_allowed_vlans = 1; in qlcnic_sriov_set_vf_max_vlan()
171 sriov->num_allowed_vlans); in qlcnic_sriov_set_vf_max_vlan()
235 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_reset_vport_handle() local
240 sriov->vp_handle = 0; in qlcnic_sriov_pf_reset_vport_handle()
245 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_reset_vport_handle()
253 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_set_vport_handle() local
258 sriov->vp_handle = vport_handle; in qlcnic_sriov_pf_set_vport_handle()
263 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_set_vport_handle()
271 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_get_vport_handle() local
276 return sriov->vp_handle; in qlcnic_sriov_pf_get_vport_handle()
280 vf_info = &sriov->vf_info[index]; in qlcnic_sriov_pf_get_vport_handle()
408 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_del_flr_queue() local
409 struct qlcnic_back_channel *bc = &sriov->bc; in qlcnic_sriov_pf_del_flr_queue()
412 for (i = 0; i < sriov->num_vfs; i++) in qlcnic_sriov_pf_del_flr_queue()
413 cancel_work_sync(&sriov->vf_info[i].flr_work); in qlcnic_sriov_pf_del_flr_queue()
420 struct qlcnic_back_channel *bc = &adapter->ahw->sriov->bc; in qlcnic_sriov_pf_create_flr_queue()
693 vp = adapter->ahw->sriov->vf_info[id].vp; in qlcnic_sriov_set_vf_acl()
744 struct qlcnic_sriov *sriov; in qlcnic_sriov_pf_channel_cfg_cmd() local
750 sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_channel_cfg_cmd()
762 size = size * sriov->num_allowed_vlans; in qlcnic_sriov_pf_channel_cfg_cmd()
857 struct qlcnic_sriov *sriov; in qlcnic_83xx_cfg_default_mac_vlan() local
861 sriov = adapter->ahw->sriov; in qlcnic_83xx_cfg_default_mac_vlan()
865 for (i = 0; i < sriov->num_allowed_vlans; i++) { in qlcnic_83xx_cfg_default_mac_vlan()
1343 struct qlcnic_sriov *sriov; in qlcnic_sriov_pf_get_acl_cmd() local
1346 sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_get_acl_cmd()
1360 cmd->rsp.arg[2] = sriov->num_allowed_vlans << 16; in qlcnic_sriov_pf_get_acl_cmd()
1374 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_del_guest_vlan() local
1382 qlcnic_sriov_del_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_del_guest_vlan()
1387 qlcnic_sriov_del_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_del_guest_vlan()
1399 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_add_guest_vlan() local
1409 qlcnic_sriov_add_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_add_guest_vlan()
1429 qlcnic_sriov_add_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_add_guest_vlan()
1649 static int qlcnic_sriov_add_act_list_irqsave(struct qlcnic_sriov *sriov, in qlcnic_sriov_add_act_list_irqsave() argument
1658 __qlcnic_sriov_add_act_list(sriov, vf, trans); in qlcnic_sriov_add_act_list_irqsave()
1681 qlcnic_sriov_add_act_list_irqsave(adapter->ahw->sriov, vf, in __qlcnic_sriov_process_flr()
1697 static void qlcnic_sriov_schedule_flr(struct qlcnic_sriov *sriov, in qlcnic_sriov_schedule_flr() argument
1705 queue_work(sriov->bc.bc_flr_wq, &vf->flr_work); in qlcnic_sriov_schedule_flr()
1712 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_handle_soft_flr() local
1718 qlcnic_sriov_schedule_flr(sriov, vf, qlcnic_sriov_pf_process_flr); in qlcnic_sriov_handle_soft_flr()
1739 void qlcnic_sriov_pf_handle_flr(struct qlcnic_sriov *sriov, in qlcnic_sriov_pf_handle_flr() argument
1758 sizeof(*vf->sriov_vlans) * sriov->num_allowed_vlans); in qlcnic_sriov_pf_handle_flr()
1760 qlcnic_sriov_schedule_flr(sriov, vf, qlcnic_sriov_pf_process_flr); in qlcnic_sriov_pf_handle_flr()
1767 struct qlcnic_sriov *sriov = ahw->sriov; in qlcnic_sriov_pf_reset() local
1769 u16 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_reset()
1773 vf = &sriov->vf_info[i]; in qlcnic_sriov_pf_reset()
1807 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_mac() local
1815 num_vfs = sriov->num_vfs; in qlcnic_sriov_set_vf_mac()
1826 vf_info = &sriov->vf_info[i]; in qlcnic_sriov_set_vf_mac()
1835 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_mac()
1855 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_tx_rate() local
1864 if (vf >= sriov->num_vfs) in qlcnic_sriov_set_vf_tx_rate()
1867 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_tx_rate()
1920 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_vlan() local
1927 if (vf >= sriov->num_vfs || qos > 7) in qlcnic_sriov_set_vf_vlan()
1937 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_vlan()
1947 sizeof(*vf_info->sriov_vlans) * sriov->num_allowed_vlans); in qlcnic_sriov_set_vf_vlan()
1959 qlcnic_sriov_add_vlan_id(sriov, vf_info, vlan); in qlcnic_sriov_set_vf_vlan()
1996 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_get_vf_config() local
2002 if (vf >= sriov->num_vfs) in qlcnic_sriov_get_vf_config()
2005 vp = sriov->vf_info[vf].vp; in qlcnic_sriov_get_vf_config()
2026 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_spoofchk() local
2033 if (vf >= sriov->num_vfs) in qlcnic_sriov_set_vf_spoofchk()
2036 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_spoofchk()