| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf.c | 248 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac() 269 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan() 286 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk() 306 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries() 308 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries() 311 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries() 372 num_rings /= pf->total_vfs; in enetc_port_si_configure() 377 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure() 959 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in enetc_pf_probe() 960 if (pf->total_vfs) { in enetc_pf_probe() [all …]
|
| /linux/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/drivers/gpu/drm/xe/ |
| 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 | 2692 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(xe); in fini_config() local 2695 for (n = 1; n <= total_vfs; n++) in fini_config() 2737 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(gt_to_xe(gt)); in xe_gt_sriov_pf_config_restart() local 2744 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_config_restart() 2753 fail, total_vfs - skip, str_plural(total_vfs)); in xe_gt_sriov_pf_config_restart() 2755 if (fail != total_vfs) in xe_gt_sriov_pf_config_restart() 2757 total_vfs - skip - fail, skip, total_vfs, str_plural(total_vfs)); in xe_gt_sriov_pf_config_restart() 2772 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(gt_to_xe(gt)); in xe_gt_sriov_pf_config_print_ggtt() local 2776 for (n = 1; n <= total_vfs; n++) { in xe_gt_sriov_pf_config_print_ggtt() 2805 unsigned int n, total_vfs = xe_sriov_pf_get_totalvfs(gt_to_xe(gt)); in xe_gt_sriov_pf_config_print_ctxs() local [all …]
|
| H A D | xe_sriov_pf_service.c | 196 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/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()
|
| H A D | qed_cxt.c | 1157 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 D | qed_l2.c | 2239 max_vf_vlan_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info() 2241 max_vf_mac_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info()
|
| H A D | qed_dev.c | 1449 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
|
| /linux/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_netdev.c | 357 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
|
| /linux/drivers/crypto/hisilicon/ |
| H A D | qm.c | 3720 int ret, total_vfs, i; in qm_func_shaper_enable() local 3722 total_vfs = pci_sriov_get_totalvfs(qm->pdev); in qm_func_shaper_enable() 3723 if (fun_index > total_vfs) in qm_func_shaper_enable() 4030 int pre_existing_vfs, num_vfs, total_vfs, ret; in hisi_qm_sriov_enable() local 4036 total_vfs = pci_sriov_get_totalvfs(pdev); in hisi_qm_sriov_enable() 4044 if (max_vfs > total_vfs) { in hisi_qm_sriov_enable() 4045 pci_err(pdev, "%d VFs is more than total VFs %d!\n", max_vfs, total_vfs); in hisi_qm_sriov_enable()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_flows.c | 169 vf_vlan_max_flows = pfvf->total_vfs * OTX2_PER_VF_VLAN_FLOWS; in otx2_mcam_entry_init()
|