Home
last modified time | relevance | path

Searched refs:max_vfs (Results 1 - 25 of 67) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/pci/endpoint/
H A Dpci-epc-core.c154 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_features()
227 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_raise_irq()
271 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_map_msi_irq()
302 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_msi()
339 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_n in pci_epc_set_msi()
[all...]
H A Dpci-epf-core.c88 if (!epc->max_vfs) { in pci_epf_bind()
94 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
105 if (!epc->max_vfs) { in pci_epf_bind()
111 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dpci.c153 const int *max_vfs; in pseries_pci_sriov_enable() local
157 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); in pseries_pci_sriov_enable()
159 if (!max_vfs) in pseries_pci_sriov_enable()
163 max_config_vfs = of_read_number(&max_vfs[0], 1); in pseries_pci_sriov_enable()
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dpci.c151 const int *max_vfs; in pseries_pci_sriov_enable() local
155 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); in pseries_pci_sriov_enable()
157 if (!max_vfs) in pseries_pci_sriov_enable()
161 max_config_vfs = of_read_number(&max_vfs[0], 1); in pseries_pci_sriov_enable()
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_main.c104 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()
H A Dotx_cptpf_mbox.c142 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()
H A Dotx_cptpf.h27 u8 max_vfs; /* Maximum number of VFs supported by the CPT */ member
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_main.c104 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()
H A Dotx_cptpf_mbox.c142 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()
H A Dotx_cptpf.h27 u8 max_vfs; /* Maximum number of VFs supported by the CPT */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_config.h75 #define CFG_GET_MAX_VFS(cfg) ((cfg)->sriov_cfg.max_vfs)
152 u16 max_vfs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
H A Dcn23xx_pf_device.c333 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 in cn23xx_sriov_config()
[all...]
H A Dlio_vf_rep.c245 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/
H A Dcn23xx_pf_device.c333 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()
775 if (!oct->sriov_info.max_vfs) in cn23xx_free_pf_mbox()
778 for (i = 0; i < oct->sriov_info.max_vfs; i++) { in cn23xx_free_pf_mbox()
1115 (oct->sriov_info.max_vfs > 0)) { in cn23xx_enable_pf_interrupt()
1137 (oct->sriov_info.max_vfs > 0)) { in cn23xx_disable_pf_interrupt()
1252 u32 max_rings, total_rings, max_vfs, rings_per_vf; in cn23xx_sriov_config() local
1279 max_vfs = min_t(u32, in cn23xx_sriov_config()
1283 max_vfs in cn23xx_sriov_config()
[all...]
H A Dlio_vf_rep.c245 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()
/kernel/linux/linux-6.6/drivers/pci/controller/cadence/
H A Dpcie-cadence-ep.c695 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup()
696 sizeof(*epc->max_vfs), GFP_KERNEL); in cdns_pcie_ep_setup()
697 if (!epc->max_vfs) in cdns_pcie_ep_setup()
701 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup()
705 if (epc->max_vfs[i] == 0) in cdns_pcie_ep_setup()
707 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup()
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf.h57 u8 max_vfs; /* Maximum number of VFs supported by CPT */ member
H A Dcn10k_cpt.c64 size -= ((1 + cptpf->max_vfs) * MBOX_SIZE); in cn10k_cptpf_lmtst_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.c81 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()
1191 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init()
1192 size = sizeof(*nic_io->vf_infos) * nic_io->max_vfs; in hinic_vf_func_init()
1200 for (i = 0; i < nic_io->max_vfs; i++) { in hinic_vf_func_init()
H A Dhinic_hw_io.h88 u16 max_vfs; member
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.c83 for (i = 1; i <= nic_io->max_vfs; i++) { in hinic_notify_all_vfs_link_changed()
267 if (vf_id > nic_io->max_vfs) { in hinic_register_vf_msg_handler()
269 HW_VF_ID_TO_OS(vf_id), HW_VF_ID_TO_OS(nic_io->max_vfs)); in hinic_register_vf_msg_handler()
295 if (vf_id > nic_io->max_vfs) in hinic_unregister_vf_msg_handler()
1205 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init()
1206 size = sizeof(*nic_io->vf_infos) * nic_io->max_vfs; in hinic_vf_func_init()
1214 for (i = 0; i < nic_io->max_vfs; i++) { in hinic_vf_func_init()
H A Dhinic_hw_io.h88 u16 max_vfs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sriov.h39 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sriov.h39 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_sdp.c88 dev_info(rvu->dev, "AF: SDP%d max_vfs %d num_pf_rings %d pf_srn %d\n", in rvu_mbox_handler_set_sdp_chan_info()
89 req->info.node_id, req->info.max_vfs, req->info.num_pf_rings, in rvu_mbox_handler_set_sdp_chan_info()

Completed in 17 milliseconds

123