Lines Matching refs:vf
743 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_channel_cfg_cmd() local
744 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_channel_cfg_cmd()
747 u16 func = vf->pci_func; in qlcnic_sriov_pf_channel_cfg_cmd()
751 adapter = vf->adapter; in qlcnic_sriov_pf_channel_cfg_cmd()
763 size = sizeof(*vf->sriov_vlans); in qlcnic_sriov_pf_channel_cfg_cmd()
765 memset(vf->sriov_vlans, 0, size); in qlcnic_sriov_pf_channel_cfg_cmd()
777 set_bit(QLC_BC_VF_STATE, &vf->state); in qlcnic_sriov_pf_channel_cfg_cmd()
779 clear_bit(QLC_BC_VF_STATE, &vf->state); in qlcnic_sriov_pf_channel_cfg_cmd()
789 struct qlcnic_vf_info *vf, in qlcnic_sriov_cfg_vf_def_mac() argument
800 vp = vf->vp; in qlcnic_sriov_cfg_vf_def_mac()
811 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, vf->pci_func); in qlcnic_sriov_cfg_vf_def_mac()
856 struct qlcnic_vf_info *vf, in qlcnic_83xx_cfg_default_mac_vlan() argument
865 spin_lock_bh(&vf->vlan_list_lock); in qlcnic_83xx_cfg_default_mac_vlan()
866 if (vf->num_vlan) { in qlcnic_83xx_cfg_default_mac_vlan()
868 vlan = vf->sriov_vlans[i]; in qlcnic_83xx_cfg_default_mac_vlan()
870 qlcnic_sriov_cfg_vf_def_mac(adapter, vf, vlan, in qlcnic_83xx_cfg_default_mac_vlan()
874 spin_unlock_bh(&vf->vlan_list_lock); in qlcnic_83xx_cfg_default_mac_vlan()
876 if (vf->vp->vlan_mode != QLC_PVID_MODE) { in qlcnic_83xx_cfg_default_mac_vlan()
878 qlcnic_sriov_check_any_vlan(vf)) in qlcnic_83xx_cfg_default_mac_vlan()
880 qlcnic_sriov_cfg_vf_def_mac(adapter, vf, 0, opcode); in qlcnic_83xx_cfg_default_mac_vlan()
887 struct qlcnic_vf_info *vf = tran->vf; in qlcnic_sriov_pf_create_rx_ctx_cmd() local
888 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_create_rx_ctx_cmd()
898 cmd->req.arg[6] = vf->vp->handle; in qlcnic_sriov_pf_create_rx_ctx_cmd()
903 vf->rx_ctx_id = mbx_out->ctx_id; in qlcnic_sriov_pf_create_rx_ctx_cmd()
904 qlcnic_83xx_cfg_default_mac_vlan(adapter, vf, QLCNIC_MAC_ADD); in qlcnic_sriov_pf_create_rx_ctx_cmd()
906 vf->rx_ctx_id = 0; in qlcnic_sriov_pf_create_rx_ctx_cmd()
915 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_mac_address_cmd() local
926 mac = vf->vp->mac; in qlcnic_sriov_pf_mac_address_cmd()
947 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_create_tx_ctx_cmd() local
948 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_create_tx_ctx_cmd()
958 cmd->req.arg[5] |= vf->vp->handle << 16; in qlcnic_sriov_pf_create_tx_ctx_cmd()
962 vf->tx_ctx_id = mbx_out->ctx_id; in qlcnic_sriov_pf_create_tx_ctx_cmd()
964 vf->tx_ctx_id = 0; in qlcnic_sriov_pf_create_tx_ctx_cmd()
970 static int qlcnic_sriov_validate_del_rx_ctx(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_del_rx_ctx() argument
976 if ((cmd->req.arg[1] & 0xffff) != vf->rx_ctx_id) in qlcnic_sriov_validate_del_rx_ctx()
985 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_del_rx_ctx_cmd() local
986 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_del_rx_ctx_cmd()
989 err = qlcnic_sriov_validate_del_rx_ctx(vf, cmd); in qlcnic_sriov_pf_del_rx_ctx_cmd()
995 qlcnic_83xx_cfg_default_mac_vlan(adapter, vf, QLCNIC_MAC_DEL); in qlcnic_sriov_pf_del_rx_ctx_cmd()
996 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_del_rx_ctx_cmd()
1000 vf->rx_ctx_id = 0; in qlcnic_sriov_pf_del_rx_ctx_cmd()
1005 static int qlcnic_sriov_validate_del_tx_ctx(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_del_tx_ctx() argument
1011 if ((cmd->req.arg[1] & 0xffff) != vf->tx_ctx_id) in qlcnic_sriov_validate_del_tx_ctx()
1020 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_del_tx_ctx_cmd() local
1021 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_del_tx_ctx_cmd()
1024 err = qlcnic_sriov_validate_del_tx_ctx(vf, cmd); in qlcnic_sriov_pf_del_tx_ctx_cmd()
1030 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_del_tx_ctx_cmd()
1034 vf->tx_ctx_id = 0; in qlcnic_sriov_pf_del_tx_ctx_cmd()
1039 static int qlcnic_sriov_validate_cfg_lro(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_cfg_lro() argument
1042 if ((cmd->req.arg[1] >> 16) != vf->rx_ctx_id) in qlcnic_sriov_validate_cfg_lro()
1051 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_cfg_lro_cmd() local
1052 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_lro_cmd()
1055 err = qlcnic_sriov_validate_cfg_lro(vf, cmd); in qlcnic_sriov_pf_cfg_lro_cmd()
1068 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_cfg_ip_cmd() local
1069 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_ip_cmd()
1072 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_cfg_ip_cmd()
1079 static int qlcnic_sriov_validate_cfg_intrpt(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_cfg_intrpt() argument
1082 if (((cmd->req.arg[1] >> 8) & 0xff) != vf->pci_func) in qlcnic_sriov_validate_cfg_intrpt()
1097 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_cfg_intrpt_cmd() local
1098 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_intrpt_cmd()
1101 err = qlcnic_sriov_validate_cfg_intrpt(vf, cmd); in qlcnic_sriov_pf_cfg_intrpt_cmd()
1111 struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_mtu() argument
1114 if (cmd->req.arg[1] != vf->rx_ctx_id) in qlcnic_sriov_validate_mtu()
1126 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_set_mtu_cmd() local
1127 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_set_mtu_cmd()
1130 err = qlcnic_sriov_validate_mtu(adapter, vf, cmd); in qlcnic_sriov_pf_set_mtu_cmd()
1139 static int qlcnic_sriov_validate_get_nic_info(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_get_nic_info() argument
1143 if (((cmd->req.arg[1] >> 16) & 0x7fff) != vf->pci_func) in qlcnic_sriov_validate_get_nic_info()
1146 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_validate_get_nic_info()
1155 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_get_nic_info_cmd() local
1156 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_get_nic_info_cmd()
1159 err = qlcnic_sriov_validate_get_nic_info(vf, cmd); in qlcnic_sriov_pf_get_nic_info_cmd()
1169 static int qlcnic_sriov_validate_cfg_rss(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_cfg_rss() argument
1172 if (cmd->req.arg[1] != vf->rx_ctx_id) in qlcnic_sriov_validate_cfg_rss()
1181 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_cfg_rss_cmd() local
1182 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_rss_cmd()
1185 err = qlcnic_sriov_validate_cfg_rss(vf, cmd); in qlcnic_sriov_pf_cfg_rss_cmd()
1195 struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_cfg_intrcoal() argument
1210 if (ctx_id != vf->rx_ctx_id || pkts > coal->rx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1215 if (ctx_id != vf->tx_ctx_id || pkts > coal->tx_packets || in qlcnic_sriov_validate_cfg_intrcoal()
1229 vf->rx_ctx_id, coal->rx_packets, coal->rx_time_us, in qlcnic_sriov_validate_cfg_intrcoal()
1230 vf->tx_ctx_id, coal->tx_packets, coal->tx_time_us); in qlcnic_sriov_validate_cfg_intrcoal()
1240 struct qlcnic_vf_info *vf = tran->vf; in qlcnic_sriov_pf_cfg_intrcoal_cmd() local
1241 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_intrcoal_cmd()
1244 err = qlcnic_sriov_validate_cfg_intrcoal(adapter, vf, cmd); in qlcnic_sriov_pf_cfg_intrcoal_cmd()
1255 struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_cfg_macvlan() argument
1258 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_validate_cfg_macvlan()
1264 cmd->req.arg[1] |= (vf->vp->handle << 16); in qlcnic_sriov_validate_cfg_macvlan()
1282 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_cfg_macvlan_cmd() local
1283 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_macvlan_cmd()
1286 err = qlcnic_sriov_validate_cfg_macvlan(adapter, vf, cmd); in qlcnic_sriov_pf_cfg_macvlan_cmd()
1296 static int qlcnic_sriov_validate_linkevent(struct qlcnic_vf_info *vf, in qlcnic_sriov_validate_linkevent() argument
1299 if ((cmd->req.arg[1] >> 16) != vf->rx_ctx_id) in qlcnic_sriov_validate_linkevent()
1308 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_linkevent_cmd() local
1309 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_linkevent_cmd()
1312 err = qlcnic_sriov_validate_linkevent(vf, cmd); in qlcnic_sriov_pf_linkevent_cmd()
1325 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_cfg_promisc_cmd() local
1326 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_promisc_cmd()
1329 cmd->req.arg[1] |= vf->vp->handle << 16; in qlcnic_sriov_pf_cfg_promisc_cmd()
1338 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_get_acl_cmd() local
1339 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_get_acl_cmd()
1344 adapter = vf->adapter; in qlcnic_sriov_pf_get_acl_cmd()
1369 struct qlcnic_vf_info *vf, in qlcnic_sriov_pf_del_guest_vlan() argument
1375 if (!qlcnic_sriov_check_any_vlan(vf)) in qlcnic_sriov_pf_del_guest_vlan()
1379 if (!vf->rx_ctx_id) { in qlcnic_sriov_pf_del_guest_vlan()
1380 qlcnic_sriov_del_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_del_guest_vlan()
1384 qlcnic_sriov_cfg_vf_def_mac(adapter, vf, vlan, QLCNIC_MAC_DEL); in qlcnic_sriov_pf_del_guest_vlan()
1385 qlcnic_sriov_del_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_del_guest_vlan()
1388 qlcnic_sriov_cfg_vf_def_mac(adapter, vf, in qlcnic_sriov_pf_del_guest_vlan()
1394 struct qlcnic_vf_info *vf, in qlcnic_sriov_pf_add_guest_vlan() argument
1401 if (qlcnic_83xx_pf_check(adapter) && qlcnic_sriov_check_any_vlan(vf)) in qlcnic_sriov_pf_add_guest_vlan()
1406 if (!vf->rx_ctx_id) { in qlcnic_sriov_pf_add_guest_vlan()
1407 qlcnic_sriov_add_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_add_guest_vlan()
1412 err = qlcnic_sriov_cfg_vf_def_mac(adapter, vf, 0, in qlcnic_sriov_pf_add_guest_vlan()
1418 err = qlcnic_sriov_cfg_vf_def_mac(adapter, vf, vlan, QLCNIC_MAC_ADD); in qlcnic_sriov_pf_add_guest_vlan()
1422 qlcnic_sriov_cfg_vf_def_mac(adapter, vf, 0, in qlcnic_sriov_pf_add_guest_vlan()
1427 qlcnic_sriov_add_vlan_id(sriov, vf, vlan); in qlcnic_sriov_pf_add_guest_vlan()
1434 struct qlcnic_vf_info *vf = tran->vf; in qlcnic_sriov_pf_cfg_guest_vlan_cmd() local
1435 struct qlcnic_adapter *adapter = vf->adapter; in qlcnic_sriov_pf_cfg_guest_vlan_cmd()
1436 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_cfg_guest_vlan_cmd()
1448 err = qlcnic_sriov_pf_add_guest_vlan(adapter, vf, cmd); in qlcnic_sriov_pf_cfg_guest_vlan_cmd()
1450 err = qlcnic_sriov_pf_del_guest_vlan(adapter, vf, cmd); in qlcnic_sriov_pf_cfg_guest_vlan_cmd()
1596 struct qlcnic_vf_info *vf) in qlcnic_sriov_del_rx_ctx() argument
1601 if (!vf->rx_ctx_id) in qlcnic_sriov_del_rx_ctx()
1607 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, vf->pci_func); in qlcnic_sriov_del_rx_ctx()
1609 cmd.req.arg[1] = vf->rx_ctx_id | (vpid & 0xffff) << 16; in qlcnic_sriov_del_rx_ctx()
1613 vf->pci_func); in qlcnic_sriov_del_rx_ctx()
1615 vf->rx_ctx_id = 0; in qlcnic_sriov_del_rx_ctx()
1622 struct qlcnic_vf_info *vf) in qlcnic_sriov_del_tx_ctx() argument
1627 if (!vf->tx_ctx_id) in qlcnic_sriov_del_tx_ctx()
1633 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, vf->pci_func); in qlcnic_sriov_del_tx_ctx()
1635 cmd.req.arg[1] |= vf->tx_ctx_id | (vpid & 0xffff) << 16; in qlcnic_sriov_del_tx_ctx()
1639 vf->pci_func); in qlcnic_sriov_del_tx_ctx()
1641 vf->tx_ctx_id = 0; in qlcnic_sriov_del_tx_ctx()
1648 struct qlcnic_vf_info *vf, in qlcnic_sriov_add_act_list_irqsave() argument
1651 struct qlcnic_trans_list *t_list = &vf->rcv_act; in qlcnic_sriov_add_act_list_irqsave()
1656 __qlcnic_sriov_add_act_list(sriov, vf, trans); in qlcnic_sriov_add_act_list_irqsave()
1662 static void __qlcnic_sriov_process_flr(struct qlcnic_vf_info *vf) in __qlcnic_sriov_process_flr() argument
1664 struct qlcnic_adapter *adapter = vf->adapter; in __qlcnic_sriov_process_flr()
1666 qlcnic_sriov_cleanup_list(&vf->rcv_pend); in __qlcnic_sriov_process_flr()
1667 cancel_work_sync(&vf->trans_work); in __qlcnic_sriov_process_flr()
1668 qlcnic_sriov_cleanup_list(&vf->rcv_act); in __qlcnic_sriov_process_flr()
1670 if (test_bit(QLC_BC_VF_SOFT_FLR, &vf->state)) { in __qlcnic_sriov_process_flr()
1671 qlcnic_sriov_del_tx_ctx(adapter, vf); in __qlcnic_sriov_process_flr()
1672 qlcnic_sriov_del_rx_ctx(adapter, vf); in __qlcnic_sriov_process_flr()
1675 qlcnic_sriov_pf_config_vport(adapter, 0, vf->pci_func); in __qlcnic_sriov_process_flr()
1677 clear_bit(QLC_BC_VF_FLR, &vf->state); in __qlcnic_sriov_process_flr()
1678 if (test_bit(QLC_BC_VF_SOFT_FLR, &vf->state)) { in __qlcnic_sriov_process_flr()
1679 qlcnic_sriov_add_act_list_irqsave(adapter->ahw->sriov, vf, in __qlcnic_sriov_process_flr()
1680 vf->flr_trans); in __qlcnic_sriov_process_flr()
1681 clear_bit(QLC_BC_VF_SOFT_FLR, &vf->state); in __qlcnic_sriov_process_flr()
1682 vf->flr_trans = NULL; in __qlcnic_sriov_process_flr()
1688 struct qlcnic_vf_info *vf; in qlcnic_sriov_pf_process_flr() local
1690 vf = container_of(work, struct qlcnic_vf_info, flr_work); in qlcnic_sriov_pf_process_flr()
1691 __qlcnic_sriov_process_flr(vf); in qlcnic_sriov_pf_process_flr()
1696 struct qlcnic_vf_info *vf, in qlcnic_sriov_schedule_flr() argument
1699 if (test_bit(__QLCNIC_RESETTING, &vf->adapter->state)) in qlcnic_sriov_schedule_flr()
1702 INIT_WORK(&vf->flr_work, func); in qlcnic_sriov_schedule_flr()
1703 queue_work(sriov->bc.bc_flr_wq, &vf->flr_work); in qlcnic_sriov_schedule_flr()
1708 struct qlcnic_vf_info *vf) in qlcnic_sriov_handle_soft_flr() argument
1712 set_bit(QLC_BC_VF_FLR, &vf->state); in qlcnic_sriov_handle_soft_flr()
1713 clear_bit(QLC_BC_VF_STATE, &vf->state); in qlcnic_sriov_handle_soft_flr()
1714 set_bit(QLC_BC_VF_SOFT_FLR, &vf->state); in qlcnic_sriov_handle_soft_flr()
1715 vf->flr_trans = trans; in qlcnic_sriov_handle_soft_flr()
1716 qlcnic_sriov_schedule_flr(sriov, vf, qlcnic_sriov_pf_process_flr); in qlcnic_sriov_handle_soft_flr()
1718 vf->pci_func); in qlcnic_sriov_handle_soft_flr()
1723 struct qlcnic_vf_info *vf) in qlcnic_sriov_soft_flr_check() argument
1729 test_bit(QLC_BC_VF_STATE, &vf->state)) { in qlcnic_sriov_soft_flr_check()
1730 qlcnic_sriov_handle_soft_flr(adapter, trans, vf); in qlcnic_sriov_soft_flr_check()
1738 struct qlcnic_vf_info *vf) in qlcnic_sriov_pf_handle_flr() argument
1740 struct net_device *dev = vf->adapter->netdev; in qlcnic_sriov_pf_handle_flr()
1741 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_handle_flr()
1743 if (!test_and_clear_bit(QLC_BC_VF_STATE, &vf->state)) { in qlcnic_sriov_pf_handle_flr()
1744 clear_bit(QLC_BC_VF_FLR, &vf->state); in qlcnic_sriov_pf_handle_flr()
1748 if (test_and_set_bit(QLC_BC_VF_FLR, &vf->state)) { in qlcnic_sriov_pf_handle_flr()
1750 vf->pci_func); in qlcnic_sriov_pf_handle_flr()
1755 memset(vf->sriov_vlans, 0, in qlcnic_sriov_pf_handle_flr()
1756 sizeof(*vf->sriov_vlans) * sriov->num_allowed_vlans); in qlcnic_sriov_pf_handle_flr()
1758 qlcnic_sriov_schedule_flr(sriov, vf, qlcnic_sriov_pf_process_flr); in qlcnic_sriov_pf_handle_flr()
1759 netdev_info(dev, "FLR received for PCI func %d\n", vf->pci_func); in qlcnic_sriov_pf_handle_flr()
1766 struct qlcnic_vf_info *vf; in qlcnic_sriov_pf_reset() local
1771 vf = &sriov->vf_info[i]; in qlcnic_sriov_pf_reset()
1772 vf->rx_ctx_id = 0; in qlcnic_sriov_pf_reset()
1773 vf->tx_ctx_id = 0; in qlcnic_sriov_pf_reset()
1774 cancel_work_sync(&vf->flr_work); in qlcnic_sriov_pf_reset()
1775 __qlcnic_sriov_process_flr(vf); in qlcnic_sriov_pf_reset()
1776 clear_bit(QLC_BC_VF_STATE, &vf->state); in qlcnic_sriov_pf_reset()
1802 int qlcnic_sriov_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in qlcnic_sriov_set_vf_mac() argument
1815 if (!is_valid_ether_addr(mac) || vf >= num_vfs) in qlcnic_sriov_set_vf_mac()
1833 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_mac()
1839 vf); in qlcnic_sriov_set_vf_mac()
1845 mac, vf); in qlcnic_sriov_set_vf_mac()
1849 int qlcnic_sriov_set_vf_tx_rate(struct net_device *netdev, int vf, in qlcnic_sriov_set_vf_tx_rate() argument
1862 if (vf >= sriov->num_vfs) in qlcnic_sriov_set_vf_tx_rate()
1865 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_tx_rate()
1904 max_tx_rate, vp->max_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate()
1908 min_tx_rate, vp->min_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate()
1912 int qlcnic_sriov_set_vf_vlan(struct net_device *netdev, int vf, in qlcnic_sriov_set_vf_vlan() argument
1923 if (vf >= sriov->num_vfs || qos > 7) in qlcnic_sriov_set_vf_vlan()
1936 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_vlan()
1941 vf); in qlcnic_sriov_set_vf_vlan()
1964 vlan, qos, vf); in qlcnic_sriov_set_vf_vlan()
1969 struct qlcnic_vport *vp, int vf) in qlcnic_sriov_get_vf_vlan() argument
1985 vp->vlan_mode, vf); in qlcnic_sriov_get_vf_vlan()
1992 int vf, struct ifla_vf_info *ivi) in qlcnic_sriov_get_vf_config() argument
2001 if (vf >= sriov->num_vfs) in qlcnic_sriov_get_vf_config()
2004 vp = sriov->vf_info[vf].vp; in qlcnic_sriov_get_vf_config()
2006 ivi->vlan = qlcnic_sriov_get_vf_vlan(adapter, vp, vf); in qlcnic_sriov_get_vf_config()
2018 ivi->vf = vf; in qlcnic_sriov_get_vf_config()
2022 int qlcnic_sriov_set_vf_spoofchk(struct net_device *netdev, int vf, bool chk) in qlcnic_sriov_set_vf_spoofchk() argument
2032 if (vf >= sriov->num_vfs) in qlcnic_sriov_set_vf_spoofchk()
2035 vf_info = &sriov->vf_info[vf]; in qlcnic_sriov_set_vf_spoofchk()
2040 vf); in qlcnic_sriov_set_vf_spoofchk()