Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Dsriov.c226 int total_vfs; in mlx5_sriov_init() local
231 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init()
234 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.c341 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac()
362 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan()
379 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk()
397 for (i = 0; i < pf->total_vfs + 1; i++) { in enetc_port_setup_primary_mac_address()
418 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries()
420 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries()
423 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries()
465 num_rings /= pf->total_vfs; in enetc_port_si_configure()
470 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure()
1148 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in enetc_pf_probe()
H A Denetc_pf.h34 int total_vfs; /* max number of VFs, set for PF at probe */ member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c3224 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument
3232 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
3241 if (existing_vfs != total_vfs) { in mlx4_enable_sriov()
3243 existing_vfs, total_vfs); in mlx4_enable_sriov()
3244 total_vfs = existing_vfs; in mlx4_enable_sriov()
3248 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()
3255 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov()
3257 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov()
3261 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov()
3262 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.c142 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || in qed_iov_is_valid_vfid()
347 pos + PCI_SRIOV_TOTAL_VF, &iov->total_vfs); in qed_iov_pci_cfg_info()
381 iov->total_vfs, in qed_iov_pci_cfg_info()
387 iov->total_vfs > NUM_OF_VFS(cdev)) { in qed_iov_pci_cfg_info()
397 iov->total_vfs = 0; in qed_iov_pci_cfg_info()
427 for (idx = 0; idx < p_iov->total_vfs; idx++) { in qed_iov_setup_vfdb()
464 num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_allocate_vfdb()
615 if (!cdev->p_iov_info->total_vfs) { in qed_iov_hw_info()
699 for (i = 0; i < cdev->p_iov_info->total_vfs; i++) in qed_iov_set_vfs_to_disable()
3736 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.c404 p_ramrod->num_vfs = (u8) p_iov->total_vfs; in qed_sp_pf_start()
H A Dqed_int.c2039 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam()
2185 max_vf = p_iov->first_vf_in_pf + p_iov->total_vfs; in qed_int_igu_read_cam()
H A Dqed_cxt.c1161 p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs; in qed_cxt_mngr_alloc()
1538 p_iov->first_vf_in_pf + p_iov->total_vfs); in qed_ilt_vf_bounds_init()
H A Dqed_l2.c2229 max_vf_vlan_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info()
2231 max_vf_mac_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info()
H A Dqed_dev.c1455 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c69 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr()
140 if (pf->total_vfs > 64) in otx2_pf_flr_intr_handler()
169 if (pf->total_vfs > 64) in otx2_pf_me_intr_handler()
548 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler()
594 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init()
2030 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in otx2_probe()
H A Dotx2_common.h254 u8 total_vfs; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_type.h627 u16 total_vfs; member
H A 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()
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()
H A Dfm10k_pci.c2034 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.h246 u16 total_vfs; /* Max RVU VFs HW supports */ member
H A Drvu.c682 for (id = 0; id < hw->total_vfs; id++) { in rvu_free_hw_resources()
780 hw->total_vfs = (cfg >> 20) & 0xFFF; in rvu_setup_hw_resources()
918 rvu->hwvf = devm_kcalloc(rvu->dev, hw->total_vfs, in rvu_setup_hw_resources()
H A Drvu_debugfs.c188 for (vf = 0; vf <= rvu->hw->total_vfs; vf++) { in get_max_column_width()
257 for (vf = 0; vf <= rvu->hw->total_vfs; vf++) { in rvu_dbg_rsrc_attach_status()
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/
H A Dqm.c3130 int pre_existing_vfs, num_vfs, total_vfs, ret; in hisi_qm_sriov_enable() local
3132 total_vfs = pci_sriov_get_totalvfs(pdev); in hisi_qm_sriov_enable()
3140 num_vfs = min_t(int, max_vfs, total_vfs); in hisi_qm_sriov_enable()