num_alloc_vfs 1647 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->num_alloc_vfs = hdev->num_req_vfs; num_alloc_vfs 8271 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (vfid >= hdev->num_alloc_vfs || vlan > VLAN_N_VID - 1 || qos > 7) num_alloc_vfs 784 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h int num_alloc_vfs; /* Actual number of VFs allocated */ num_alloc_vfs 613 drivers/net/ethernet/intel/i40e/i40e.h int num_alloc_vfs; /* actual number of VFs allocated */ num_alloc_vfs 660 drivers/net/ethernet/intel/i40e/i40e_debugfs.c if (!pf->num_alloc_vfs) { num_alloc_vfs 662 drivers/net/ethernet/intel/i40e/i40e_debugfs.c } else if ((vf_id >= 0) && (vf_id < pf->num_alloc_vfs)) { num_alloc_vfs 684 drivers/net/ethernet/intel/i40e/i40e_debugfs.c if (!pf->num_alloc_vfs) num_alloc_vfs 687 drivers/net/ethernet/intel/i40e/i40e_debugfs.c for (i = 0; i < pf->num_alloc_vfs; i++) num_alloc_vfs 2516 drivers/net/ethernet/intel/i40e/i40e_ethtool.c for (i = 0; i < pf->num_alloc_vfs; i++) num_alloc_vfs 4503 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (vf >= pf->num_alloc_vfs) num_alloc_vfs 10316 drivers/net/ethernet/intel/i40e/i40e_main.c for (i = 0; i < pf->num_alloc_vfs && mdd_detected; i++) { num_alloc_vfs 27 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { num_alloc_vfs 88 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++) num_alloc_vfs 120 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) num_alloc_vfs 1413 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!pf->num_alloc_vfs) num_alloc_vfs 1421 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) num_alloc_vfs 1430 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0, v = 0; i < 10 && v < pf->num_alloc_vfs; i++) { num_alloc_vfs 1436 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c while (v < pf->num_alloc_vfs) { num_alloc_vfs 1455 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (v < pf->num_alloc_vfs) num_alloc_vfs 1463 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) { num_alloc_vfs 1474 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) { num_alloc_vfs 1488 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) num_alloc_vfs 1517 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++) { num_alloc_vfs 1524 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++) { num_alloc_vfs 1541 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c tmp = pf->num_alloc_vfs; num_alloc_vfs 1542 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c pf->num_alloc_vfs = 0; num_alloc_vfs 1578 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c int i40e_alloc_vfs(struct i40e_pf *pf, u16 num_alloc_vfs) num_alloc_vfs 1587 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (pci_num_vf(pf->pdev) != num_alloc_vfs) { num_alloc_vfs 1588 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = pci_enable_sriov(pf->pdev, num_alloc_vfs); num_alloc_vfs 1591 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c pf->num_alloc_vfs = 0; num_alloc_vfs 1596 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vfs = kcalloc(num_alloc_vfs, sizeof(struct i40e_vf), GFP_KERNEL); num_alloc_vfs 1604 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < num_alloc_vfs; i++) { num_alloc_vfs 1616 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c pf->num_alloc_vfs = num_alloc_vfs; num_alloc_vfs 1621 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_notify_client_of_vf_enable(pf, num_alloc_vfs); num_alloc_vfs 1744 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) num_alloc_vfs 3757 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (local_vf_id < 0 || local_vf_id >= pf->num_alloc_vfs) num_alloc_vfs 3905 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (vf_id = 0; vf_id < pf->num_alloc_vfs; vf_id++) { num_alloc_vfs 3934 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 4386 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 4456 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 4513 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 120 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h int i40e_alloc_vfs(struct i40e_pf *pf, u16 num_alloc_vfs); num_alloc_vfs 335 drivers/net/ethernet/intel/ice/ice.h int num_alloc_vfs; /* actual number of VFs allocated */ num_alloc_vfs 288 drivers/net/ethernet/intel/ice/ice_ethtool.c for (i = 0; i < pf->num_alloc_vfs; i++, vf++) num_alloc_vfs 503 drivers/net/ethernet/intel/ice/ice_main.c for (i = 0; i < pf->num_alloc_vfs; i++) num_alloc_vfs 864 drivers/net/ethernet/intel/ice/ice_main.c if (pf->num_alloc_vfs) num_alloc_vfs 1319 drivers/net/ethernet/intel/ice/ice_main.c for (i = 0; i < pf->num_alloc_vfs; i++) { num_alloc_vfs 54 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { num_alloc_vfs 302 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++) num_alloc_vfs 315 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c tmp = pf->num_alloc_vfs; num_alloc_vfs 317 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c pf->num_alloc_vfs = 0; num_alloc_vfs 740 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c num_all_res = pf->num_alloc_vfs * res; num_alloc_vfs 856 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (!pf->num_alloc_vfs || max_valid_res_idx < 0) num_alloc_vfs 878 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (pf->num_alloc_vfs <= 16) { num_alloc_vfs 882 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c } else if (pf->num_alloc_vfs <= ICE_MAX_VF_COUNT) { num_alloc_vfs 889 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c pf->num_alloc_vfs, ICE_MAX_VF_COUNT); num_alloc_vfs 912 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (ice_sriov_set_msix_res(pf, num_msix * pf->num_alloc_vfs)) num_alloc_vfs 1040 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) { num_alloc_vfs 1075 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (!pf->num_alloc_vfs) num_alloc_vfs 1083 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) num_alloc_vfs 1086 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) { num_alloc_vfs 1103 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (i = 0, v = 0; i < 10 && v < pf->num_alloc_vfs; i++) { num_alloc_vfs 1106 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c while (v < pf->num_alloc_vfs) { num_alloc_vfs 1127 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (v < pf->num_alloc_vfs) num_alloc_vfs 1131 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (v = 0; v < pf->num_alloc_vfs; v++) { num_alloc_vfs 1256 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (i = 0; i < pf->num_alloc_vfs; i++) num_alloc_vfs 1270 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (!pf->num_alloc_vfs) num_alloc_vfs 1288 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) num_alloc_vfs 1311 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_alloc_vfs(struct ice_pf *pf, u16 num_alloc_vfs) num_alloc_vfs 1323 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c ret = pci_enable_sriov(pf->pdev, num_alloc_vfs); num_alloc_vfs 1325 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c pf->num_alloc_vfs = 0; num_alloc_vfs 1329 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c vfs = devm_kcalloc(&pf->pdev->dev, num_alloc_vfs, sizeof(*vfs), num_alloc_vfs 1338 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (i = 0; i < num_alloc_vfs; i++) { num_alloc_vfs 1347 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c pf->num_alloc_vfs = num_alloc_vfs; num_alloc_vfs 1361 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c pf->num_alloc_vfs = 0; num_alloc_vfs 1484 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c !pf->num_alloc_vfs) num_alloc_vfs 1487 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c for (vf_id = 0; vf_id < pf->num_alloc_vfs; vf_id++) { num_alloc_vfs 1531 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) num_alloc_vfs 2581 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 2911 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 3032 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 3085 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 3146 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 3193 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) { num_alloc_vfs 3233 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c if (vf_id >= pf->num_alloc_vfs) {