/drivers/pci/endpoint/ |
D | pci-epc-core.c | 155 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_features() 228 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_raise_irq() 272 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_map_msi_irq() 303 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_msi() 340 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_set_msi() 371 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_msix() 408 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_set_msix() 438 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_unmap_addr() 469 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_map_addr() 501 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_clear_bar() [all …]
|
D | pci-epf-core.c | 120 if (!epc->max_vfs) { in pci_epf_bind() 126 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind() 137 if (!epc->max_vfs) { in pci_epf_bind() 143 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
|
/drivers/net/netdevsim/ |
D | bus.c | 33 if (nsim_bus_dev->max_vfs < num_vfs) in nsim_bus_dev_vfs_enable() 116 len = snprintf(buf, sizeof(buf), "%u\n", nsim_bus_dev->max_vfs); in nsim_bus_dev_max_vfs_read() 173 nsim_bus_dev->max_vfs = val; in nsim_bus_dev_max_vfs_write() 421 nsim_bus_dev->max_vfs = NSIM_BUS_DEV_MAX_VFS; in nsim_bus_dev_new() 427 nsim_bus_dev->vfconfigs = kcalloc(nsim_bus_dev->max_vfs, in nsim_bus_dev_new()
|
D | netdevsim.h | 226 struct dentry *max_vfs; member 359 unsigned int max_vfs; member
|
/drivers/net/ethernet/cavium/liquidio/ |
D | cn23xx_pf_device.c | 333 temp = oct->sriov_info.max_vfs & 0xff; in cn23xx_setup_global_mac_regs() 716 if (!oct->sriov_info.max_vfs) in cn23xx_setup_pf_mbox() 719 for (i = 0; i < oct->sriov_info.max_vfs; i++) { in cn23xx_setup_pf_mbox() 777 if (!oct->sriov_info.max_vfs) in cn23xx_free_pf_mbox() 780 for (i = 0; i < oct->sriov_info.max_vfs; i++) { in cn23xx_free_pf_mbox() 1117 (oct->sriov_info.max_vfs > 0)) { in cn23xx_enable_pf_interrupt() 1139 (oct->sriov_info.max_vfs > 0)) { in cn23xx_disable_pf_interrupt() 1254 u32 max_rings, total_rings, max_vfs, rings_per_vf; in cn23xx_sriov_config() local 1281 max_vfs = min_t(u32, in cn23xx_sriov_config() 1285 max_vfs = 0; in cn23xx_sriov_config() [all …]
|
D | lio_vf_rep.c | 245 int vf_id, max_vfs = CN23XX_MAX_VFS_PER_PF + 1; in lio_vf_rep_get_ndev() local 246 int vfid_mask = max_vfs - 1; in lio_vf_rep_get_ndev() 248 if (ifidx <= oct->pf_num * max_vfs || in lio_vf_rep_get_ndev() 249 ifidx >= oct->pf_num * max_vfs + max_vfs) in lio_vf_rep_get_ndev()
|
D | lio_main.c | 737 int max_vfs, vf, i; in disable_all_vf_links() local 742 max_vfs = oct->sriov_info.max_vfs; in disable_all_vf_links() 749 for (vf = 0; vf < max_vfs; vf++) in disable_all_vf_links() 1378 oct->sriov_info.max_vfs); in octeon_chip_specific_setup() 2832 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac() 3634 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices() 3886 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov() 3889 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
|
D | octeon_device.h | 375 u32 max_vfs; member
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptpf_mbox.c | 142 if (q >= cpt->max_vfs) { in otx_cpt_bind_vq_to_grp() 144 q, cpt->max_vfs); in otx_cpt_bind_vq_to_grp() 247 for (vf = 0; vf < cpt->max_vfs; vf++) { in otx_cpt_mbox_intr_handler()
|
D | otx_cptpf_main.c | 104 cpt->max_vfs = pci_sriov_get_totalvfs(cpt->pdev); in otx_cpt_device_init() 159 if (numvfs > cpt->max_vfs) in otx_cpt_sriov_configure() 160 numvfs = cpt->max_vfs; in otx_cpt_sriov_configure()
|
D | otx_cptpf.h | 27 u8 max_vfs; /* Maximum number of VFs supported by the CPT */ member
|
/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 679 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup() 680 sizeof(*epc->max_vfs), GFP_KERNEL); in cdns_pcie_ep_setup() 681 if (!epc->max_vfs) in cdns_pcie_ep_setup() 685 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup() 689 if (epc->max_vfs[i] == 0) in cdns_pcie_ep_setup() 691 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup()
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptpf.h | 52 u8 max_vfs; /* Maximum number of VFs supported by CPT */ member
|
D | otx2_cptpf_main.c | 171 if (cptpf->max_vfs > 64) in cptpf_vf_flr_intr() 203 if (cptpf->max_vfs > 64) in cptpf_vf_me_intr() 371 MBOX_SIZE * cptpf->max_vfs); in cptpf_vfpf_mbox_init() 750 cptpf->max_vfs = pci_sriov_get_totalvfs(pdev); in otx2_cptpf_probe()
|
D | cn10k_cpt.c | 61 size -= ((1 + cptpf->max_vfs) * MBOX_SIZE); in cn10k_cptpf_lmtst_init()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 81 for (i = 1; i <= nic_io->max_vfs; i++) { in hinic_notify_all_vfs_link_changed() 265 if (vf_id > nic_io->max_vfs) { in hinic_register_vf_msg_handler() 267 HW_VF_ID_TO_OS(vf_id), HW_VF_ID_TO_OS(nic_io->max_vfs)); in hinic_register_vf_msg_handler() 293 if (vf_id > nic_io->max_vfs) in hinic_unregister_vf_msg_handler() 1193 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init() 1194 size = sizeof(*nic_io->vf_infos) * nic_io->max_vfs; in hinic_vf_func_init() 1202 for (i = 0; i < nic_io->max_vfs; i++) { in hinic_vf_func_init()
|
D | hinic_hw_io.h | 88 u16 max_vfs; member
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.h | 37 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
|
D | ixgbe_sriov.c | 154 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs) in ixgbe_enable_sriov() argument 160 if (!pre_existing_vfs && !max_vfs) in ixgbe_enable_sriov() 182 num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_sdp.c | 89 req->info.node_id, req->info.max_vfs, req->info.num_pf_rings, in rvu_mbox_handler_set_sdp_chan_info()
|
/drivers/net/ethernet/sfc/ |
D | siena_sriov.c | 180 static int max_vfs = -1; variable 181 module_param(max_vfs, int, 0444); 182 MODULE_PARM_DESC(max_vfs, 1056 if (!max_vfs) in efx_siena_sriov_probe() 1063 if (count > 0 && count > max_vfs) in efx_siena_sriov_probe() 1064 count = max_vfs; in efx_siena_sriov_probe()
|
/drivers/net/ethernet/emulex/benet/ |
D | be.h | 404 u16 max_vfs; /* Total VFs "really" supported by FW/HW */ member 427 u16 max_vfs; member 697 #define be_max_vfs(adapter) (adapter->pool_res.max_vfs)
|
D | be_main.c | 4426 u16 max_vfs = be_max_vfs(adapter); in be_calculate_pf_pool_rss_tables() local 4437 max_vfs * rss_tables_on_port / port_res.max_vfs; in be_calculate_pf_pool_rss_tables() 4443 int max_vfs, old_vfs; in be_get_sriov_config() local 4449 if (BE3_chip(adapter) && !res.max_vfs) { in be_get_sriov_config() 4450 max_vfs = pci_sriov_get_totalvfs(adapter->pdev); in be_get_sriov_config() 4451 res.max_vfs = max_vfs > 0 ? min(MAX_VFS, max_vfs) : 0; in be_get_sriov_config() 4465 adapter->pool_res.max_vfs = in be_get_sriov_config()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 276 sriov->max_vfs = mlx5_get_max_vfs(dev); in mlx5_sriov_init()
|
/drivers/crypto/hisilicon/ |
D | qm.h | 408 int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs);
|