Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.c248 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac()
273 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan()
290 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk()
310 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries()
312 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries()
315 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries()
376 num_rings /= pf->total_vfs; in enetc_port_si_configure()
381 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure()
H A Denetc_pf.h41 int total_vfs; /* max number of VFs, set for PF at probe */
43 int total_vfs; /* max number of VFs, set for PF at probe */ global() member
H A Denetc4_pf.c282 pf->total_vfs = pci_sriov_get_totalvfs(si->pdev); in enetc4_pf_struct_init()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dsriov.c283 /* Old FW doesn't support getting total_vfs from esw func in mlx5_get_max_vfs()
289 host_total_vfs = host_pf_info.total_vfs; in mlx5_get_max_vfs()
302 int total_vfs, i; in mlx5_sriov_init()
307 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init()
311 sriov->vfs_ctx = kzalloc_objs(*sriov->vfs_ctx, total_vfs); in mlx5_sriov_init()
315 for (i = 0; i < total_vfs; i++) in mlx5_sriov_init()
301 int total_vfs, i; mlx5_sriov_init() local
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_sriov_pf_monitor.c122 unsigned int n, total_vfs = xe_gt_sriov_pf_get_totalvfs(gt); in xe_gt_sriov_pf_monitor_print_events() local
128 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_monitor_print_events()
H A Dxe_sriov_pf_service.c196 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(xe); in xe_sriov_pf_service_print_versions() local
205 for (n = 1; n <= total_vfs; n++) { in xe_sriov_pf_service_print_versions()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c3273 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument
3281 dev->dev_vfs = kzalloc_objs(*dev->dev_vfs, total_vfs); in mlx4_enable_sriov()
3289 if (existing_vfs != total_vfs) { in mlx4_enable_sriov()
3291 existing_vfs, total_vfs); in mlx4_enable_sriov()
3292 total_vfs = existing_vfs; in mlx4_enable_sriov()
3296 dev->dev_vfs = kzalloc_objs(*dev->dev_vfs, total_vfs); in mlx4_enable_sriov()
3303 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov()
3305 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov()
3309 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov()
3310 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov()
3381 mlx4_load_one(struct pci_dev * pdev,int pci_dev_data,int total_vfs,int * nvfs,struct mlx4_priv * priv,int reset_flow) mlx4_load_one() argument
3790 unsigned total_vfs = 0; __mlx4_init_one() local
4247 int pci_dev_data, err, total_vfs; mlx4_restart_one_up() local
4379 int total_vfs; mlx4_pci_resume() local
4459 int total_vfs; mlx4_resume() local
[all...]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c82 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr()
153 if (pf->total_vfs > 64) in otx2_pf_flr_intr_handler()
182 if (pf->total_vfs > 64) in otx2_pf_me_intr_handler()
553 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler()
633 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init()
2556 if (vf >= pf->total_vfs) in otx2_set_vf_mac()
3002 pf->vf_configs = devm_kcalloc(pf->dev, pf->total_vfs, in otx2_sriov_vfcfg_init()
3008 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_init()
3026 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_cleanup()
3166 pf->total_vfs in otx2_probe()
[all...]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.c144 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || in qed_iov_is_valid_vfid()
349 pos + PCI_SRIOV_TOTAL_VF, &iov->total_vfs); in qed_iov_pci_cfg_info()
383 iov->total_vfs, in qed_iov_pci_cfg_info()
389 iov->total_vfs > NUM_OF_VFS(cdev)) { in qed_iov_pci_cfg_info()
399 iov->total_vfs = 0; in qed_iov_pci_cfg_info()
429 for (idx = 0; idx < p_iov->total_vfs; idx++) { in qed_iov_setup_vfdb()
466 num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_allocate_vfdb()
617 if (!cdev->p_iov_info->total_vfs) { in qed_iov_hw_info()
701 for (i = 0; i < cdev->p_iov_info->total_vfs; i++) in qed_iov_set_vfs_to_disable()
3764 for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; i++) in qed_iov_vf_flr_cleanup()
[all …]
H A Dqed_sriov.h93 u16 total_vfs; /* total VFs associated with the PF */ member
H A Dqed_sp_commands.c411 p_ramrod->num_vfs = (u8)p_iov->total_vfs; in qed_sp_pf_start()
H A Dqed_int.c2059 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam()
2205 max_vf = p_iov->first_vf_in_pf + p_iov->total_vfs; in qed_int_igu_read_cam()
H A Dqed_cxt.c1157 p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs; in qed_cxt_mngr_alloc()
1525 p_iov->first_vf_in_pf + p_iov->total_vfs); in qed_ilt_vf_bounds_init()
H A Dqed_dev.c1449 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_type.h627 u16 total_vfs; member
H A Dfm10k_iov.c356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
H A Dfm10k_netdev.c357 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmcs_rvu_if.c907 mcs->vf = devm_kcalloc(mcs->dev, hw->total_vfs, in rvu_mcs_init()
H A Drvu.c767 for (id = 0; id < hw->total_vfs; id++) { in rvu_free_hw_resources()
962 hw->total_vfs = (cfg >> 20) & 0xFFF; in rvu_setup_hw_resources()
1106 rvu->hwvf = devm_kcalloc(rvu->dev, hw->total_vfs, in rvu_setup_hw_resources()
H A Drvu.h438 u16 total_vfs; /* Max RVU VFs HW supports */ member