/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/ |
H A D | zpool_import.kshlib | 18 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 D | writecaptest.c | 83 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 D | ib_ucm.c | 62 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 D | ib_uverbs_main.c | 1040 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 D | ib_user_mad.c | 1162 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 D | uverbs.h | 111 int devnum; member
|
/freebsd/contrib/libpcap/ |
H A D | pcap-bt-linux.c | 153 long devnum; in bt_create() local 168 devnum = strtol(cp, &cpend, 10); in bt_create() 174 if (devnum < 0) { in bt_create()
|
H A D | pcap-usb-linux.c | 422 long devnum; in usb_create() local 437 devnum = strtol(cp, &cpend, 10); in usb_create() 443 if (devnum < 0) { in usb_create()
|
H A D | pcap-dag.c | 1043 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 D | dev.c | 418 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 D | libusb01.c | 882 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 D | usb.h | 240 uint8_t devnum; member
|
/freebsd/contrib/tcpdump/ |
H A D | tcpdump.c | 1134 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 D | drm_pci.c | 269 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 D | drm.h | 461 int devnum; /**< device number */ member
|
/freebsd/sys/dev/usb/ |
H A D | usb_device.h | 283 uint16_t devnum; member
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_usb.c | 961 udev->devnum = device_get_unit(dev); in usb_linux_create_usb_device()
|
/freebsd/sys/dev/syscons/ |
H A D | syscons.c | 426 sc_alloc_tty(int index, int devnum) in sc_alloc_tty() argument 438 tty_makedev(tp, NULL, "v%r", devnum); in sc_alloc_tty()
|