Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c76 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 …]
Dfm10k_pf.c456 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 …]
Dfm10k.h231 unsigned int num_vfs; member
511 int fm10k_iov_configure(struct pci_dev *pdev, int num_vfs);
Dfm10k_ethtool.c197 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()
Dfm10k_type.h637 u16 num_vfs; member
Dfm10k_pci.c1340 if (!iov_data || vf_idx >= iov_data->num_vfs) { in fm10k_1588_msg_pf()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c248 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 …]
Dbnxt_sriov.h19 int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
Dbnxt_hsi.h818 __le16 num_vfs; member
847 __le16 num_vfs; member
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c56 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 …]
Dixgbe_sriov.h60 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
Dixgbe_main.c2191 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 …]
Dixgbe_dcb_nl.c675 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()
Dixgbe.h764 unsigned int num_vfs; member
Dixgbe_ethtool.c2003 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/
Dqlcnic_sriov_pf.c76 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 …]
Dqlcnic_sriov_common.c136 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()
Dqlcnic_sriov.h176 u8 num_vfs; member
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dpci-ioda.c861 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/
Dport.c562 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 …]
Deq.c156 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()
Dmain.c80 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 …]
Dcmd.c1942 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()
Dresource_tracker.c310 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/
Def10_sriov.c356 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()
Dsiena_sriov.h44 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
Def10_sriov.h39 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
Dnet_driver.h1329 int (*sriov_configure)(struct efx_nic *efx, int num_vfs);
Defx.c3200 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()
Dsiena_sriov.c1685 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs) in efx_siena_sriov_configure() argument
/linux-4.4.14/drivers/pci/
Dpci-sysfs.c470 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()
Diov.c228 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/
Dbe_main.c36 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 …]
Dbe_cmds.c3786 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 …]
Dbe.h576 u16 num_vfs; /* Number of VFs provisioned by PF */ member
608 for (i = 0, vf_cfg = &adapter->vf_cfg[i]; i < adapter->num_vfs; \
Dbe_cmds.h2104 u16 num_vfs; member
2406 struct be_resources res, u16 num_vfs,
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c992 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 …]
Di40e_virtchnl_pf.h112 int i40e_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
Di40e_common.c1320 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()
Di40e_type.h274 u32 num_vfs; member
Di40e_main.c6537 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/
Dadf_pf2vf_msg.c366 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/
Dcard_debugfs.c203 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()
Dcard_base.c1132 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()
Dcard_base.h310 int num_vfs; member
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Denic.h163 u16 num_vfs; member
Denic_pp.c43 if (vf < 0 || vf >= enic->num_vfs) { in enic_is_valid_pp_vf()
Denic_main.c199 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/
Dpci-bridge.h216 u16 num_vfs; /* number of VFs enabled*/ member
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h539 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/
Dsysfs.c778 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()
Dalias_GUID.c218 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()
Dmad.c1991 (u16)(dev->dev->persist->num_vfs + 1)); in mlx4_ib_alloc_demux_ctx()
Dmain.c2042 for (slave = 0; slave <= ibdev->dev->persist->num_vfs; in init_pkeys()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
Digb_main.c181 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/
Drtnetlink.c820 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/
Di40e_type.h274 u32 num_vfs; member
/linux-4.4.14/include/linux/mlx4/
Ddevice.h829 int num_vfs; member
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c4339 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/
Dpci.h677 int (*sriov_configure) (struct pci_dev *dev, int num_vfs); /* PF pdev */
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_hsi.h433 u8 num_vfs; member