/linux-4.1.27/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() 172 int num_vfs, i; in fm10k_iov_suspend() local 175 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_suspend() 182 for (i = 0; i < num_vfs; i++) { in fm10k_iov_suspend() 196 int num_vfs, i; in fm10k_iov_resume() local 199 num_vfs = iov_data ? iov_data->num_vfs : 0; in fm10k_iov_resume() 206 hw->iov.ops.assign_resources(hw, num_vfs, num_vfs); in fm10k_iov_resume() 220 for (i = 0; i < num_vfs; i++) { in fm10k_iov_resume() [all …]
|
D | fm10k_pf.c | 463 if (!hw->iov.num_vfs) in fm10k_update_int_moderator_pf() 601 u16 num_vfs = hw->iov.num_vfs; in fm10k_vf_queue_index() local 604 vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx); in fm10k_vf_queue_index() 635 static s32 fm10k_iov_assign_resources_pf(struct fm10k_hw *hw, u16 num_vfs, in fm10k_iov_assign_resources_pf() argument 647 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf() 651 hw->iov.num_vfs = num_vfs; in fm10k_iov_assign_resources_pf() 655 qmap_stride = (num_vfs > 8) ? 32 : 256; in fm10k_iov_assign_resources_pf() 664 for (i = 0; i < num_vfs; i++) { in fm10k_iov_assign_resources_pf() 672 for (i = FM10K_VFMBMEM_LEN * num_vfs; i--;) in fm10k_iov_assign_resources_pf() 699 fm10k_vf_vector_index(hw, num_vfs - 1)); in fm10k_iov_assign_resources_pf() [all …]
|
D | fm10k.h | 224 unsigned int num_vfs; member 492 int fm10k_iov_configure(struct pci_dev *pdev, int num_vfs);
|
D | fm10k_type.h | 638 u16 num_vfs; member
|
D | fm10k_pci.c | 1279 if (!iov_data || vf_idx >= iov_data->num_vfs) { in fm10k_1588_msg_pf()
|
/linux-4.1.27/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() 135 if (!pre_existing_vfs && !adapter->num_vfs) in ixgbe_enable_sriov() 145 adapter->num_vfs = pre_existing_vfs; in ixgbe_enable_sriov() 157 adapter->num_vfs = min_t(unsigned int, adapter->num_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov() [all …]
|
D | ixgbe_sriov.h | 59 int ixgbe_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
|
D | ixgbe_main.c | 2151 if (adapter->num_vfs > 32) { in ixgbe_configure_msix() 2152 u32 eitrsel = (1 << (adapter->num_vfs - 32)) - 1; in ixgbe_configure_msix() 3190 if (adapter->num_vfs || (adapter->num_rx_queues > 1 && in ixgbe_set_rx_drop_en() 3302 unsigned int pf_pool = adapter->num_vfs; in ixgbe_store_vfreta() 3350 unsigned int pf_pool = adapter->num_vfs; in ixgbe_setup_vfreta() 3419 unsigned int pf_pool = adapter->num_vfs; in ixgbe_setup_mrqc() 3641 hw->mac.ops.set_mac_anti_spoofing(hw, (adapter->num_vfs != 0), in ixgbe_configure_virtualization() 3642 adapter->num_vfs); in ixgbe_configure_virtualization() 3654 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_configure_virtualization() 5121 if (adapter->num_vfs) { in ixgbe_down() [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 | 750 unsigned int num_vfs; member
|
D | ixgbe_ethtool.c | 1998 for (i = 0; i < adapter->num_vfs; i++) { in ixgbe_diag_test() 2795 unsigned int pf_pool = adapter->num_vfs; in ixgbe_set_rss_hash_opt()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 75 u32 num_vfs, max, temp; in qlcnic_sriov_pf_cal_res_limit() local 81 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit() 82 max = num_vfs + 1; in qlcnic_sriov_pf_cal_res_limit() 95 temp = res->num_rx_ucast_mac_filters - num_macs * num_vfs; in qlcnic_sriov_pf_cal_res_limit() 97 temp = res->num_tx_mac_filters - num_macs * num_vfs; in qlcnic_sriov_pf_cal_res_limit() 99 temp = num_macs * num_vfs * QLCNIC_SRIOV_VF_MAX_MAC; in qlcnic_sriov_pf_cal_res_limit() 103 info->max_tx_ques = res->num_tx_queues - sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit() 162 total_fn = sriov->num_vfs + 1; in qlcnic_sriov_set_vf_max_vlan() 412 for (i = 0; i < sriov->num_vfs; i++) in qlcnic_sriov_pf_del_flr_queue() 566 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 | 135 int qlcnic_sriov_init(struct qlcnic_adapter *adapter, int num_vfs) in qlcnic_sriov_init() argument 152 sriov->num_vfs = num_vfs; in qlcnic_sriov_init() 155 num_vfs, GFP_KERNEL); in qlcnic_sriov_init() 181 for (i = 0; i < num_vfs; i++) { in qlcnic_sriov_init() 264 for (i = 0; i < sriov->num_vfs; i++) { in __qlcnic_sriov_cleanup() 273 for (i = 0; i < sriov->num_vfs; i++) in __qlcnic_sriov_cleanup() 679 for (i = 0; i < adapter->ahw->sriov->num_vfs; i++) { in qlcnic_sriov_func_to_index() 2155 for (i = 0; i < sriov->num_vfs; i++) { in qlcnic_sriov_alloc_vlans() 2168 for (i = 0; i < sriov->num_vfs; i++) { in qlcnic_sriov_free_vlans()
|
D | qlcnic_sriov.h | 175 u8 num_vfs; member
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 883 u16 num_vfs; in pnv_pci_vf_resource_shift() local 896 num_vfs = pdn->num_vfs; in pnv_pci_vf_resource_shift() 914 res2.end = res2.start + (size * num_vfs) - 1; in pnv_pci_vf_resource_shift() 918 i, &res2, res, num_vfs, offset); in pnv_pci_vf_resource_shift() 941 i, &res2, res, num_vfs, offset); in pnv_pci_vf_resource_shift() 1178 static int pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) in pnv_pci_vf_assign_m64() argument 1206 vf_groups = (num_vfs <= M64_PER_IOV) ? num_vfs: M64_PER_IOV; in pnv_pci_vf_assign_m64() 1207 vf_per_group = (num_vfs <= M64_PER_IOV)? 1: in pnv_pci_vf_assign_m64() 1208 roundup_pow_of_two(num_vfs) / pdn->m64_per_iov; in pnv_pci_vf_assign_m64() 1318 static void pnv_ioda_release_vf_PE(struct pci_dev *pdev, u16 num_vfs) in pnv_ioda_release_vf_PE() argument [all …]
|
/linux-4.1.27/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() 205 if (slave < 0 || slave > dev->persist->num_vfs || in mlx4_slave_event() 238 if (dev->persist->num_vfs < slave) in mlx4_gen_guid_change_eqe() 256 if (dev->persist->num_vfs < slave) in mlx4_gen_port_state_change_eqe() 311 for (i = 0; i < dev->persist->num_vfs + 1; i++) in set_all_slave_state() 567 for (i = 0; i < dev->persist->num_vfs + 1; in mlx4_eq_int() 605 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" 1890 (dev->persist->num_vfs + 1))) && in choose_steering_mode() 2743 dev->persist->num_vfs = total_vfs; in mlx4_enable_sriov() 2750 dev->persist->num_vfs = 0; in mlx4_enable_sriov() 2839 dev->persist->num_vfs = total_vfs; in mlx4_load_one() 3102 if (mlx4_is_master(dev) && dev->persist->num_vfs && !reset_flow) in mlx4_load_one() 3168 if (mlx4_is_master(dev) && dev->persist->num_vfs && !reset_flow) in mlx4_load_one() 3205 nvfs[param_map[num_vfs_argc - 1][i]] = num_vfs[i]; in __mlx4_init_one() [all …]
|
D | cmd.c | 1926 int num_vfs; in mlx4_allocate_port_vpps() local 1939 num_vfs = (availible_vpp / in mlx4_allocate_port_vpps() 1944 vpp_param[i] = num_vfs; in mlx4_allocate_port_vpps() 1960 port_qos->num_of_qos_vfs = num_vfs; in mlx4_allocate_port_vpps() 2655 if ((vf < 0) || (vf >= dev->persist->num_vfs)) { in mlx4_get_slave_indx() 2657 vf, dev->persist->num_vfs); in mlx4_get_slave_indx() 2666 if (slave < 1 || slave > dev->persist->num_vfs) { in mlx4_get_vf_indx() 2757 for (i = 0; i < dev->persist->num_vfs + 1; i++) { in mlx4_phys_to_slaves_pport() 2777 for (i = 0; i < dev->persist->num_vfs + 1; i++) { in mlx4_phys_to_slaves_pport_actv()
|
D | resource_tracker.c | 307 if (slave > dev->persist->num_vfs) in mlx4_grant_resource() 313 (dev->persist->num_vfs + 1) + slave] : in mlx4_grant_resource() 352 (dev->persist->num_vfs + 1) + slave] += count; in mlx4_grant_resource() 376 if (slave > dev->persist->num_vfs) in mlx4_release_resource() 383 (dev->persist->num_vfs + 1) + slave] : in mlx4_release_resource() 399 (dev->persist->num_vfs + 1) + slave] -= count; in mlx4_release_resource() 418 (2 * (dev->persist->num_vfs + 1)); in initialize_res_quotas() 489 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() 491 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker() 495 (dev->persist->num_vfs in mlx4_init_resource_tracker() [all …]
|
/linux-4.1.27/drivers/pci/ |
D | pci-sysfs.c | 467 u16 num_vfs; in sriov_numvfs_store() local 469 ret = kstrtou16(buf, 0, &num_vfs); in sriov_numvfs_store() 473 if (num_vfs > pci_sriov_get_totalvfs(pdev)) in sriov_numvfs_store() 476 if (num_vfs == pdev->sriov->num_VFs) in sriov_numvfs_store() 485 if (num_vfs == 0) { in sriov_numvfs_store() 496 pdev->sriov->num_VFs, num_vfs); in sriov_numvfs_store() 500 ret = pdev->driver->sriov_configure(pdev, num_vfs); in sriov_numvfs_store() 504 if (ret != num_vfs) in sriov_numvfs_store() 506 num_vfs, ret); in sriov_numvfs_store()
|
D | iov.c | 223 int __weak pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) in pcibios_sriov_enable() argument
|
/linux-4.1.27/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"); 1419 if (!is_valid_ether_addr(mac) || vf >= adapter->num_vfs) in be_set_vf_mac() 1459 if (vf >= adapter->num_vfs) in be_get_vf_config() 1538 if (vf >= adapter->num_vfs || vlan > 4095 || qos > 7) in be_set_vf_vlan() 1571 if (vf >= adapter->num_vfs) in be_set_vf_tx_rate() 1630 if (vf >= adapter->num_vfs) in be_set_vf_link_state() 3419 adapter->num_vfs = 0; in be_vf_clear() 3478 static u16 be_calculate_vf_qs(struct be_adapter *adapter, u16 num_vfs) in be_calculate_vf_qs() argument [all …]
|
D | be_cmds.c | 3700 res->max_vfs = le16_to_cpu(pcie->num_vfs); in be_cmd_get_profile_config() 3786 pcie->num_vfs = 0xFFFF; in be_reset_pcie_desc() 3825 u16 num_vfs, u16 num_vf_qs, in be_fill_vf_res_template() argument 3861 (num_vfs + 1)); in be_fill_vf_res_template() 3868 (num_vfs + 1)); in be_fill_vf_res_template() 3872 (num_vfs + 1)); in be_fill_vf_res_template() 3876 (num_vfs + 1)); in be_fill_vf_res_template() 3880 (num_vfs + 1)); in be_fill_vf_res_template() 3884 struct be_resources pool_res, u16 num_vfs, in be_cmd_set_sriov_config() argument 3898 desc.pcie.sriov_state = num_vfs ? 1 : 0; in be_cmd_set_sriov_config() [all …]
|
D | be.h | 559 u16 num_vfs; /* Number of VFs provisioned by PF */ member 585 for (i = 0, vf_cfg = &adapter->vf_cfg[i]; i < adapter->num_vfs; \
|
D | be_cmds.h | 2066 u16 num_vfs; member 2368 struct be_resources res, u16 num_vfs,
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 108 int i40e_pci_sriov_configure(struct pci_dev *dev, int num_vfs);
|
D | i40e_virtchnl_pf.c | 976 static int i40e_pci_sriov_enable(struct pci_dev *pdev, int num_vfs) in i40e_pci_sriov_enable() argument 983 dev_info(&pdev->dev, "Allocating %d VFs.\n", num_vfs); in i40e_pci_sriov_enable() 984 if (pre_existing_vfs && pre_existing_vfs != num_vfs) in i40e_pci_sriov_enable() 986 else if (pre_existing_vfs && pre_existing_vfs == num_vfs) in i40e_pci_sriov_enable() 989 if (num_vfs > pf->num_req_vfs) { in i40e_pci_sriov_enable() 994 err = i40e_alloc_vfs(pf, num_vfs); in i40e_pci_sriov_enable() 1001 return num_vfs; in i40e_pci_sriov_enable() 1017 int i40e_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) in i40e_pci_sriov_configure() argument 1021 if (num_vfs) { in i40e_pci_sriov_configure() 1027 return i40e_pci_sriov_enable(pdev, num_vfs); in i40e_pci_sriov_configure()
|
D | i40e_common.c | 955 u32 num_vfs; in i40e_clear_hw() local 983 num_vfs = (j - i) + 1; in i40e_clear_hw() 985 num_vfs = 0; in i40e_clear_hw() 999 for (i = 0; i < num_vfs; i++) in i40e_clear_hw() 2458 p->num_vfs = number; in i40e_parse_discover_capabilities()
|
D | i40e_type.h | 230 u32 num_vfs; member
|
D | i40e_main.c | 6184 pf->hw.pf_id, pf->hw.func_caps.num_vfs, in i40e_get_capabilities() 6193 + pf->hw.func_caps.num_vfs) in i40e_get_capabilities() 7712 if (pf->hw.func_caps.num_vfs && pf->hw.partition_id == 1) { in i40e_sw_init() 7716 pf->hw.func_caps.num_vfs, in i40e_sw_init()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/cisco/enic/ |
D | enic.h | 161 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 | 133 return vf >= 0 && vf < enic->num_vfs; in enic_is_valid_vf() 2493 &enic->num_vfs); in enic_probe() 2494 if (enic->num_vfs) { in enic_probe() 2495 err = pci_enable_sriov(pdev, enic->num_vfs); in enic_probe() 2503 num_pps = enic->num_vfs; in enic_probe()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | pci-bridge.h | 201 u16 num_vfs; /* number of VFs enabled*/ member
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 527 int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs); 593 static inline int bnx2x_sriov_configure(struct pci_dev *dev, int num_vfs) {return 0; } in bnx2x_sriov_configure() argument
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
D | alias_GUID.c | 218 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change() 586 if (!entry || entry > dev->dev->persist->num_vfs || in mlx4_ib_guid_port_init()
|
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 | mad.c | 1976 (u16)(dev->dev->persist->num_vfs + 1)); in mlx4_ib_alloc_demux_ctx()
|
D | main.c | 2016 for (slave = 0; slave <= ibdev->dev->persist->num_vfs; in init_pkeys()
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 181 static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs); 199 static int igb_pci_sriov_configure(struct pci_dev *dev, int num_vfs); 2712 static int igb_enable_sriov(struct pci_dev *pdev, int num_vfs) in igb_enable_sriov() argument 2720 if (!(adapter->flags & IGB_FLAG_HAS_MSIX) || num_vfs > 7) { in igb_enable_sriov() 2724 if (!num_vfs) in igb_enable_sriov() 2732 adapter->vfs_allocated_count = num_vfs; in igb_enable_sriov() 7593 static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs) in igb_pci_enable_sriov() argument 7595 int err = igb_enable_sriov(dev, num_vfs); in igb_pci_enable_sriov() 7602 return num_vfs; in igb_pci_enable_sriov() 7609 static int igb_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in igb_pci_sriov_configure() argument [all …]
|
/linux-4.1.27/net/core/ |
D | rtnetlink.c | 813 int num_vfs = dev_num_vf(dev->dev.parent); in rtnl_vfinfo_size() local 815 size += nla_total_size(num_vfs * sizeof(struct nlattr)); in rtnl_vfinfo_size() 816 size += num_vfs * in rtnl_vfinfo_size() 1123 int num_vfs = dev_num_vf(dev->dev.parent); in rtnl_fill_ifinfo() local 1128 for (i = 0; i < num_vfs; i++) { in rtnl_fill_ifinfo()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
D | i40e_type.h | 230 u32 num_vfs; member
|
/linux-4.1.27/include/linux/mlx4/ |
D | device.h | 804 int num_vfs; member
|
/linux-4.1.27/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.1.27/include/linux/ |
D | pci.h | 665 int (*sriov_configure) (struct pci_dev *dev, int num_vfs); /* PF pdev */
|