/linux-master/drivers/net/ethernet/sfc/ |
H A D | ef100_sriov.h | 13 int efx_ef100_sriov_configure(struct efx_nic *efx, int num_vfs);
|
H A D | ef100_sriov.c | 16 static int efx_ef100_pci_sriov_enable(struct efx_nic *efx, int num_vfs) argument 23 efx->vf_count = num_vfs; 24 rc = pci_enable_sriov(dev, num_vfs); 31 for (i = 0; i < num_vfs; i++) { 66 int efx_ef100_sriov_configure(struct efx_nic *efx, int num_vfs) argument 68 if (num_vfs == 0) 71 return efx_ef100_pci_sriov_enable(efx, num_vfs);
|
H A D | ef10_sriov.h | 36 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
|
/linux-master/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_isr.h | 13 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) argument
|
H A D | nitrox_sriov.c | 13 * @num_vfs: number of VF(s) 15 static inline bool num_vfs_valid(int num_vfs) argument 19 switch (num_vfs) { 31 static inline enum vf_mode num_vfs_to_mode(int num_vfs) argument 35 switch (num_vfs) { 153 static int nitrox_sriov_enable(struct pci_dev *pdev, int num_vfs) argument 158 if (!num_vfs_valid(num_vfs)) { 159 dev_err(DEV(ndev), "Invalid num_vfs %d\n", num_vfs); local 163 if (pci_num_vf(pdev) == num_vfs) 171 dev_info(DEV(ndev), "Enabled VF(s) %d\\n", num_vfs); local 228 nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs) argument [all...] |
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_pfvf_pf_msg.c | 17 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); local 20 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { 34 int num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); local 42 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) 57 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); local 61 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { 72 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); local 76 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) {
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | sriov.c | 72 static int mlx5_device_enable_sriov(struct mlx5_core_dev *dev, int num_vfs) argument 78 err = mlx5_eswitch_enable(dev->priv.eswitch, num_vfs); 85 num_msix_count = mlx5_get_default_msix_vec_count(dev, num_vfs); 86 for (vf = 0; vf < num_vfs; vf++) { 126 mlx5_device_disable_sriov(struct mlx5_core_dev *dev, int num_vfs, bool clear_vf, bool num_vf_change) argument 134 for (vf = num_vfs - 1; vf >= 0; vf--) { 179 static int mlx5_sriov_enable(struct pci_dev *pdev, int num_vfs) argument 186 err = mlx5_device_enable_sriov(dev, num_vfs); 193 err = pci_enable_sriov(pdev, num_vfs); 196 mlx5_device_disable_sriov(dev, num_vfs, tru 205 int num_vfs = pci_num_vf(dev->pdev); local 213 mlx5_core_sriov_configure(struct pci_dev *pdev, int num_vfs) argument [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 284 static int pnv_pci_vf_release_m64(struct pci_dev *pdev, u16 num_vfs) argument 415 static int pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) argument 454 for (j = 0; j < num_vfs; j++) { 471 pnv_pci_vf_release_m64(pdev, num_vfs); 508 u16 num_vfs; local 523 num_vfs = iov->num_vfs; 533 * and the actual size for num_vfs VFs BAR. This check is to 540 res2.end = res2.start + (size * num_vfs) - 1; 544 i, &res2, res, num_vfs, offse 593 u16 num_vfs, base_pe; local 614 pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs) argument 674 pnv_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument 754 pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | pci.c | 57 static int pseries_send_map_pe(struct pci_dev *pdev, u16 num_vfs, argument 77 num_vfs * sizeof(struct pe_map_bar_entry)); 103 static int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs) argument 117 for (vf_index = 0; vf_index < num_vfs; vf_index++) { 136 rc = pseries_send_map_pe(pdev, num_vfs, vf_pe_array); 139 for (vf_index = 0; vf_index < num_vfs; vf_index++) 147 static int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument 162 if (max_config_vfs < num_vfs && num_vfs > MAX_VFS_FOR_MAP_PE) { 165 num_vfs, (num_vf 190 pseries_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument [all...] |
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_sriov.c | 367 static int bnxt_set_vf_attr(struct bnxt *bp, int num_vfs) argument 372 for (i = 0; i < num_vfs; i++) { 379 static int bnxt_hwrm_func_vf_resource_free(struct bnxt *bp, int num_vfs) argument 390 for (i = pf->first_vf_id; i < pf->first_vf_id + num_vfs; i++) { 422 static int bnxt_alloc_vf_resources(struct bnxt *bp, int num_vfs) argument 427 bp->pf.vf = kcalloc(num_vfs, sizeof(struct bnxt_vf_info), GFP_KERNEL); 431 bnxt_set_vf_attr(bp, num_vfs); 433 size = num_vfs * BNXT_HWRM_REQ_MAX_SIZE; 447 for (j = 0; j < BNXT_HWRM_REQS_PER_PAGE && k < num_vfs; j++) { 524 static int bnxt_hwrm_func_vf_resc_cfg(struct bnxt *bp, int num_vfs, boo argument 645 bnxt_hwrm_func_cfg(struct bnxt *bp, int num_vfs) argument 730 bnxt_func_cfg(struct bnxt *bp, int num_vfs, bool reset) argument 738 bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs, bool reset) argument 763 bnxt_sriov_enable(struct bnxt *bp, int *num_vfs) argument 869 u16 num_vfs = pci_num_vf(bp->pdev); local 898 bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs) argument 1253 bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs, bool reset) argument [all...] |
H A D | bnxt_sriov.h | 39 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);
|
H A D | bnxt_vfr.c | 266 u16 num_vfs, i; local 271 num_vfs = pci_num_vf(bp->pdev); 272 for (i = 0; i < num_vfs; i++) { 315 u16 num_vfs = pci_num_vf(bp->pdev); local 319 for (i = 0; i < num_vfs; i++) { 383 u16 num_vfs = pci_num_vf(bp->pdev); local 389 for (i = 0; i < num_vfs; i++) 420 u16 *cfa_code_map = bp->cfa_code_map, num_vfs = pci_num_vf(bp->pdev); local 433 for (i = 0; i < num_vfs; i++) { 493 u16 *cfa_code_map = NULL, num_vfs local [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 179 i = iov_data->num_vfs; 226 for (i = iov_data->next_vf_mbx ? : iov_data->num_vfs; i--;) { 287 int num_vfs, i; local 289 /* pull out num_vfs from iov_data */ 290 num_vfs = iov_data ? iov_data->num_vfs : 0; 297 for (i = 0; i < num_vfs; i++) { 332 int num_vfs, i; local 334 /* pull out num_vfs from iov_data */ 335 num_vfs 423 fm10k_iov_alloc_data(struct pci_dev *pdev, int num_vfs) argument 491 fm10k_iov_configure(struct pci_dev *pdev, int num_vfs) argument [all...] |
H A D | fm10k_pf.c | 444 if (!hw->iov.num_vfs) 586 u16 num_vfs = hw->iov.num_vfs; local 589 vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx); 614 * @num_vfs: number of VFs to be allocated 620 static s32 fm10k_iov_assign_resources_pf(struct fm10k_hw *hw, u16 num_vfs, argument 632 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) 636 hw->iov.num_vfs = num_vfs; [all...] |
/linux-master/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptpf_main.c | 21 int num_vfs) 32 ena_bits = ((num_vfs - 1) % 64); 37 if (num_vfs > 64) { 39 ena_bits = num_vfs - 64 - 1; 47 int num_vfs) 63 if (num_vfs > 64) { 72 int num_vfs) 76 INTR_MASK(num_vfs)); 80 RVU_PF_VFFLR_INT_ENA_W1SX(0), INTR_MASK(num_vfs)); 83 INTR_MASK(num_vfs)); 20 cptpf_enable_vfpf_mbox_intr(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 46 cptpf_disable_vfpf_mbox_intr(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 71 cptpf_enable_vf_flr_me_intrs(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 102 cptpf_disable_vf_flr_me_intrs(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 235 cptpf_unregister_vfpf_intr(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 242 cptpf_register_vfpf_intr(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 334 cptpf_flr_wq_init(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 358 cptpf_vfpf_mbox_init(struct otx2_cptpf_dev *cptpf, int num_vfs) argument 648 int num_vfs = pci_num_vf(pdev); local 663 cptpf_sriov_enable(struct pci_dev *pdev, int num_vfs) argument 711 otx2_cptpf_sriov_configure(struct pci_dev *pdev, int num_vfs) argument [all...] |
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_bus_pci.c | 120 for (i = ionic->num_vfs - 1; i >= 0; i--) { 134 ionic->num_vfs = 0; 144 static int ionic_vf_alloc(struct ionic *ionic, int num_vfs) argument 153 ionic->vfs = kcalloc(num_vfs, sizeof(struct ionic_vf), GFP_KERNEL); 159 for (i = 0; i < num_vfs; i++) { 169 ionic->num_vfs++; 183 static int ionic_sriov_configure(struct pci_dev *pdev, int num_vfs) argument 193 if (num_vfs > 0) { 194 ret = pci_enable_sriov(pdev, num_vfs); 200 ret = ionic_vf_alloc(ionic, num_vfs); 309 int num_vfs; local [all...] |
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 25 unsigned int num_vfs) 35 (IXGBE_MAX_PF_MACVLANS + 1 + num_vfs); 52 unsigned int num_vfs) 67 adapter->vfinfo = kcalloc(num_vfs, sizeof(struct vf_data_storage), 72 adapter->num_vfs = num_vfs; 74 ixgbe_alloc_vf_macvlans(adapter, num_vfs); 75 adapter->ring_feature[RING_F_VMDQ].offset = num_vfs; 82 if ((adapter->hw.mac.type == ixgbe_mac_82599EB) && (num_vfs < 16)) { 85 } else if (num_vfs < 3 24 ixgbe_alloc_vf_macvlans(struct ixgbe_adapter *adapter, unsigned int num_vfs) argument 51 __ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int num_vfs) argument 158 unsigned int num_vfs; local 208 unsigned int num_vfs = adapter->num_vfs, vf; local 271 ixgbe_pci_sriov_enable(struct pci_dev *dev, int num_vfs) argument 355 ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs) argument [all...] |
H A D | ixgbe_sriov.h | 41 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
|
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_pf.h | 33 int num_vfs; /* number of active VFs, after sriov_init */ member in struct:enetc_pf
|
H A D | enetc_msg.c | 47 for (i = 0; i < pf->num_vfs; i++) { 129 for (i = 0; i < pf->num_vfs; i++) { 159 for (i = 0; i < pf->num_vfs; i++)
|
/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.h | 30 unsigned int num_vfs; member in struct:hinic_sriov_info 105 int hinic_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_sriov.c | 411 * @num_vfs: the number of SR-IOV VFs being configured 430 static int ice_set_per_vf_res(struct ice_pf *pf, u16 num_vfs) argument 440 if (!num_vfs) 446 msix_avail_per_vf = msix_avail_for_sriov / num_vfs; 458 num_vfs); 464 avail_qs = ice_get_avail_txq_count(pf) / num_vfs; 472 avail_qs = ice_get_avail_rxq_count(pf) / num_vfs; 480 ICE_MIN_QS_PER_VF, num_vfs); 484 err = ice_sriov_set_msix_res(pf, num_msix_per_vf * num_vfs); 487 num_vfs, er 798 ice_create_vf_entries(struct ice_pf *pf, u16 num_vfs) argument 862 ice_ena_vfs(struct ice_pf *pf, u16 num_vfs) argument 938 ice_pci_sriov_ena(struct ice_pf *pf, int num_vfs) argument 1175 ice_sriov_configure(struct pci_dev *pdev, int num_vfs) argument [all...] |
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_pf.c | 75 u32 num_vfs, max, temp; local 81 num_vfs = sriov->num_vfs; 82 max = num_vfs + 1; 95 temp = res->num_rx_ucast_mac_filters - num_macs * num_vfs; 97 temp = res->num_tx_mac_filters - num_macs * num_vfs; 99 temp = num_macs * num_vfs * QLCNIC_SRIOV_VF_MAX_MAC; 103 info->max_tx_ques = res->num_tx_queues - sriov->num_vfs; 162 total_fn = sriov->num_vfs + 1; 412 for (i = 0; i < sriov->num_vfs; 566 qlcnic_sriov_pf_enable(struct qlcnic_adapter *adapter, int num_vfs) argument 580 __qlcnic_pci_sriov_enable(struct qlcnic_adapter *adapter, int num_vfs) argument 618 qlcnic_pci_sriov_enable(struct qlcnic_adapter *adapter, int num_vfs) argument 667 qlcnic_pci_sriov_configure(struct pci_dev *dev, int num_vfs) argument 1767 u16 num_vfs = sriov->num_vfs; local 1806 int i, num_vfs; local [all...] |
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | siena_sriov.h | 41 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
|
/linux-master/drivers/net/ethernet/netronome/nfp/nic/ |
H A D | main.c | 24 static int nfp_nic_sriov_enable(struct nfp_app *app, int num_vfs) argument
|