/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | ib_rep.c | 101 int total_vfs = MLX5_TOTAL_VPORTS(dev->mdev); in mlx5_ib_rep_register_vf_vports() local 104 for (vport = 1; vport < total_vfs; vport++) { in mlx5_ib_rep_register_vf_vports() 117 int total_vfs = MLX5_TOTAL_VPORTS(dev->mdev); in mlx5_ib_rep_unregister_vf_vports() local 120 for (vport = 1; vport < total_vfs; vport++) in mlx5_ib_rep_unregister_vf_vports()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 260 int total_vfs; in mlx5_sriov_init() local 265 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init() 267 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init()
|
D | en_rep.c | 1230 int total_vfs = MLX5_TOTAL_VPORTS(mdev); in mlx5e_rep_register_vf_vports() local 1233 for (vport = 1; vport < total_vfs; vport++) { in mlx5e_rep_register_vf_vports() 1247 int total_vfs = MLX5_TOTAL_VPORTS(mdev); in mlx5e_rep_unregister_vf_vports() local 1250 for (vport = 1; vport < total_vfs; vport++) in mlx5e_rep_unregister_vf_vports()
|
D | eswitch_offloads.c | 850 int total_vfs = MLX5_TOTAL_VPORTS(esw->dev); in esw_offloads_init_reps() local 857 esw->offloads.vport_reps = kcalloc(total_vfs, in esw_offloads_init_reps() 866 for (vport = 0; vport < total_vfs; vport++) { in esw_offloads_init_reps()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 3197 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument 3205 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov() 3214 if (existing_vfs != total_vfs) { in mlx4_enable_sriov() 3216 existing_vfs, total_vfs); in mlx4_enable_sriov() 3217 total_vfs = existing_vfs; in mlx4_enable_sriov() 3221 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov() 3228 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov() 3230 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov() 3234 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov() 3235 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov() [all …]
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 118 u16 total_vfs; /* total VFs associated with the PF */ member
|
D | qed_sriov.c | 165 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || in qed_iov_is_valid_vfid() 370 pos + PCI_SRIOV_TOTAL_VF, &iov->total_vfs); in qed_iov_pci_cfg_info() 404 iov->total_vfs, in qed_iov_pci_cfg_info() 410 iov->total_vfs > NUM_OF_VFS(cdev)) { in qed_iov_pci_cfg_info() 420 iov->total_vfs = 0; in qed_iov_pci_cfg_info() 450 for (idx = 0; idx < p_iov->total_vfs; idx++) { in qed_iov_setup_vfdb() 487 num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_allocate_vfdb() 635 if (!cdev->p_iov_info->total_vfs) { in qed_iov_hw_info() 719 for (i = 0; i < cdev->p_iov_info->total_vfs; i++) in qed_iov_set_vfs_to_disable() 3743 for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; i++) in qed_iov_vf_flr_cleanup() [all …]
|
D | qed_sp_commands.c | 410 p_ramrod->num_vfs = (u8) p_iov->total_vfs; in qed_sp_pf_start()
|
D | qed_int.c | 1881 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam() 2027 max_vf = p_iov->first_vf_in_pf + p_iov->total_vfs; in qed_int_igu_read_cam()
|
D | qed_cxt.c | 1250 p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs; in qed_cxt_mngr_alloc() 1628 p_iov->first_vf_in_pf + p_iov->total_vfs); in qed_ilt_vf_bounds_init()
|
D | qed_l2.c | 2233 max_vf_vlan_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info() 2235 max_vf_mac_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info()
|
D | qed_dev.c | 243 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_type.h | 624 u16 total_vfs; member
|
D | fm10k_iov.c | 329 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
|
D | fm10k_pf.c | 177 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; in fm10k_init_hw_pf() 631 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
|
D | fm10k_netdev.c | 358 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
|
D | fm10k_pci.c | 2031 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 1343 int total_vfs; in pnv_pci_vf_assign_m64() local 1352 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_vf_assign_m64() 3000 int mul, total_vfs; in pnv_pci_ioda_fixup_iov_resources() local 3009 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_ioda_fixup_iov_resources() 3040 mul = roundup_pow_of_two(total_vfs); in pnv_pci_ioda_fixup_iov_resources()
|