Home
last modified time | relevance | path

Searched refs:num_vfs (Results 1 – 25 of 127) sorted by relevance

123456

/linux/drivers/crypto/cavium/nitrox/
A Dnitrox_sriov.c15 static inline bool num_vfs_valid(int num_vfs) in num_vfs_valid() argument
19 switch (num_vfs) { in num_vfs_valid()
35 switch (num_vfs) { in num_vfs_to_mode()
158 if (!num_vfs_valid(num_vfs)) { in nitrox_sriov_enable()
163 if (pci_num_vf(pdev) == num_vfs) in nitrox_sriov_enable()
164 return num_vfs; in nitrox_sriov_enable()
174 ndev->iov.num_vfs = num_vfs; in nitrox_sriov_enable()
188 return num_vfs; in nitrox_sriov_enable()
194 ndev->iov.num_vfs = 0; in nitrox_sriov_enable()
216 ndev->iov.num_vfs = 0; in nitrox_sriov_disable()
[all …]
A Dnitrox_isr.h13 int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs);
15 static inline int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs) in nitrox_sriov_configure() argument
/linux/drivers/crypto/marvell/octeontx2/
A Dotx2_cptpf_main.c16 int num_vfs) in cptpf_enable_vfpf_mbox_intr() argument
32 if (num_vfs > 64) { in cptpf_enable_vfpf_mbox_intr()
42 int num_vfs) in cptpf_disable_vfpf_mbox_intr() argument
58 if (num_vfs > 64) { in cptpf_disable_vfpf_mbox_intr()
67 int num_vfs) in cptpf_enable_vf_flr_me_intrs() argument
83 if (num_vfs <= 64) in cptpf_enable_vf_flr_me_intrs()
114 if (num_vfs <= 64) in cptpf_disable_vf_flr_me_intrs()
263 if (num_vfs > 64) { in cptpf_register_vfpf_intr()
379 num_vfs); in cptpf_vfpf_mbox_init()
625 if (!num_vfs) in cptpf_sriov_disable()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dsriov.c89 for (vf = 0; vf < num_vfs; vf++) { in mlx5_device_enable_sriov()
127 for (vf = num_vfs - 1; vf >= 0; vf--) { in mlx5_device_disable_sriov()
150 err = mlx5_device_enable_sriov(dev, num_vfs); in mlx5_sriov_enable()
156 err = pci_enable_sriov(pdev, num_vfs); in mlx5_sriov_enable()
167 int num_vfs = pci_num_vf(dev->pdev); in mlx5_sriov_disable() local
170 mlx5_device_disable_sriov(dev, num_vfs, true); in mlx5_sriov_disable()
181 if (num_vfs) in mlx5_core_sriov_configure()
182 err = mlx5_sriov_enable(pdev, num_vfs); in mlx5_core_sriov_configure()
187 sriov->num_vfs = num_vfs; in mlx5_core_sriov_configure()
188 return err ? err : num_vfs; in mlx5_core_sriov_configure()
[all …]
A Deswitch.c1030 mlx5_esw_for_each_vf_vport(esw, i, vport, num_vfs) { in mlx5_eswitch_unload_vf_vports()
1044 mlx5_esw_for_each_vf_vport(esw, i, vport, num_vfs) { in mlx5_eswitch_load_vf_vports()
1053 mlx5_eswitch_unload_vf_vports(esw, num_vfs); in mlx5_eswitch_load_vf_vports()
1125 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in mlx5_eswitch_disable_pf_vf_vports()
1160 if (num_vfs < 0) in mlx5_eswitch_update_num_of_vfs()
1164 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_update_num_of_vfs()
1261 mlx5_eswitch_update_num_of_vfs(esw, num_vfs); in mlx5_eswitch_enable_locked()
1281 esw->esw_funcs.num_vfs, esw->enabled_vports); in mlx5_eswitch_enable_locked()
1329 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_enable()
1350 esw->esw_funcs.num_vfs, esw->enabled_vports); in mlx5_eswitch_disable_locked()
[all …]
/linux/arch/powerpc/platforms/powernv/
A Dpci-sriov.c454 for (j = 0; j < num_vfs; j++) { in pnv_pci_vf_assign_m64()
471 pnv_pci_vf_release_m64(pdev, num_vfs); in pnv_pci_vf_assign_m64()
508 u16 num_vfs; in pnv_pci_vf_resource_shift() local
523 num_vfs = iov->num_vfs; in pnv_pci_vf_resource_shift()
544 i, &res2, res, num_vfs, offset); in pnv_pci_vf_resource_shift()
570 num_vfs, offset); in pnv_pci_vf_resource_shift()
597 num_vfs = iov->num_vfs; in pnv_pci_sriov_disable()
611 pnv_pci_vf_release_m64(pdev, num_vfs); in pnv_pci_sriov_disable()
710 iov->num_vfs = num_vfs; in pnv_pci_sriov_enable()
731 pnv_ioda_setup_vf_PE(pdev, num_vfs); in pnv_pci_sriov_enable()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_sriov.c657 num_vfs; in bnxt_hwrm_func_cfg()
660 num_vfs; in bnxt_hwrm_func_cfg()
744 *num_vfs = 0; in bnxt_cfg_hw_sriov()
749 *num_vfs = rc; in bnxt_cfg_hw_sriov()
845 if (!num_vfs) in bnxt_sriov_disable()
856 num_vfs); in bnxt_sriov_disable()
900 num_vfs = 0; in bnxt_sriov_configure()
905 if (num_vfs && num_vfs == bp->pf.active_vfs) in bnxt_sriov_configure()
910 if (!num_vfs) in bnxt_sriov_configure()
919 return num_vfs; in bnxt_sriov_configure()
[all …]
A Dbnxt_vfr.c266 u16 num_vfs, i; in bnxt_vf_reps_close() local
271 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_close()
272 for (i = 0; i < num_vfs; i++) { in bnxt_vf_reps_close()
315 u16 num_vfs = pci_num_vf(bp->pdev); in __bnxt_vf_reps_destroy() local
319 for (i = 0; i < num_vfs; i++) { in __bnxt_vf_reps_destroy()
378 u16 num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_free() local
384 for (i = 0; i < num_vfs; i++) in bnxt_vf_reps_free()
428 for (i = 0; i < num_vfs; i++) { in bnxt_vf_reps_alloc()
487 u16 *cfa_code_map = NULL, num_vfs = pci_num_vf(bp->pdev); in bnxt_vf_reps_create() local
495 bp->vf_reps = kcalloc(num_vfs, sizeof(vf_rep), GFP_KERNEL); in bnxt_vf_reps_create()
[all …]
A Dbnxt_sriov.h39 int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
40 int bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs, bool reset);
/linux/drivers/net/ethernet/intel/fm10k/
A Dfm10k_iov.c179 i = iov_data->num_vfs; in fm10k_iov_event()
287 int num_vfs, i; in fm10k_iov_suspend() local
290 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_suspend()
332 int num_vfs, i; in fm10k_iov_resume() local
335 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_resume()
348 hw->iov.ops.assign_resources(hw, num_vfs, num_vfs); in fm10k_iov_resume()
440 if (!num_vfs) in fm10k_iov_alloc_data()
450 iov_data->num_vfs = num_vfs; in fm10k_iov_alloc_data()
499 num_vfs = current_vfs; in fm10k_iov_configure()
511 if (num_vfs && num_vfs != current_vfs) { in fm10k_iov_configure()
[all …]
A Dfm10k_pf.c443 if (!hw->iov.num_vfs) in fm10k_update_int_moderator_pf()
585 u16 num_vfs = hw->iov.num_vfs; in fm10k_vf_queue_index() local
631 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
635 hw->iov.num_vfs = num_vfs; in fm10k_iov_assign_resources_pf()
648 for (i = 0; i < num_vfs; i++) { in fm10k_iov_assign_resources_pf()
686 for (i = 0; i < num_vfs; i++) { in fm10k_iov_assign_resources_pf()
741 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_configure_tc_pf()
799 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_assign_int_moderator_pf()
813 if (vf_idx == (hw->iov.num_vfs - 1)) in fm10k_iov_assign_int_moderator_pf()
953 if (vf_idx >= hw->iov.num_vfs) in fm10k_iov_reset_resources_pf()
[all …]
/linux/arch/powerpc/platforms/pseries/
A Dpci.c58 static int pseries_send_map_pe(struct pci_dev *pdev, u16 num_vfs, in pseries_send_map_pe() argument
78 num_vfs * sizeof(struct pe_map_bar_entry)); in pseries_send_map_pe()
104 static int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs) in pseries_associate_pes() argument
118 for (vf_index = 0; vf_index < num_vfs; vf_index++) { in pseries_associate_pes()
137 rc = pseries_send_map_pe(pdev, num_vfs, vf_pe_array); in pseries_associate_pes()
140 for (vf_index = 0; vf_index < num_vfs; vf_index++) in pseries_associate_pes()
163 if (max_config_vfs < num_vfs && num_vfs > MAX_VFS_FOR_MAP_PE) { in pseries_pci_sriov_enable()
166 num_vfs, (num_vfs > MAX_VFS_FOR_MAP_PE) ? in pseries_pci_sriov_enable()
172 pdn->pe_num_map = kmalloc_array(num_vfs, in pseries_pci_sriov_enable()
178 rc = pseries_associate_pes(pdev, num_vfs); in pseries_pci_sriov_enable()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_bus_pci.c134 ionic->num_vfs = 0; in ionic_vf_dealloc_locked()
158 for (i = 0; i < num_vfs; i++) { in ionic_vf_alloc()
168 ionic->num_vfs++; in ionic_vf_alloc()
191 if (num_vfs > 0) { in ionic_sriov_configure()
192 ret = pci_enable_sriov(pdev, num_vfs); in ionic_sriov_configure()
198 ret = ionic_vf_alloc(ionic, num_vfs); in ionic_sriov_configure()
205 ret = num_vfs; in ionic_sriov_configure()
219 int num_vfs; in ionic_probe() local
314 num_vfs = pci_num_vf(pdev); in ionic_probe()
315 if (num_vfs) { in ionic_probe()
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_sriov.c25 unsigned int num_vfs) in ixgbe_alloc_vf_macvlans() argument
51 unsigned int num_vfs) in __ixgbe_enable_sriov() argument
71 adapter->num_vfs = num_vfs; in __ixgbe_enable_sriov()
84 } else if (num_vfs < 32) { in __ixgbe_enable_sriov()
142 if (vf >= adapter->num_vfs) in ixgbe_get_vfs()
156 unsigned int num_vfs; in ixgbe_enable_sriov() local
206 unsigned int num_vfs = adapter->num_vfs, vf; in ixgbe_disable_sriov() local
210 adapter->num_vfs = 0; in ixgbe_disable_sriov()
277 return num_vfs; in ixgbe_pci_sriov_enable()
323 return num_vfs; in ixgbe_pci_sriov_enable()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_main.c227 if (num_vfs > pf->limit_vfs) { in nfp_pcie_sriov_enable()
233 err = pci_enable_sriov(pdev, num_vfs); in nfp_pcie_sriov_enable()
241 err = nfp_app_sriov_enable(pf->app, num_vfs); in nfp_pcie_sriov_enable()
249 pf->num_vfs = num_vfs; in nfp_pcie_sriov_enable()
254 return num_vfs; in nfp_pcie_sriov_enable()
283 pf->num_vfs = 0; in nfp_pcie_sriov_disable()
298 if (num_vfs == 0) in nfp_pcie_sriov_configure()
301 return nfp_pcie_sriov_enable(pdev, num_vfs); in nfp_pcie_sriov_configure()
754 pf->num_vfs = pci_num_vf(pdev); in nfp_pci_probe()
755 if (pf->num_vfs > pf->limit_vfs) { in nfp_pci_probe()
[all …]
/linux/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic_sriov_pf.c75 u32 num_vfs, max, temp; in qlcnic_sriov_pf_cal_res_limit() local
81 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit()
82 max = num_vfs + 1; in qlcnic_sriov_pf_cal_res_limit()
581 int num_vfs) in __qlcnic_pci_sriov_enable() argument
647 return num_vfs; in qlcnic_pci_sriov_enable()
675 if (num_vfs == 0) in qlcnic_pci_sriov_configure()
1767 u16 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_reset() local
1806 int i, num_vfs; in qlcnic_sriov_set_vf_mac() local
1813 num_vfs = sriov->num_vfs; in qlcnic_sriov_set_vf_mac()
1862 if (vf >= sriov->num_vfs) in qlcnic_sriov_set_vf_tx_rate()
[all …]
/linux/drivers/crypto/cavium/cpt/
A Dcptpf_main.c19 static u32 num_vfs = 4; /* Default 4 VF enabled */ variable
20 module_param(num_vfs, uint, 0444);
21 MODULE_PARM_DESC(num_vfs, "Number of VFs to enable(1-16)");
500 static int cpt_sriov_init(struct cpt_device *cpt, int num_vfs) in cpt_sriov_init() argument
513 cpt->num_vf_en = num_vfs; /* User requested VFs */ in cpt_sriov_init()
546 if (num_vfs > 16 || num_vfs < 4) { in cpt_probe()
548 num_vfs); in cpt_probe()
549 num_vfs = 4; in cpt_probe()
598 err = cpt_sriov_init(cpt, num_vfs); in cpt_probe()
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_sriov.c585 if (vf >= sriov_info->num_vfs) in hinic_ndo_get_vf_config()
818 if (vf >= sriov_info->num_vfs) in hinic_ndo_set_vf_trust()
851 nic_dev->sriov_info.num_vfs); in hinic_ndo_set_vf_bw()
943 if (vf >= sriov_info->num_vfs) in hinic_ndo_set_vf_spoofchk()
1007 if (vf_id >= sriov_info->num_vfs) { in hinic_ndo_set_vf_link_state()
1292 tmp_vfs = (u16)sriov_info->num_vfs; in hinic_pci_sriov_disable()
1293 sriov_info->num_vfs = 0; in hinic_pci_sriov_disable()
1312 num_vfs); in hinic_pci_sriov_enable()
1335 sriov_info->num_vfs = num_vfs; in hinic_pci_sriov_enable()
1338 return num_vfs; in hinic_pci_sriov_enable()
[all …]
A Dhinic_sriov.h30 unsigned int num_vfs; member
101 int hinic_pci_sriov_enable(struct pci_dev *dev, int num_vfs);
107 int hinic_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
/linux/drivers/pci/
A Diov.c356 u16 num_vfs; in sriov_numvfs_show() local
360 num_vfs = pdev->sriov->num_VFs; in sriov_numvfs_show()
363 return sysfs_emit(buf, "%u\n", num_vfs); in sriov_numvfs_show()
379 u16 num_vfs; in sriov_numvfs_store() local
381 if (kstrtou16(buf, 0, &num_vfs) < 0) in sriov_numvfs_store()
389 if (num_vfs == pdev->sriov->num_VFs) in sriov_numvfs_store()
406 if (num_vfs == 0) { in sriov_numvfs_store()
415 pdev->sriov->num_VFs, num_vfs); in sriov_numvfs_store()
424 if (ret != num_vfs) in sriov_numvfs_store()
426 num_vfs, ret); in sriov_numvfs_store()
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
A Dlio_vf_rep.c494 int i, num_vfs; in lio_vf_rep_create() local
502 num_vfs = oct->sriov_info.num_vfs_alloced; in lio_vf_rep_create()
504 oct->vf_rep_list.num_vfs = 0; in lio_vf_rep_create()
505 for (i = 0; i < num_vfs; i++) { in lio_vf_rep_create()
543 oct->vf_rep_list.num_vfs++; in lio_vf_rep_create()
558 for (i = 0; i < oct->vf_rep_list.num_vfs; i++) { in lio_vf_rep_create()
570 oct->vf_rep_list.num_vfs = 0; in lio_vf_rep_create()
588 for (i = 0; i < oct->vf_rep_list.num_vfs; i++) { in lio_vf_rep_destroy()
603 oct->vf_rep_list.num_vfs = 0; in lio_vf_rep_destroy()
/linux/drivers/net/netdevsim/
A Dbus.c31 unsigned int num_vfs; in nsim_bus_dev_numvfs_store() local
34 ret = kstrtouint(buf, 0, &num_vfs); in nsim_bus_dev_numvfs_store()
41 ret = nsim_drv_configure_vfs(nsim_bus_dev, num_vfs); in nsim_bus_dev_numvfs_store()
53 return sprintf(buf, "%u\n", nsim_bus_dev->num_vfs); in nsim_bus_dev_numvfs_show()
267 return nsim_bus_dev->num_vfs; in nsim_num_vf()
/linux/drivers/fpga/
A Ddfl-pci.c388 static int cci_pci_sriov_configure(struct pci_dev *pcidev, int num_vfs) in cci_pci_sriov_configure() argument
393 if (!num_vfs) { in cci_pci_sriov_configure()
409 ret = dfl_fpga_cdev_config_ports_vf(cdev, num_vfs); in cci_pci_sriov_configure()
413 ret = pci_enable_sriov(pcidev, num_vfs); in cci_pci_sriov_configure()
420 return num_vfs; in cci_pci_sriov_configure()
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_msg.c47 for (i = 0; i < pf->num_vfs; i++) { in enetc_msg_task()
129 for (i = 0; i < pf->num_vfs; i++) { in enetc_msg_psi_init()
159 for (i = 0; i < pf->num_vfs; i++) in enetc_msg_psi_free()
A Denetc_pf.c658 static int enetc_sriov_configure(struct pci_dev *pdev, int num_vfs) in enetc_sriov_configure() argument
664 if (!num_vfs) { in enetc_sriov_configure()
667 pf->num_vfs = 0; in enetc_sriov_configure()
670 pf->num_vfs = num_vfs; in enetc_sriov_configure()
672 pf->vf_state = kcalloc(num_vfs, sizeof(struct enetc_vf_state), in enetc_sriov_configure()
675 pf->num_vfs = 0; in enetc_sriov_configure()
685 err = pci_enable_sriov(pdev, num_vfs); in enetc_sriov_configure()
692 return num_vfs; in enetc_sriov_configure()
698 pf->num_vfs = 0; in enetc_sriov_configure()
703 #define enetc_sriov_configure(pdev, num_vfs) (void)0 argument
[all …]

Completed in 97 milliseconds

123456