/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 76 i = iov_data->num_vfs; in fm10k_iov_event() 87 } while (i != iov_data->num_vfs); in fm10k_iov_event() 124 for (i = iov_data->next_vf_mbx ? : iov_data->num_vfs; i--;) { in fm10k_iov_mbx() 175 int num_vfs, i; in fm10k_iov_suspend() local 178 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_suspend() 185 for (i = 0; i < num_vfs; i++) { in fm10k_iov_suspend() 199 int num_vfs, i; in fm10k_iov_resume() local 202 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_resume() 209 hw->iov.ops.assign_resources(hw, num_vfs, num_vfs); in fm10k_iov_resume() 223 for (i = 0; i < num_vfs; i++) { in fm10k_iov_resume() [all …]
|
D | fm10k_pf.c | 456 if (!hw->iov.num_vfs) in fm10k_update_int_moderator_pf() 594 u16 num_vfs = hw->iov.num_vfs; in fm10k_vf_queue_index() local 597 vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx); in fm10k_vf_queue_index() 628 static s32 fm10k_iov_assign_resources_pf(struct fm10k_hw *hw, u16 num_vfs, in fm10k_iov_assign_resources_pf() argument 640 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf() 644 hw->iov.num_vfs = num_vfs; in fm10k_iov_assign_resources_pf() 648 qmap_stride = (num_vfs > 8) ? 32 : 256; in fm10k_iov_assign_resources_pf() 657 for (i = 0; i < num_vfs; i++) { in fm10k_iov_assign_resources_pf() 665 for (i = FM10K_VFMBMEM_LEN * num_vfs; i--;) in fm10k_iov_assign_resources_pf() 692 fm10k_vf_vector_index(hw, num_vfs - 1)); in fm10k_iov_assign_resources_pf() [all …]
|
D | fm10k.h | 231 unsigned int num_vfs; member 511 int fm10k_iov_configure(struct pci_dev *pdev, int num_vfs);
|
D | fm10k_ethtool.c | 197 for (i = 0; i < iov_data->num_vfs; i++) { in fm10k_get_stat_strings() 260 stats_len += FM10K_MBX_STATS_LEN * iov_data->num_vfs; in fm10k_get_sset_count() 321 for (i = 0; i < iov_data->num_vfs; i++) { in fm10k_get_ethtool_stats()
|
D | fm10k_type.h | 637 u16 num_vfs; member
|
D | fm10k_pci.c | 1340 if (!iov_data || vf_idx >= iov_data->num_vfs) { in fm10k_1588_msg_pf()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 248 static int bnxt_set_vf_attr(struct bnxt *bp, int num_vfs) in bnxt_set_vf_attr() argument 253 for (i = 0; i < num_vfs; i++) { in bnxt_set_vf_attr() 261 static int bnxt_hwrm_func_vf_resource_free(struct bnxt *bp, int num_vfs) in bnxt_hwrm_func_vf_resource_free() argument 270 for (i = pf->first_vf_id; i < pf->first_vf_id + num_vfs; i++) { in bnxt_hwrm_func_vf_resource_free() 302 static int bnxt_alloc_vf_resources(struct bnxt *bp, int num_vfs) in bnxt_alloc_vf_resources() argument 307 bp->pf.vf = kcalloc(num_vfs, sizeof(struct bnxt_vf_info), GFP_KERNEL); in bnxt_alloc_vf_resources() 311 bnxt_set_vf_attr(bp, num_vfs); in bnxt_alloc_vf_resources() 313 size = num_vfs * BNXT_HWRM_REQ_MAX_SIZE; in bnxt_alloc_vf_resources() 327 for (j = 0; j < BNXT_HWRM_REQS_PER_PAGE && k < num_vfs; j++) { in bnxt_alloc_vf_resources() 366 static int bnxt_hwrm_func_cfg(struct bnxt *bp, int *num_vfs) in bnxt_hwrm_func_cfg() argument [all …]
|
D | bnxt_sriov.h | 19 int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
|
D | bnxt_hsi.h | 818 __le16 num_vfs; member 847 __le16 num_vfs; member
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 56 e_info(probe, "SR-IOV enabled with %d VFs\n", adapter->num_vfs); in __ixgbe_enable_sriov() 62 adapter->ring_feature[RING_F_VMDQ].offset = adapter->num_vfs; in __ixgbe_enable_sriov() 65 (IXGBE_MAX_PF_MACVLANS + 1 + adapter->num_vfs); in __ixgbe_enable_sriov() 89 kcalloc(adapter->num_vfs, in __ixgbe_enable_sriov() 94 (adapter->num_vfs < 16)) { in __ixgbe_enable_sriov() 97 } else if (adapter->num_vfs < 32) { in __ixgbe_enable_sriov() 109 for (i = 0; i < adapter->num_vfs; i++) { in __ixgbe_enable_sriov() 141 if (!pre_existing_vfs && !adapter->num_vfs) in ixgbe_enable_sriov() 151 adapter->num_vfs = pre_existing_vfs; in ixgbe_enable_sriov() 163 adapter->num_vfs = min_t(unsigned int, adapter->num_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov() [all …]
|
D | ixgbe_sriov.h | 60 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
|
D | ixgbe_main.c | 2191 if (adapter->num_vfs > 32) { in ixgbe_configure_msix() 2192 u32 eitrsel = (1 << (adapter->num_vfs - 32)) - 1; in ixgbe_configure_msix() 3276 if (adapter->num_vfs || (adapter->num_rx_queues > 1 && in ixgbe_set_rx_drop_en() 3388 unsigned int pf_pool = adapter->num_vfs; in ixgbe_store_vfreta() 3436 unsigned int pf_pool = adapter->num_vfs; in ixgbe_setup_vfreta() 3505 unsigned int pf_pool = adapter->num_vfs; in ixgbe_setup_mrqc() 3727 hw->mac.ops.set_mac_anti_spoofing(hw, (adapter->num_vfs != 0), in ixgbe_configure_virtualization() 3728 adapter->num_vfs); in ixgbe_configure_virtualization() 3746 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_configure_virtualization() 3828 if (adapter->num_vfs) in ixgbe_setup_rdrxctl() [all …]
|
D | ixgbe_dcb_nl.c | 675 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_dcbnl_ieee_setapp() 720 for (vf = 0; vf < adapter->num_vfs; vf++) { in ixgbe_dcbnl_ieee_delapp()
|
D | ixgbe.h | 764 unsigned int num_vfs; member
|
D | ixgbe_ethtool.c | 2003 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_diag_test() 2620 ((vf > adapter->num_vfs) || in ixgbe_add_ethtool_fdir_entry() 2814 unsigned int pf_pool = adapter->num_vfs; in ixgbe_set_rss_hash_opt()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 76 u32 num_vfs, max, temp; in qlcnic_sriov_pf_cal_res_limit() local 82 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit() 83 max = num_vfs + 1; in qlcnic_sriov_pf_cal_res_limit() 96 temp = res->num_rx_ucast_mac_filters - num_macs * num_vfs; in qlcnic_sriov_pf_cal_res_limit() 98 temp = res->num_tx_mac_filters - num_macs * num_vfs; in qlcnic_sriov_pf_cal_res_limit() 100 temp = num_macs * num_vfs * QLCNIC_SRIOV_VF_MAX_MAC; in qlcnic_sriov_pf_cal_res_limit() 104 info->max_tx_ques = res->num_tx_queues - sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit() 163 total_fn = sriov->num_vfs + 1; in qlcnic_sriov_set_vf_max_vlan() 413 for (i = 0; i < sriov->num_vfs; i++) in qlcnic_sriov_pf_del_flr_queue() 567 static int qlcnic_sriov_pf_enable(struct qlcnic_adapter *adapter, int num_vfs) in qlcnic_sriov_pf_enable() argument [all …]
|
D | qlcnic_sriov_common.c | 136 int qlcnic_sriov_init(struct qlcnic_adapter *adapter, int num_vfs) in qlcnic_sriov_init() argument 153 sriov->num_vfs = num_vfs; in qlcnic_sriov_init() 156 num_vfs, GFP_KERNEL); in qlcnic_sriov_init() 182 for (i = 0; i < num_vfs; i++) { in qlcnic_sriov_init() 265 for (i = 0; i < sriov->num_vfs; i++) { in __qlcnic_sriov_cleanup() 274 for (i = 0; i < sriov->num_vfs; i++) in __qlcnic_sriov_cleanup() 680 for (i = 0; i < adapter->ahw->sriov->num_vfs; i++) { in qlcnic_sriov_func_to_index() 2154 for (i = 0; i < sriov->num_vfs; i++) { in qlcnic_sriov_alloc_vlans() 2167 for (i = 0; i < sriov->num_vfs; i++) { in qlcnic_sriov_free_vlans()
|
D | qlcnic_sriov.h | 176 u8 num_vfs; member
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 861 u16 num_vfs; in pnv_pci_vf_resource_shift() local 874 num_vfs = pdn->num_vfs; in pnv_pci_vf_resource_shift() 892 res2.end = res2.start + (size * num_vfs) - 1; in pnv_pci_vf_resource_shift() 896 i, &res2, res, num_vfs, offset); in pnv_pci_vf_resource_shift() 920 num_vfs, offset); in pnv_pci_vf_resource_shift() 1153 static int pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) in pnv_pci_vf_assign_m64() argument 1181 vf_groups = (num_vfs <= M64_PER_IOV) ? num_vfs: M64_PER_IOV; in pnv_pci_vf_assign_m64() 1182 vf_per_group = (num_vfs <= M64_PER_IOV)? 1: in pnv_pci_vf_assign_m64() 1183 roundup_pow_of_two(num_vfs) / pdn->m64_per_iov; in pnv_pci_vf_assign_m64() 1284 static void pnv_ioda_release_vf_PE(struct pci_dev *pdev, u16 num_vfs) in pnv_ioda_release_vf_PE() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 562 dev->persist->num_vfs + 1); in mlx4_get_slave_num_gids() 564 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids() 599 dev->persist->num_vfs + 1); in mlx4_get_base_gid_ix() 602 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix() 653 if (slave < 0 || slave > dev->persist->num_vfs) in mlx4_reset_roce_gids() 1185 unsigned num_vfs; in mlx4_get_slave_from_roce_gid() local 1192 num_vfs = bitmap_weight(slaves_pport.slaves, in mlx4_get_slave_from_roce_gid() 1193 dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_from_roce_gid() 1209 else if (found_ix < MLX4_ROCE_PF_GIDS + (vf_gids % num_vfs) * in mlx4_get_slave_from_roce_gid() 1210 (vf_gids / num_vfs + 1)) in mlx4_get_slave_from_roce_gid() [all …]
|
D | eq.c | 156 for (i = 0; i <= dev->persist->num_vfs; i++) { in mlx4_gen_slave_eqe() 216 if (slave < 0 || slave > dev->persist->num_vfs || in mlx4_slave_event() 265 if (dev->persist->num_vfs < slave) in mlx4_gen_guid_change_eqe() 284 if (dev->persist->num_vfs < slave) in mlx4_gen_port_state_change_eqe() 339 for (i = 0; i < dev->persist->num_vfs + 1; i++) in set_all_slave_state() 595 for (i = 0; i < dev->persist->num_vfs + 1; in mlx4_eq_int() 637 i < dev->persist->num_vfs + 1; in mlx4_eq_int()
|
D | main.c | 80 static uint8_t num_vfs[3] = {0, 0, 0}; variable 82 module_param_array(num_vfs, byte , &num_vfs_argc, 0444); 83 MODULE_PARM_DESC(num_vfs, "enable #num_vfs functions if num_vfs > 0\n" 1936 (dev->persist->num_vfs + 1))) && in choose_steering_mode() 2981 dev->persist->num_vfs = total_vfs; in mlx4_enable_sriov() 2988 dev->persist->num_vfs = 0; in mlx4_enable_sriov() 3078 dev->persist->num_vfs = total_vfs; in mlx4_load_one() 3329 if (mlx4_is_master(dev) && dev->persist->num_vfs && !reset_flow) in mlx4_load_one() 3397 if (mlx4_is_master(dev) && dev->persist->num_vfs && !reset_flow) in mlx4_load_one() 3434 nvfs[param_map[num_vfs_argc - 1][i]] = num_vfs[i]; in __mlx4_init_one() [all …]
|
D | cmd.c | 1942 int num_vfs; in mlx4_allocate_port_vpps() local 1955 num_vfs = (availible_vpp / in mlx4_allocate_port_vpps() 1960 vpp_param[i] = num_vfs; in mlx4_allocate_port_vpps() 1976 port_qos->num_of_qos_vfs = num_vfs; in mlx4_allocate_port_vpps() 2671 if ((vf < 0) || (vf >= dev->persist->num_vfs)) { in mlx4_get_slave_indx() 2673 vf, dev->persist->num_vfs); in mlx4_get_slave_indx() 2682 if (slave < 1 || slave > dev->persist->num_vfs) { in mlx4_get_vf_indx() 2773 for (i = 0; i < dev->persist->num_vfs + 1; i++) { in mlx4_phys_to_slaves_pport() 2793 for (i = 0; i < dev->persist->num_vfs + 1; i++) { in mlx4_phys_to_slaves_pport_actv()
|
D | resource_tracker.c | 310 if (slave > dev->persist->num_vfs) in mlx4_grant_resource() 316 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource() 355 (dev->persist->num_vfs + 1) + slave] += count; in mlx4_grant_resource() 379 if (slave > dev->persist->num_vfs) in mlx4_release_resource() 386 (dev->persist->num_vfs + 1) + slave] : in mlx4_release_resource() 402 (dev->persist->num_vfs + 1) + slave] -= count; in mlx4_release_resource() 421 (2 * (dev->persist->num_vfs + 1)); in initialize_res_quotas() 502 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() 504 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() 508 (dev->persist->num_vfs in mlx4_init_resource_tracker() [all …]
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | ef10_sriov.c | 356 static int efx_ef10_pci_sriov_enable(struct efx_nic *efx, int num_vfs) in efx_ef10_pci_sriov_enable() argument 361 efx->vf_count = num_vfs; in efx_ef10_pci_sriov_enable() 367 rc = pci_enable_sriov(dev, num_vfs); in efx_ef10_pci_sriov_enable() 402 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs) in efx_ef10_sriov_configure() argument 404 if (num_vfs == 0) in efx_ef10_sriov_configure() 407 return efx_ef10_pci_sriov_enable(efx, num_vfs); in efx_ef10_sriov_configure()
|
D | siena_sriov.h | 44 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
|
D | ef10_sriov.h | 39 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
|
D | net_driver.h | 1329 int (*sriov_configure)(struct efx_nic *efx, int num_vfs);
|
D | efx.c | 3200 static int efx_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in efx_pci_sriov_configure() argument 3206 rc = efx->type->sriov_configure(efx, num_vfs); in efx_pci_sriov_configure() 3210 return num_vfs; in efx_pci_sriov_configure()
|
D | siena_sriov.c | 1685 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs) in efx_siena_sriov_configure() argument
|
/linux-4.4.14/drivers/pci/ |
D | pci-sysfs.c | 470 u16 num_vfs; in sriov_numvfs_store() local 472 ret = kstrtou16(buf, 0, &num_vfs); in sriov_numvfs_store() 476 if (num_vfs > pci_sriov_get_totalvfs(pdev)) in sriov_numvfs_store() 479 if (num_vfs == pdev->sriov->num_VFs) in sriov_numvfs_store() 488 if (num_vfs == 0) { in sriov_numvfs_store() 499 pdev->sriov->num_VFs, num_vfs); in sriov_numvfs_store() 503 ret = pdev->driver->sriov_configure(pdev, num_vfs); in sriov_numvfs_store() 507 if (ret != num_vfs) in sriov_numvfs_store() 509 num_vfs, ret); in sriov_numvfs_store()
|
D | iov.c | 228 int __weak pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) in pcibios_sriov_enable() argument
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 36 static unsigned int num_vfs; variable 37 module_param(num_vfs, uint, S_IRUGO); 38 MODULE_PARM_DESC(num_vfs, "Number of PCI VFs to initialize"); 1576 if (!is_valid_ether_addr(mac) || vf >= adapter->num_vfs) in be_set_vf_mac() 1616 if (vf >= adapter->num_vfs) in be_get_vf_config() 1696 if (vf >= adapter->num_vfs || vlan > 4095 || qos > 7) in be_set_vf_vlan() 1729 if (vf >= adapter->num_vfs) in be_set_vf_tx_rate() 1788 if (vf >= adapter->num_vfs) in be_set_vf_link_state() 1813 if (vf >= adapter->num_vfs) in be_set_vf_spoofchk() 3740 adapter->num_vfs = 0; in be_vf_clear() [all …]
|
D | be_cmds.c | 3786 res->max_vfs = le16_to_cpu(pcie->num_vfs); in be_cmd_get_profile_config() 3872 pcie->num_vfs = 0xFFFF; in be_reset_pcie_desc() 3911 u16 num_vfs, u16 num_vf_qs, in be_fill_vf_res_template() argument 3951 (num_vfs + 1)); in be_fill_vf_res_template() 3958 (num_vfs + 1)); in be_fill_vf_res_template() 3962 (num_vfs + 1)); in be_fill_vf_res_template() 3966 (num_vfs + 1)); in be_fill_vf_res_template() 3970 (num_vfs + 1)); in be_fill_vf_res_template() 3974 struct be_resources pool_res, u16 num_vfs, in be_cmd_set_sriov_config() argument 3988 desc.pcie.sriov_state = num_vfs ? 1 : 0; in be_cmd_set_sriov_config() [all …]
|
D | be.h | 576 u16 num_vfs; /* Number of VFs provisioned by PF */ member 608 for (i = 0, vf_cfg = &adapter->vf_cfg[i]; i < adapter->num_vfs; \
|
D | be_cmds.h | 2104 u16 num_vfs; member 2406 struct be_resources res, u16 num_vfs,
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 992 static int i40e_pci_sriov_enable(struct pci_dev *pdev, int num_vfs) in i40e_pci_sriov_enable() argument 1006 if (pre_existing_vfs && pre_existing_vfs != num_vfs) in i40e_pci_sriov_enable() 1008 else if (pre_existing_vfs && pre_existing_vfs == num_vfs) in i40e_pci_sriov_enable() 1011 if (num_vfs > pf->num_req_vfs) { in i40e_pci_sriov_enable() 1013 num_vfs, pf->num_req_vfs); in i40e_pci_sriov_enable() 1018 dev_info(&pdev->dev, "Allocating %d VFs.\n", num_vfs); in i40e_pci_sriov_enable() 1019 err = i40e_alloc_vfs(pf, num_vfs); in i40e_pci_sriov_enable() 1026 return num_vfs; in i40e_pci_sriov_enable() 1042 int i40e_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) in i40e_pci_sriov_configure() argument 1046 if (num_vfs) { in i40e_pci_sriov_configure() [all …]
|
D | i40e_virtchnl_pf.h | 112 int i40e_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
|
D | i40e_common.c | 1320 u32 num_vfs; in i40e_clear_hw() local 1348 num_vfs = (j - i) + 1; in i40e_clear_hw() 1350 num_vfs = 0; in i40e_clear_hw() 1364 for (i = 0; i < num_vfs; i++) in i40e_clear_hw() 2856 p->num_vfs = number; in i40e_parse_discover_capabilities()
|
D | i40e_type.h | 274 u32 num_vfs; member
|
D | i40e_main.c | 6537 pf->hw.pf_id, pf->hw.func_caps.num_vfs, in i40e_get_capabilities() 6546 + pf->hw.func_caps.num_vfs) in i40e_get_capabilities() 8165 if (pf->hw.func_caps.num_vfs && pf->hw.partition_id == 1) { in i40e_sw_init() 8169 pf->hw.func_caps.num_vfs, in i40e_sw_init()
|
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
D | adf_pf2vf_msg.c | 366 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting() local 368 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { in adf_pf2vf_notify_restarting()
|
/linux-4.4.14/drivers/misc/genwqe/ |
D | card_debugfs.c | 203 for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { in genwqe_jtimer_show() 223 for (vf_num = 0; vf_num < cd->num_vfs; vf_num++) { in genwqe_queue_working_time_show()
|
D | card_base.c | 1132 cd->num_vfs = pci_sriov_get_totalvfs(pci_dev); in genwqe_pci_setup() 1133 if (cd->num_vfs < 0) in genwqe_pci_setup() 1134 cd->num_vfs = 0; in genwqe_pci_setup()
|
D | card_base.h | 310 int num_vfs; member
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
D | enic.h | 163 u16 num_vfs; member
|
D | enic_pp.c | 43 if (vf < 0 || vf >= enic->num_vfs) { in enic_is_valid_pp_vf()
|
D | enic_main.c | 199 return vf >= 0 && vf < enic->num_vfs; in enic_is_valid_vf() 2606 &enic->num_vfs); in enic_probe() 2607 if (enic->num_vfs) { in enic_probe() 2608 err = pci_enable_sriov(pdev, enic->num_vfs); in enic_probe() 2616 num_pps = enic->num_vfs; in enic_probe()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | pci-bridge.h | 216 u16 num_vfs; /* number of VFs enabled*/ member
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 539 int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs); 611 static inline int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs) {return 0; } in bnx2x_sriov_configure() argument
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 778 for (i = 0; i <= device->dev->persist->num_vfs; ++i) in register_pkey_tree() 793 for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) { in unregister_pkey_tree()
|
D | alias_GUID.c | 218 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change() 591 if (!entry || entry > dev->dev->persist->num_vfs || in mlx4_ib_guid_port_init()
|
D | mad.c | 1991 (u16)(dev->dev->persist->num_vfs + 1)); in mlx4_ib_alloc_demux_ctx()
|
D | main.c | 2042 for (slave = 0; slave <= ibdev->dev->persist->num_vfs; in init_pkeys()
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 181 static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs); 201 static int igb_pci_sriov_configure(struct pci_dev *dev, int num_vfs); 2705 static int igb_enable_sriov(struct pci_dev *pdev, int num_vfs) in igb_enable_sriov() argument 2713 if (!(adapter->flags & IGB_FLAG_HAS_MSIX) || num_vfs > 7) { in igb_enable_sriov() 2717 if (!num_vfs) in igb_enable_sriov() 2725 adapter->vfs_allocated_count = num_vfs; in igb_enable_sriov() 7548 static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs) in igb_pci_enable_sriov() argument 7550 int err = igb_enable_sriov(dev, num_vfs); in igb_pci_enable_sriov() 7557 return num_vfs; in igb_pci_enable_sriov() 7564 static int igb_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in igb_pci_sriov_configure() argument [all …]
|
/linux-4.4.14/net/core/ |
D | rtnetlink.c | 820 int num_vfs = dev_num_vf(dev->dev.parent); in rtnl_vfinfo_size() local 822 size += nla_total_size(num_vfs * sizeof(struct nlattr)); in rtnl_vfinfo_size() 823 size += num_vfs * in rtnl_vfinfo_size() 1272 int num_vfs = dev_num_vf(dev->dev.parent); in rtnl_fill_ifinfo() local 1277 for (i = 0; i < num_vfs; i++) { in rtnl_fill_ifinfo()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_type.h | 274 u32 num_vfs; member
|
/linux-4.4.14/include/linux/mlx4/ |
D | device.h | 829 int num_vfs; member
|
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/ |
D | vxge-main.c | 4339 u32 num_vfs = 0; in vxge_probe() local 4493 num_vfs = vxge_get_num_vfs(function_mode) - 1; in vxge_probe() 4498 ret = pci_enable_sriov(pdev, num_vfs); in vxge_probe()
|
/linux-4.4.14/include/linux/ |
D | pci.h | 677 int (*sriov_configure) (struct pci_dev *dev, int num_vfs); /* PF pdev */
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
D | qed_hsi.h | 433 u8 num_vfs; member
|