| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_pci_sriov.c | 117 int total_vfs = xe_sriov_pf_get_totalvfs(xe); in pf_enable_vfs() local 122 xe_assert(xe, num_vfs <= total_vfs); in pf_enable_vfs() 147 num_vfs, total_vfs, str_plural(total_vfs)); in pf_enable_vfs()
|
| H A D | xe_gt_sriov_pf_monitor.c | 120 unsigned int n, total_vfs = xe_gt_sriov_pf_get_totalvfs(gt); in xe_gt_sriov_pf_monitor_print_events() local 126 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_monitor_print_events()
|
| H A D | xe_gt_sriov_pf_config.c | 2363 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(xe); in fini_config() local 2366 for (n = 1; n <= total_vfs; n++) in fini_config() 2399 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(gt_to_xe(gt)); in xe_gt_sriov_pf_config_restart() local 2402 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_config_restart() 2411 fail, total_vfs - skip, str_plural(total_vfs)); in xe_gt_sriov_pf_config_restart() 2413 if (fail != total_vfs) in xe_gt_sriov_pf_config_restart() 2415 total_vfs - skip - fail, skip, total_vfs, str_plural(total_vfs)); in xe_gt_sriov_pf_config_restart() 2434 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_config_print_ggtt() 2469 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_config_print_ctxs() 2504 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_config_print_dbs() [all …]
|
| H A D | xe_gt_sriov_pf_policy.c | 138 unsigned int total_vfs = 1 + xe_gt_sriov_pf_get_totalvfs(gt); in pf_bulk_reset_sched_priority() local 144 for (n = 0; n < total_vfs; n++) in pf_bulk_reset_sched_priority()
|
| H A D | xe_gt_sriov_pf_service.c | 548 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(xe); in xe_gt_sriov_pf_service_print_version() local 553 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_service_print_version()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | sriov.c | 299 int total_vfs, i; in mlx5_sriov_init() local 304 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init() 308 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init() 312 for (i = 0; i < total_vfs; i++) in mlx5_sriov_init()
|
| /linux-6.15/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf.c | 343 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac() 364 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan() 381 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk() 401 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries() 403 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries() 406 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries() 467 num_rings /= pf->total_vfs; in enetc_port_si_configure() 472 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure() 1038 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in enetc_pf_probe() 1039 if (pf->total_vfs) { in enetc_pf_probe() [all …]
|
| H A D | enetc_pf.h | 52 int total_vfs; /* max number of VFs, set for PF at probe */ member
|
| H A D | enetc_pf_common.c | 80 for (i = 0; i < pf->total_vfs; i++) { in enetc_setup_mac_addresses()
|
| H A D | enetc4_pf.c | 69 pf->total_vfs = pci_sriov_get_totalvfs(si->pdev); in enetc4_pf_struct_init()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | main.c | 3295 if (existing_vfs != total_vfs) { in mlx4_enable_sriov() 3297 existing_vfs, total_vfs); in mlx4_enable_sriov() 3298 total_vfs = existing_vfs; in mlx4_enable_sriov() 3454 if (total_vfs) { in mlx4_load_one() 3519 total_vfs, in mlx4_load_one() 3796 unsigned total_vfs = 0; in __mlx4_init_one() local 3832 total_vfs, MLX4_MAX_NUM_VF); in __mlx4_init_one() 3887 if (total_vfs) { in __mlx4_init_one() 4253 int pci_dev_data, err, total_vfs; in mlx4_restart_one_up() local 4386 int total_vfs; in mlx4_pci_resume() local [all …]
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_pf.c | 82 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() 545 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler() 602 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init() 2480 if (vf >= pf->total_vfs) in otx2_set_vf_mac() 2925 pf->vf_configs = devm_kcalloc(pf->dev, pf->total_vfs, in otx2_sriov_vfcfg_init() 2931 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_init() 2949 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_cleanup() 3081 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in otx2_probe()
|
| H A D | otx2_common.h | 480 u8 total_vfs; member
|
| /linux-6.15/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_sriov.c | 144 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 D | qed_sriov.h | 93 u16 total_vfs; /* total VFs associated with the PF */ member
|
| H A D | qed_sp_commands.c | 411 p_ramrod->num_vfs = (u8)p_iov->total_vfs; in qed_sp_pf_start()
|
| H A D | qed_int.c | 2059 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()
|
| /linux-6.15/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_type.h | 627 u16 total_vfs; member
|
| H A D | fm10k_iov.c | 356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
|
| H A D | fm10k_pf.c | 178 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; in fm10k_init_hw_pf() 632 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
|
| H A D | fm10k_netdev.c | 357 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
|
| /linux-6.15/drivers/crypto/hisilicon/ |
| H A D | qm.c | 3640 int ret, total_vfs, i; in qm_func_shaper_enable() local 3642 total_vfs = pci_sriov_get_totalvfs(qm->pdev); in qm_func_shaper_enable() 3643 if (fun_index > total_vfs) in qm_func_shaper_enable() 3933 int pre_existing_vfs, num_vfs, total_vfs, ret; in hisi_qm_sriov_enable() local 3939 total_vfs = pci_sriov_get_totalvfs(pdev); in hisi_qm_sriov_enable() 3947 if (max_vfs > total_vfs) { in hisi_qm_sriov_enable() 3948 pci_err(pdev, "%d VFs is more than total VFs %d!\n", max_vfs, total_vfs); in hisi_qm_sriov_enable()
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | mcs_rvu_if.c | 905 mcs->vf = devm_kcalloc(mcs->dev, hw->total_vfs, in rvu_mcs_init()
|
| H A D | rvu.c | 747 for (id = 0; id < hw->total_vfs; id++) { in rvu_free_hw_resources() 937 hw->total_vfs = (cfg >> 20) & 0xFFF; in rvu_setup_hw_resources() 1081 rvu->hwvf = devm_kcalloc(rvu->dev, hw->total_vfs, in rvu_setup_hw_resources()
|
| H A D | rvu.h | 409 u16 total_vfs; /* Max RVU VFs HW supports */ member
|