Home
last modified time | relevance | path

Searched refs:total_vfs (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dib_rep.c101 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/
Dsriov.c260 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()
Den_rep.c1230 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()
Deswitch_offloads.c850 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/
Dmain.c3197 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/
Dqed_sriov.h118 u16 total_vfs; /* total VFs associated with the PF */ member
Dqed_sriov.c165 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 …]
Dqed_sp_commands.c410 p_ramrod->num_vfs = (u8) p_iov->total_vfs; in qed_sp_pf_start()
Dqed_int.c1881 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()
Dqed_cxt.c1250 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()
Dqed_l2.c2233 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()
Dqed_dev.c243 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_type.h624 u16 total_vfs; member
Dfm10k_iov.c329 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
Dfm10k_pf.c177 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()
Dfm10k_netdev.c358 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
Dfm10k_pci.c2031 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dpci-ioda.c1343 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()