Searched refs:minors (Results 1 – 9 of 9) sorted by relevance
/linux-4.19.296/include/linux/ |
D | genhd.h | 180 int minors; /* maximum number of minors, =1 for member 231 return disk->minors; in disk_max_parts() 616 extern struct gendisk *__alloc_disk_node(int minors, int node_id); 641 #define alloc_disk_node(minors, node_id) \ argument 647 __name = "(gendisk_completion)"#minors"("#node_id")"; \ 649 __disk = __alloc_disk_node(minors, node_id); \ 657 #define alloc_disk(minors) alloc_disk_node(minors, NUMA_NO_NODE) argument
|
/linux-4.19.296/block/ |
D | genhd.c | 483 if (part->partno < disk->minors) { in blk_alloc_devt() 689 WARN_ON(disk->minors && !(disk->major || disk->first_minor)); in __device_add_disk() 690 WARN_ON(!disk->minors && in __device_add_disk() 720 blk_register_region(disk_devt(disk), disk->minors, NULL, in __device_add_disk() 795 blk_unregister_region(disk_devt(disk), disk->minors); in del_gendisk() 1098 return sprintf(buf, "%d\n", disk->minors); in disk_range_show() 1426 if (partno < disk->minors) { in blk_lookup_devt() 1447 struct gendisk *__alloc_disk_node(int minors, int node_id) in __alloc_disk_node() argument 1452 if (minors > DISK_MAX_PARTS) { in __alloc_disk_node() 1456 minors = DISK_MAX_PARTS; in __alloc_disk_node() [all …]
|
/linux-4.19.296/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 | 941 for (i = 0; i < driver->minors; i++) in usb_gigaset_exit()
|
D | bas-gigaset.c | 2629 for (i = 0; i < driver->minors; i++) { in bas_gigaset_exit()
|
/linux-4.19.296/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-4.19.296/drivers/cdrom/ |
D | gdrom.c | 756 gd.disk->minors = 1; in probe_gdrom_setupdisk()
|