/Linux-v4.19/drivers/staging/greybus/ |
D | vibrator.c | 115 static DEFINE_IDA(minors); 158 vib->minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); in gb_vibrator_probe() 178 ida_simple_remove(&minors, vib->minor); in gb_vibrator_probe() 202 ida_simple_remove(&minors, vib->minor); in gb_vibrator_disconnect() 246 ida_destroy(&minors); in gb_vibrator_exit()
|
D | raw.c | 39 static DEFINE_IDA(minors); 182 minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); in gb_raw_probe() 215 ida_simple_remove(&minors, minor); in gb_raw_probe() 236 ida_simple_remove(&minors, MINOR(raw->dev)); in gb_raw_disconnect() 376 ida_destroy(&minors); in raw_exit()
|
/Linux-v4.19/include/linux/ |
D | genhd.h | 180 int minors; /* maximum number of minors, =1 for member 231 return disk->minors; in disk_max_parts() 614 extern struct gendisk *__alloc_disk_node(int minors, int node_id); 639 #define alloc_disk_node(minors, node_id) \ argument 645 __name = "(gendisk_completion)"#minors"("#node_id")"; \ 647 __disk = __alloc_disk_node(minors, node_id); \ 655 #define alloc_disk(minors) alloc_disk_node(minors, NUMA_NO_NODE) argument
|
/Linux-v4.19/drivers/mmc/core/ |
D | Kconfig | 47 int "Number of minors per block device" 52 Number of minors per block device. One is needed for every 55 Number of total MMC minors available is 256, so your number
|
/Linux-v4.19/block/ |
D | genhd.c | 480 if (part->partno < disk->minors) { in blk_alloc_devt() 667 WARN_ON(disk->minors && !(disk->major || disk->first_minor)); in __device_add_disk() 668 WARN_ON(!disk->minors && in __device_add_disk() 698 blk_register_region(disk_devt(disk), disk->minors, NULL, in __device_add_disk() 771 blk_unregister_region(disk_devt(disk), disk->minors); in del_gendisk() 1067 return sprintf(buf, "%d\n", disk->minors); in disk_range_show() 1395 if (partno < disk->minors) { in blk_lookup_devt() 1416 struct gendisk *__alloc_disk_node(int minors, int node_id) in __alloc_disk_node() argument 1421 if (minors > DISK_MAX_PARTS) { in __alloc_disk_node() 1425 minors = DISK_MAX_PARTS; in __alloc_disk_node() [all …]
|
/Linux-v4.19/drivers/isdn/gigaset/ |
D | common.c | 415 for (i = 0; i < drv->minors; ++i) { in alloc_cs() 991 for (i = 0; i < drv->minors; ++i) { in gigaset_get_cs_by_id() 1015 if (minor < drv->minor || minor >= drv->minor + drv->minors) in gigaset_get_cs_by_minor() 1069 struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, in gigaset_initdriver() argument 1085 drv->minors = minors; in gigaset_initdriver() 1092 drv->cs = kmalloc_array(minors, sizeof(*drv->cs), GFP_KERNEL); in gigaset_initdriver() 1096 for (i = 0; i < minors; ++i) { in gigaset_initdriver()
|
D | gigaset.h | 513 unsigned minors; member 723 struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors,
|
D | interface.c | 565 drv->tty = tty = alloc_tty_driver(drv->minors); in gigaset_if_initdriver()
|
D | usb-gigaset.c | 928 for (i = 0; i < driver->minors; i++) in usb_gigaset_exit()
|
D | bas-gigaset.c | 2628 for (i = 0; i < driver->minors; i++) { in bas_gigaset_exit()
|
/Linux-v4.19/drivers/spi/ |
D | spidev.c | 56 static DECLARE_BITMAP(minors, N_SPI_MINORS); 751 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe() 765 set_bit(minor, minors); in spidev_probe() 793 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
/Linux-v4.19/drivers/s390/block/ |
D | dasd_genhd.c | 165 for (bpart.pno = block->gdp->minors - 1; bpart.pno > 0; bpart.pno--) in dasd_destroy_partitions()
|
/Linux-v4.19/drivers/usb/gadget/function/ |
D | f_printer.c | 53 static int major, minors; variable 1411 if (opts->minor >= minors) { in gprinter_alloc() 1485 minors = count; in gprinter_setup() 1493 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup() 1494 major = minors = 0; in gprinter_cleanup()
|
D | f_hid.c | 25 static int major, minors; variable 1156 minors = count; in ghid_setup() 1164 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup() 1165 major = minors = 0; in ghid_cleanup()
|
/Linux-v4.19/Documentation/arm/SA1100/ |
D | serial_UART | 10 > serial devices", so you will have a range of minors on those majors (the
|
/Linux-v4.19/drivers/block/ |
D | xen-blkfront.c | 226 static unsigned long *minors; variable 437 old = minors; in xlbd_reserve_minors() 438 memcpy(bitmap, minors, in xlbd_reserve_minors() 440 minors = bitmap; in xlbd_reserve_minors() 449 if (find_next_bit(minors, end, minor) >= end) { in xlbd_reserve_minors() 450 bitmap_set(minors, minor, nr); in xlbd_reserve_minors() 465 bitmap_clear(minors, minor, nr); in xlbd_release_minors() 1207 nr_minors = info->gd->minors; in xlvbd_release_gendisk() 2754 kfree(minors); in xlblk_exit()
|
/Linux-v4.19/Documentation/input/ |
D | input.rst | 105 There are two ranges of minors: 64 through 95 is the static legacy 107 evdev nodes are created with minors starting with 256. 167 And so on up to js31 in legacy range, and additional nodes with minors
|
/Linux-v4.19/drivers/ide/ |
D | ide-gd.c | 414 g->minors = IDE_DISK_MINORS;
|
D | ide-probe.c | 936 disk->minors, NULL, exact_match, exact_lock, disk); in ide_register_region() 944 disk->minors); in ide_unregister_region()
|
D | ide-cd.c | 1777 g->minors = 1; in ide_cd_probe()
|
/Linux-v4.19/drivers/cdrom/ |
D | gdrom.c | 756 gd.disk->minors = 1; in probe_gdrom_setupdisk()
|
/Linux-v4.19/Documentation/scsi/ |
D | ChangeLog.sym53c8xx | 455 - Some other minors changes.
|
/Linux-v4.19/Documentation/m68k/ |
D | kernel-options.txt | 116 knowledge that each disk uses 16 minors, and write "root=/dev/sde17"
|
/Linux-v4.19/drivers/block/mtip32xx/ |
D | mtip32xx.c | 3783 dd->disk->minors = MTIP_MAX_MINORS; in mtip_block_initialize()
|
/Linux-v4.19/arch/x86/ |
D | Kconfig | 1338 major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr. 1347 with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
|