Home
last modified time | relevance | path

Searched refs:devnum (Results 1 – 18 of 18) sorted by relevance

/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/
H A Dzpool_import.kshlib18 for (( devnum=0 ; $devnum < $MAX_NUM ; devnum += 1 )); do
19 log_must create_vdevs ${DEVICE_DIR}/${DEVICE_FILE}$devnum
/freebsd/contrib/libpcap/testprogs/
H A Dwritecaptest.c83 long devnum; in parse_interface_number() local
111 devnum = strtol(device, &end, 10); in parse_interface_number()
116 if (devnum <= 0) { in parse_interface_number()
122 return (devnum); in parse_interface_number()
133 find_interface_by_number(long devnum) in find_interface_by_number() argument
147 for (i = 0, dev = devlist; i < devnum-1 && dev != NULL; in find_interface_by_number()
237 long devnum; in main() local
368 devnum = parse_interface_number(device); in main()
369 if (devnum == -1) { in main()
385 device = find_interface_by_number(devnum); in main()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_ucm.c62 int devnum; member
1207 if (ucm_dev->devnum < IB_UCM_MAX_DEVICES) in ib_ucm_release_dev()
1208 clear_bit(ucm_dev->devnum, dev_map); in ib_ucm_release_dev()
1210 clear_bit(ucm_dev->devnum - IB_UCM_MAX_DEVICES, overflow_map); in ib_ucm_release_dev()
1256 int devnum; in ib_ucm_add_one() local
1269 devnum = find_first_zero_bit(dev_map, IB_UCM_MAX_DEVICES); in ib_ucm_add_one()
1270 if (devnum >= IB_UCM_MAX_DEVICES) { in ib_ucm_add_one()
1271 devnum = find_overflow_devnum(); in ib_ucm_add_one()
1272 if (devnum < 0) in ib_ucm_add_one()
1275 ucm_dev->devnum = devnum + IB_UCM_MAX_DEVICES; in ib_ucm_add_one()
[all …]
H A Dib_uverbs_main.c1040 int devnum; in ib_uverbs_add_one() local
1071 devnum = ida_alloc_max(&uverbs_ida, IB_UVERBS_MAX_DEVICES - 1, in ib_uverbs_add_one()
1073 if (devnum < 0) in ib_uverbs_add_one()
1075 uverbs_dev->devnum = devnum; in ib_uverbs_add_one()
1076 if (devnum >= IB_UVERBS_NUM_FIXED_MINOR) in ib_uverbs_add_one()
1077 base = dynamic_uverbs_dev + devnum - IB_UVERBS_NUM_FIXED_MINOR; in ib_uverbs_add_one()
1079 base = IB_UVERBS_BASE_DEV + devnum; in ib_uverbs_add_one()
1085 dev_set_name(&uverbs_dev->dev, "uverbs%d", uverbs_dev->devnum); in ib_uverbs_add_one()
1091 kobject_set_name(&uverbs_dev->cdev.kobj, "uverbs%d", uverbs_dev->devnum); in ib_uverbs_add_one()
1109 ida_free(&uverbs_ida, devnum); in ib_uverbs_add_one()
[all …]
H A Dib_user_mad.c1162 int devnum; in ib_umad_init_port() local
1166 devnum = find_first_zero_bit(dev_map, IB_UMAD_MAX_PORTS); in ib_umad_init_port()
1167 if (devnum >= IB_UMAD_MAX_PORTS) { in ib_umad_init_port()
1169 devnum = find_overflow_devnum(device); in ib_umad_init_port()
1170 if (devnum < 0) in ib_umad_init_port()
1174 port->dev_num = devnum + IB_UMAD_MAX_PORTS; in ib_umad_init_port()
1175 base = devnum + overflow_maj; in ib_umad_init_port()
1176 set_bit(devnum, overflow_map); in ib_umad_init_port()
1178 port->dev_num = devnum; in ib_umad_init_port()
1179 base = devnum + base_dev; in ib_umad_init_port()
[all …]
H A Duverbs.h111 int devnum; member
/freebsd/contrib/libpcap/
H A Dpcap-bt-linux.c153 long devnum; in bt_create() local
168 devnum = strtol(cp, &cpend, 10); in bt_create()
174 if (devnum < 0) { in bt_create()
H A Dpcap-usb-linux.c422 long devnum; in usb_create() local
437 devnum = strtol(cp, &cpend, 10); in usb_create()
443 if (devnum < 0) { in usb_create()
H A Dpcap-dag.c1043 long devnum; in dag_create() local
1059 devnum = strtol(cp, &cpend, 10); in dag_create()
1071 if (devnum < 0 || devnum >= DAG_MAX_BOARDS) { in dag_create()
/freebsd/contrib/ofed/libcxgb4/
H A Ddev.c418 char devnum; in cxgb4_driver_init() local
426 devnum = atoi(&ibdev[5]); in cxgb4_driver_init()
429 strstr(&ibdev[2], "nex") && devnum >= 0) { in cxgb4_driver_init()
431 devnum); in cxgb4_driver_init()
/freebsd/lib/libusb/
H A Dlibusb01.c882 int devnum; in usb_find_devices() local
909 devnum = 1; in usb_find_devices()
946 udev->devnum = devnum++; in usb_find_devices()
960 return (devnum - 1); /* success */ in usb_find_devices()
H A Dusb.h240 uint8_t devnum; member
/freebsd/contrib/tcpdump/
H A Dtcpdump.c1134 long devnum; in parse_interface_number() local
1162 devnum = strtol(device, &end, 10); in parse_interface_number()
1167 if (devnum <= 0) { in parse_interface_number()
1173 return (devnum); in parse_interface_number()
1188 , long devnum) in find_interface_by_number() argument
1243 for (i = 0, dev = devlist; i < devnum-1 && dev != NULL; in find_interface_by_number()
1249 devnum, i); in find_interface_by_number()
1512 long devnum; in main() local
2174 devnum = parse_interface_number(device); in main()
2175 if (devnum == -1) { in main()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_pci.c269 p->devnum != dev->pci_slot || p->funcnum != dev->pci_func) in drm_pci_irq_by_busid()
274 DRM_DEBUG("%d:%d:%d => IRQ %d\n", p->busnum, p->devnum, p->funcnum, in drm_pci_irq_by_busid()
H A Ddrm.h461 int devnum; /**< device number */ member
/freebsd/sys/dev/usb/
H A Dusb_device.h283 uint16_t devnum; member
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_usb.c961 udev->devnum = device_get_unit(dev); in usb_linux_create_usb_device()
/freebsd/sys/dev/syscons/
H A Dsyscons.c426 sc_alloc_tty(int index, int devnum) in sc_alloc_tty() argument
438 tty_makedev(tp, NULL, "v%r", devnum); in sc_alloc_tty()