/freebsd-13-stable/sys/dev/ixl/ |
H A D | ixl_pf_iov.h | 50 int ixl_if_iov_init(if_ctx_t ctx, uint16_t num_vfs, const nvlist_t *params);
|
H A D | ixl_pf_iov.c | 1410 for (i = 0; i < pf->num_vfs; i++) 1427 if (vf_num >= pf->num_vfs) { 1543 for (i = 0; i < pf->num_vfs; i++) { 1651 ixl_if_iov_init(if_ctx_t ctx, uint16_t num_vfs, const nvlist_t *params) argument 1663 pf->vfs = malloc(sizeof(struct ixl_vf) * num_vfs, M_IXL, M_NOWAIT | 1693 pf->num_vfs = num_vfs; 1710 int i, num_vfs; local 1716 for (i = 0; i < pf->num_vfs; i++) { 1735 num_vfs [all...] |
H A D | ixl_pf.h | 172 int num_vfs; member in struct:ixl_pf
|
H A D | ixl_pf_main.c | 395 hw->pf_id, hw->func_caps.num_vfs, hw->func_caps.num_msix_vectors, 1733 for (int i = 0; i < pf->num_vfs; i++) { 1807 for (int i = 0; i < pf->num_vfs; i++) { 2123 for (int i = 0; i < pf->num_vfs; i++) { 3486 if (pf->num_vfs > 0) { 3488 for (int i = 0; i < pf->num_vfs; i++) {
|
/freebsd-13-stable/usr.sbin/iovctl/ |
H A D | validate.c | 210 return (nvlist_get_number(iov, "num_vfs")); 222 * section whose number exceeds num_vfs. 234 uint16_t vf_num, num_vfs; local 241 num_vfs = get_num_vfs(pf); 244 if (num_vfs == 0) 245 errx(1, "PF.num_vfs must be at least 1"); 249 for (i = 0; i < num_vfs; i++) { 267 if (vf_num >= num_vfs) 269 "VF number %d is out of bounds (num_vfs=%d)", 270 vf_num, num_vfs); [all...] |
/freebsd-13-stable/sys/dev/ixgbe/ |
H A D | if_sriov.c | 211 for (int i = 0; i < adapter->num_vfs; i++) { 643 for (i = 0; i < adapter->num_vfs; i++) { 660 ixgbe_if_iov_init(if_ctx_t ctx, u16 num_vfs, const nvlist_t *config) argument 668 if (num_vfs == 0) { 669 /* Would we ever get num_vfs = 0? */ 680 if (num_vfs >= IXGBE_32_VM) 688 if ((num_vfs > adapter->pool) || (num_vfs >= IXGBE_64_VM)) { 693 adapter->vfs = malloc(sizeof(*adapter->vfs) * num_vfs, M_IXGBE_SRIOV, 701 adapter->num_vfs [all...] |
H A D | ixgbe.h | 449 int num_vfs; member in struct:adapter
|
/freebsd-13-stable/sys/dev/pci/ |
H A D | pci_iov_schema.c | 710 uint16_t num_vfs) 715 for (i = 0; i < num_vfs; i++) { 752 * or "VF-n", where n is an integer in the range [0, num_vfs). 755 pci_iov_schema_validate_dev_name(const char *name, uint16_t num_vfs) argument 790 if (vf_num >= num_vfs) 799 * form VF-n specify a VF number that is < num_vfs. 802 pci_iov_schema_validate_device_names(const nvlist_t *config, uint16_t num_vfs) argument 811 error = pci_iov_schema_validate_dev_name(name, num_vfs); 833 uint16_t num_vfs; local 840 num_vfs 709 pci_iov_schema_validate_vfs(const nvlist_t *schema, nvlist_t *config, uint16_t num_vfs) argument [all...] |
H A D | pci_iov.c | 320 pci_iov_schema_add_uint16(pf, "num_vfs", IOV_SCHEMA_REQUIRED, -1); 514 pci_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *config) argument 520 return (PCI_IOV_INIT(dev, num_vfs, driver_config)); 687 uint16_t num_vfs, total_vfs; local 708 num_vfs = pci_iov_config_get_num_vfs(config); 710 if (num_vfs > total_vfs) { 723 error = pci_iov_init(dev, num_vfs, config); 728 IOV_WRITE(dinfo, PCIR_SRIOV_NUM_VFS, num_vfs, 2); 734 last_rid = first_rid + (num_vfs - 1) * rid_stride; 750 iov->iov_num_vfs = num_vfs; [all...] |
/freebsd-13-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_port.c | 1120 dev->persist->num_vfs + 1); 1122 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; 1157 dev->persist->num_vfs + 1); 1160 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; 1211 if (slave < 0 || slave > dev->persist->num_vfs) 1752 unsigned num_vfs; local 1759 num_vfs = bitmap_weight(slaves_pport.slaves, 1760 dev->persist->num_vfs + 1) - 1; 1776 else if (found_ix < MLX4_ROCE_PF_GIDS + (vf_gids % num_vfs) * 1777 (vf_gids / num_vfs [all...] |
H A D | mlx4_main.c | 86 static uint8_t num_vfs[3] = {0, 0, 0}; variable 88 module_param_array(num_vfs, byte , &num_vfs_argc, 0444); 89 MODULE_PARM_DESC(num_vfs, "enable #num_vfs functions if num_vfs > 0\n" 90 "num_vfs=port1,port2,port1+2"); 95 MODULE_PARM_DESC(probe_vf, "number of vfs to probe by pf driver (num_vfs > 0)\n" 1303 dev->persist->num_vfs + 1); 1306 if (bitmap_weight(slaves_port_1_2, dev->persist->num_vfs + 1) > 1) { 1314 nvfs = bitmap_weight(slaves_port1.slaves, dev->persist->num_vfs [all...] |
H A D | mlx4_eq.c | 167 for (i = 0; i <= dev->persist->num_vfs; i++) { 228 if (slave < 0 || slave > dev->persist->num_vfs || 273 if (dev->persist->num_vfs < slave) 292 if (dev->persist->num_vfs < slave) 347 for (i = 0; i < dev->persist->num_vfs + 1; i++) 603 for (i = 0; i < dev->persist->num_vfs + 1; 647 i < dev->persist->num_vfs + 1;
|
H A D | mlx4_resource_tracker.c | 316 if (slave > dev->persist->num_vfs) 322 (dev->persist->num_vfs + 1) + slave] : 361 (dev->persist->num_vfs + 1) + slave] += count; 385 if (slave > dev->persist->num_vfs) 392 (dev->persist->num_vfs + 1) + slave] : 408 (dev->persist->num_vfs + 1) + slave] -= count; 427 (2 * (dev->persist->num_vfs + 1)); 508 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * 510 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * 514 (dev->persist->num_vfs [all...] |
H A D | mlx4_cmd.c | 1955 int num_vfs; local 1968 num_vfs = (availible_vpp / 1973 vpp_param[i] = num_vfs; 1989 port_qos->num_of_qos_vfs = num_vfs; 2724 if ((vf < 0) || (vf >= dev->persist->num_vfs)) { 2726 vf, dev->persist->num_vfs); 2735 if (slave < 1 || slave > dev->persist->num_vfs) { 2826 for (i = 0; i < dev->persist->num_vfs + 1; i++) { 2846 for (i = 0; i < dev->persist->num_vfs + 1; i++) {
|
/freebsd-13-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_main.c | 1314 int num_vfs, sriov_pos; local 1608 num_vfs = pci_read_config(bsddev, sriov_pos + 1612 num_vfs = 0; 1614 err = mlx5_eswitch_init(dev, 1 + num_vfs); 1788 mlx5_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *pf_config) argument 1801 if (priv->eswitch->total_vports < num_vfs + 1) 1802 num_vfs = priv->eswitch->total_vports - 1; 1803 err = mlx5_eswitch_enable_sriov(priv->eswitch, num_vfs);
|
/freebsd-13-stable/sys/dev/qlnx/qlnxe/ |
H A D | ecore_sriov.c | 419 &iov->num_vfs); 420 if (iov->num_vfs) { 426 iov->num_vfs = 0; 460 if (iov->num_vfs > NUM_OF_VFS(p_dev) || 463 * num_vfs to zero to avoid memory corruption in the code that 467 iov->num_vfs); 469 iov->num_vfs = 0; 538 u16 num_vfs = 0; local 540 num_vfs = p_hwfn->p_dev->p_iov_info->total_vfs; 543 "ecore_iov_allocate_vfdb for %d VFs\n", num_vfs); [all...] |
H A D | qlnx_os.c | 170 static int qlnx_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params); 8124 qlnx_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *nvlist_params) argument 8144 QL_DPRINT2(ha," dev = %p enter num_vfs = %d max_vfs = %d\n", 8145 dev, num_vfs, max_vfs); 8147 if (num_vfs >= max_vfs) { 8153 ha->vf_attr = malloc(((sizeof (qlnx_vf_attr_t) * num_vfs)), M_QLNXBUF, 8168 (FEAT_NUM(hwfn, ECORE_VF_L2_QUE) / num_vfs), 8176 for (i = 0; i < num_vfs; i++) { 8194 ha->num_vfs = num_vfs; [all...] |
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 | qlnx_def.h | 498 uint16_t num_vfs; member in struct:qlnx_host
|
/freebsd-13-stable/sys/dev/cxgbe/ |
H A D | t4_iov.c | 311 t4iov_iov_init(device_t dev, uint16_t num_vfs, const struct nvlist *config) argument
|
/freebsd-13-stable/usr.sbin/pciconf/ |
H A D | cap.c | 968 uint16_t iov_ctl, total_vfs, num_vfs, vf_offset, vf_stride, vf_did; local 981 num_vfs = read_config(fd, &p->pc_sel, ptr + PCIR_SRIOV_NUM_VFS, 2); 983 printf("%d VFs configured out of %d supported\n", num_vfs, total_vfs);
|
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_alias_GUID.c | 221 if (slave_id >= dev->dev->persist->num_vfs + 1) 594 if (!entry || entry > dev->dev->persist->num_vfs ||
|
H A D | mlx4_ib_sysfs.c | 778 for (i = 0; i <= device->dev->persist->num_vfs; ++i) 793 for (slave = device->dev->persist->num_vfs; slave >= 0; --slave) {
|
/freebsd-13-stable/sys/dev/vnic/ |
H A D | nic_main.c | 275 nicpf_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params) argument 281 if (num_vfs == 0)
|
/freebsd-13-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 481 linux_pci_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *pf_config) argument 489 error = pdev->pdrv->bsd_iov_init(dev, num_vfs, pf_config);
|