Home
last modified time | relevance | path

Searched refs:totalvfs (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_sriov.c55 int totalvfs = pci_sriov_get_totalvfs(pdev); in adf_enable_sriov() local
60 for (i = 0, vf_info = accel_dev->pf.vf_info; i < totalvfs; in adf_enable_sriov()
78 adf_enable_vf2pf_interrupts(accel_dev, BIT_ULL(totalvfs) - 1); in adf_enable_sriov()
86 return pci_enable_sriov(pdev, totalvfs); in adf_enable_sriov()
151 int totalvfs = pci_sriov_get_totalvfs(pdev); in adf_do_enable_sriov() local
176 accel_dev->pf.vf_info = kzalloc_objs(struct adf_accel_vf_info, totalvfs); in adf_do_enable_sriov()
198 return totalvfs; in adf_do_enable_sriov()
240 int totalvfs = pci_sriov_get_totalvfs(accel_to_pci_dev(accel_dev)); in adf_disable_sriov() local
258 for (i = 0, vf = accel_dev->pf.vf_info; i < totalvfs; i++, vf++) { in adf_disable_sriov()
/linux/drivers/gpu/drm/xe/
H A Dxe_sriov_pf_migration.c99 unsigned int n, totalvfs; in xe_sriov_pf_migration_init() local
109 totalvfs = xe_sriov_pf_get_totalvfs(xe); in xe_sriov_pf_migration_init()
110 for (n = 1; n <= totalvfs; n++) { in xe_sriov_pf_migration_init()
H A Dxe_sriov_pf_sysfs.c503 unsigned int totalvfs = xe_sriov_pf_get_totalvfs(xe); in pf_setup_tree() local
511 for (n = 0; n <= totalvfs; n++) { in pf_setup_tree()
595 unsigned int totalvfs = xe_sriov_pf_get_totalvfs(xe); in xe_sriov_pf_sysfs_link_vfs() local
602 xe_assert(xe, num_vfs <= totalvfs); in xe_sriov_pf_sysfs_link_vfs()
H A Dxe_gt_sriov_pf_control.c2117 unsigned int n, totalvfs; in xe_gt_sriov_pf_control_init() local
2121 totalvfs = xe_sriov_pf_get_totalvfs(xe); in xe_gt_sriov_pf_control_init()
2122 for (n = 0; n <= totalvfs; n++) { in xe_gt_sriov_pf_control_init()
2148 unsigned int n, totalvfs; in xe_gt_sriov_pf_control_restart() local
2154 totalvfs = xe_sriov_pf_get_totalvfs(xe); in xe_gt_sriov_pf_control_restart()
2155 for (n = 1; n <= totalvfs; n++) in xe_gt_sriov_pf_control_restart()
H A Dxe_gt_sriov_pf_debugfs.c885 unsigned int totalvfs = xe_gt_sriov_pf_get_totalvfs(gt); in pf_add_links() local
890 for (vfid = 0; vfid <= totalvfs; vfid++) { in pf_add_links()
/linux/drivers/vdpa/octeon_ep/
H A Doctep_vdpa_main.c799 int totalvfs; in octep_vdpa_pf_setup() local
803 totalvfs = pci_sriov_get_totalvfs(pdev); in octep_vdpa_pf_setup()
804 if (unlikely(!totalvfs)) { in octep_vdpa_pf_setup()
805 dev_info(&pdev->dev, "Total VFs are %d in PF sriov configuration\n", totalvfs); in octep_vdpa_pf_setup()
818 octpf->vf_stride = len / totalvfs; in octep_vdpa_pf_setup()
/linux/drivers/misc/genwqe/
H A Dcard_base.c363 int totalvfs; in genwqe_setup_vf_jtimer() local
365 totalvfs = pci_sriov_get_totalvfs(pci_dev); in genwqe_setup_vf_jtimer()
366 if (totalvfs <= 0) in genwqe_setup_vf_jtimer()
369 for (vf = 0; vf < totalvfs; vf++) { in genwqe_setup_vf_jtimer()
/linux/Documentation/translations/zh_CN/PCI/
H A Dpci-iov-howto.rst51 复,例如,如果启用VF,检查numvfs == 0,确保numvfs <= totalvfs
/linux/Documentation/PCI/
H A Dpci-iov-howto.rst50 numvfs <= totalvfs.