Searched refs:num_vfs (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-13-stable/sys/dev/ixl/
H A Dixl_pf_iov.h50 int ixl_if_iov_init(if_ctx_t ctx, uint16_t num_vfs, const nvlist_t *params);
H A Dixl_pf_iov.c1410 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 Dixl_pf.h172 int num_vfs; member in struct:ixl_pf
H A Dixl_pf_main.c395 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 Dvalidate.c210 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 Dif_sriov.c211 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 Dixgbe.h449 int num_vfs; member in struct:adapter
/freebsd-13-stable/sys/dev/pci/
H A Dpci_iov_schema.c710 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 Dpci_iov.c320 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 Dmlx4_port.c1120 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 Dmlx4_main.c86 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 Dmlx4_eq.c167 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 Dmlx4_resource_tracker.c316 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 Dmlx4_cmd.c1955 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 Dmlx5_main.c1314 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 Decore_sriov.c419 &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 Dqlnx_os.c170 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 Decore_iov_api.h169 u16 num_vfs; /* number of vfs that have been started */ member in struct:ecore_hw_sriov_info
H A Dqlnx_def.h498 uint16_t num_vfs; member in struct:qlnx_host
/freebsd-13-stable/sys/dev/cxgbe/
H A Dt4_iov.c311 t4iov_iov_init(device_t dev, uint16_t num_vfs, const struct nvlist *config) argument
/freebsd-13-stable/usr.sbin/pciconf/
H A Dcap.c968 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 Dmlx4_ib_alias_GUID.c221 if (slave_id >= dev->dev->persist->num_vfs + 1)
594 if (!entry || entry > dev->dev->persist->num_vfs ||
H A Dmlx4_ib_sysfs.c778 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 Dnic_main.c275 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 Dlinux_pci.c481 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);

Completed in 250 milliseconds

12