Searched refs:total_vfs (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 2932 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument 2940 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov() 2949 if (existing_vfs != total_vfs) { in mlx4_enable_sriov() 2951 existing_vfs, total_vfs); in mlx4_enable_sriov() 2952 total_vfs = existing_vfs; in mlx4_enable_sriov() 2956 dev->dev_vfs = kzalloc(total_vfs * sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov() 2963 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov() 2965 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov() 2969 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov() 2970 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 217 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
|
D | fm10k_type.h | 636 u16 total_vfs; member
|
D | fm10k_pf.c | 188 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; in fm10k_init_hw_pf() 640 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
|
D | fm10k_netdev.c | 379 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
|
D | fm10k_pci.c | 1697 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 1163 int total_vfs; in pnv_pci_vf_assign_m64() local 1173 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_vf_assign_m64() 2743 int mul, total_vfs; in pnv_pci_ioda_fixup_iov_resources() local 2754 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_ioda_fixup_iov_resources() 2775 mul = roundup_pow_of_two(total_vfs); in pnv_pci_ioda_fixup_iov_resources()
|