/freebsd-10-stable/sys/dev/ixl/ |
H A D | ixl_pf.h | 108 int num_vfs; member in struct:ixl_pf
|
H A D | if_ixl.c | 210 static int ixl_init_iov(device_t dev, uint16_t num_vfs, const nvlist_t*); 881 device_printf(dev,"pf_id=%d, num_vfs=%d, msix_pf=%d, " 883 hw->pf_id, hw->func_caps.num_vfs, 1926 if (pf->num_vfs == 0) 4299 for (int i = 0; i < pf->num_vfs; i++) { 6396 if (vf_num >= pf->num_vfs) { 6473 for (i = 0; i < pf->num_vfs; i++) { 6550 ixl_init_iov(device_t dev, uint16_t num_vfs, const nvlist_t *params) argument 6563 pf->vfs = malloc(sizeof(struct ixl_vf) * num_vfs, M_IXL, M_NOWAIT | 6571 for (i = 0; i < num_vfs; 6605 int i, num_vfs; local [all...] |
H A D | i40e_type.h | 349 u32 num_vfs; member in struct:i40e_hw_capabilities
|
H A D | i40e_common.c | 1353 u32 num_vfs; local 1381 num_vfs = (j - i) + 1; 1383 num_vfs = 0; 1397 for (i = 0; i < num_vfs; i++) 3395 p->num_vfs = number;
|
/freebsd-10-stable/sys/dev/ixgbe/ |
H A D | if_sriov.c | 204 for (int i = 0; i < adapter->num_vfs; i++) { 635 for (i = 0; i < adapter->num_vfs; i++) { 653 ixgbe_init_iov(device_t dev, u16 num_vfs, const nvlist_t *config) argument 660 adapter->num_vfs = num_vfs; 662 if (adapter->num_vfs == 0) { 663 /* Would we ever get num_vfs = 0? */ 680 if (num_vfs > adapter->pool) { 687 adapter->vfs = malloc(sizeof(*adapter->vfs) * num_vfs, M_IXGBE, 704 adapter->num_vfs [all...] |
H A D | ixgbe.h | 512 int num_vfs; member in struct:adapter
|
H A D | ixv.h | 513 int num_vfs; member in struct:adapter
|
H A D | if_ix.c | 5235 for (int i = 0; i < adapter->num_vfs; i++) { 5260 for (int i = 0; i < adapter->num_vfs; i++) {
|
/freebsd-10-stable/sys/ofed/drivers/net/mlx4/ |
H A D | port.c | 511 if (slave <= ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) % dev->num_vfs)) 512 return ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / dev->num_vfs) + 1; 513 return (MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / dev->num_vfs; 522 vfs = dev->num_vfs; 1004 else if (found_ix < MLX4_ROCE_PF_GIDS + (vf_gids % dev->num_vfs) * 1005 (vf_gids / dev->num_vfs + 1)) 1007 (vf_gids / dev->num_vfs + 1)) + 1; 1011 ((vf_gids % dev->num_vfs) * ((vf_gids / dev->num_vfs + 1)))) / 1012 (vf_gids / dev->num_vfs)) [all...] |
H A D | main.c | 117 static struct param_data num_vfs = { variable in typeref:struct:param_data 120 .name = "num_vfs param", 126 module_param_string(num_vfs, num_vfs.dbdf2val.str, 127 sizeof(num_vfs.dbdf2val.str), 0444); 128 MODULE_PARM_DESC(num_vfs, 129 "Either single value (e.g. '5') to define uniform num_vfs value for all devices functions\n" 130 "\t\tor a string to map device function numbers to their num_vfs values (e.g. '0000:04:00.0-5,002b:1c:0b.a-15').\n" 131 "\t\tHexadecimal digits for the device function (e.g. 002b:1c:0b.a) and decimal for num_vfs value (e.g. 15)."); 1984 mlx4_get_val(num_vfs [all...] |
H A D | resource_tracker.c | 313 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] : 340 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] += count; 364 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] -= count; 380 res_alloc->guaranteed[vf] = num_instances / (2 * (dev->num_vfs + 1)); 451 res_alloc->quota = kmalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL); 452 res_alloc->guaranteed = kmalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL); 455 (dev->num_vfs + 1) * sizeof(int), 458 res_alloc->allocated = kzalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL); 465 for (t = 0; t < dev->num_vfs + 1; t++) { 496 MLX4_MAX_MAC_NUM - 2 * dev->num_vfs; [all...] |
H A D | eq.c | 236 if (dev->num_vfs < slave) 254 if (dev->num_vfs < slave)
|
H A D | cmd.c | 2444 if ((vf < 0) || (vf >= dev->num_vfs)) { 2445 mlx4_err(dev, "Bad vf number:%d (number of activated vf: %d)\n", vf, dev->num_vfs);
|
/freebsd-10-stable/sys/dev/qlnx/qlnxe/ |
H A D | ecore_sriov.c | 420 &iov->num_vfs); 421 if (iov->num_vfs) { 427 iov->num_vfs = 0; 461 if (iov->num_vfs > NUM_OF_VFS(p_dev) || 464 * num_vfs to zero to avoid memory corruption in the code that 468 iov->num_vfs); 470 iov->num_vfs = 0; 539 u16 num_vfs = 0; local 541 num_vfs = p_hwfn->p_dev->p_iov_info->total_vfs; 544 "ecore_iov_allocate_vfdb for %d VFs\n", num_vfs); [all...] |
H A D | qlnx_os.c | 173 static int qlnx_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params); 8288 qlnx_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *nvlist_params) argument 8308 QL_DPRINT2(ha," dev = %p enter num_vfs = %d max_vfs = %d\n", 8309 dev, num_vfs, max_vfs); 8311 if (num_vfs >= max_vfs) { 8317 ha->vf_attr = malloc(((sizeof (qlnx_vf_attr_t) * num_vfs)), M_QLNXBUF, 8333 (FEAT_NUM(hwfn, ECORE_VF_L2_QUE) / num_vfs), 8341 for (i = 0; i < num_vfs; i++) { 8360 ha->num_vfs = num_vfs; [all...] |
H A D | qlnx_def.h | 512 uint16_t num_vfs; member in struct:qlnx_host
|
H A D | ecore_iov_api.h | 169 u16 num_vfs; /* number of vfs that have been started */ member in struct:ecore_hw_sriov_info
|
H A D | ecore_sp_commands.c | 435 p_ramrod->num_vfs = (u8)p_iov->total_vfs;
|
H A D | ecore_dev.c | 1857 u16 num_pf_rls, num_vfs = ecore_init_qm_get_num_vfs(p_hwfn); local 1865 if (num_pf_rls < num_vfs + NUM_DEFAULT_RLS) { 1867 DP_NOTICE(p_hwfn, false, "no rate limiters left for PF rate limiting [num_pf_rls %d num_vfs %d]\n", num_pf_rls, num_vfs); 1872 num_pf_rls -= num_vfs + NUM_DEFAULT_RLS; 2188 u16 vf_idx, num_vfs = ecore_init_qm_get_num_vfs(p_hwfn); local 2194 qm_info->num_vf_pqs = num_vfs; 2195 for (vf_idx = 0; vf_idx < num_vfs; vf_idx++)
|
H A D | ecore_hsi_common.h | 1844 u8 num_vfs /* Amount of vfs owned by PF */; member in struct:pf_start_ramrod_data
|
H A D | ecore_dbg_fw_funcs.c | 211 u8 num_vfs; member in struct:chip_platform_defs 3227 for (vf_id = 0; vf_id < chip_platform->num_vfs; vf_id++) {
|
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 691 for (i = 0; i <= device->dev->num_vfs; ++i) 706 for (slave = device->dev->num_vfs; slave >= 0; --slave) {
|
H A D | main.c | 1561 for (slave = 0; slave <= ibdev->dev->num_vfs; ++slave) {
|
H A D | mad.c | 1405 vfs = dev->dev->num_vfs;
|
/freebsd-10-stable/sys/ofed/include/linux/mlx4/ |
H A D | device.h | 815 int num_vfs; member in struct:mlx4_dev
|