minors 494 block/genhd.c if (part->partno < disk->minors) { minors 711 block/genhd.c WARN_ON(disk->minors && !(disk->major || disk->first_minor)); minors 712 block/genhd.c WARN_ON(!disk->minors && minors 742 block/genhd.c blk_register_region(disk_devt(disk), disk->minors, NULL, minors 817 block/genhd.c blk_unregister_region(disk_devt(disk), disk->minors); minors 1120 block/genhd.c return sprintf(buf, "%d\n", disk->minors); minors 1443 block/genhd.c if (partno < disk->minors) { minors 1464 block/genhd.c struct gendisk *__alloc_disk_node(int minors, int node_id) minors 1469 block/genhd.c if (minors > DISK_MAX_PARTS) { minors 1473 block/genhd.c minors = DISK_MAX_PARTS; minors 1508 block/genhd.c disk->minors = minors; minors 3613 drivers/block/mtip32xx/mtip32xx.c dd->disk->minors = MTIP_MAX_MINORS; minors 227 drivers/block/xen-blkfront.c static unsigned long *minors; minors 438 drivers/block/xen-blkfront.c old = minors; minors 439 drivers/block/xen-blkfront.c memcpy(bitmap, minors, minors 441 drivers/block/xen-blkfront.c minors = bitmap; minors 450 drivers/block/xen-blkfront.c if (find_next_bit(minors, end, minor) >= end) { minors 451 drivers/block/xen-blkfront.c bitmap_set(minors, minor, nr); minors 466 drivers/block/xen-blkfront.c bitmap_clear(minors, minor, nr); minors 1208 drivers/block/xen-blkfront.c nr_minors = info->gd->minors; minors 2765 drivers/block/xen-blkfront.c kfree(minors); minors 717 drivers/cdrom/gdrom.c gd.disk->minors = 1; minors 1790 drivers/ide/ide-cd.c g->minors = 1; minors 416 drivers/ide/ide-gd.c g->minors = IDE_DISK_MINORS; minors 951 drivers/ide/ide-probe.c disk->minors, NULL, exact_match, exact_lock, disk); minors 959 drivers/ide/ide-probe.c disk->minors); minors 165 drivers/s390/block/dasd_genhd.c for (bpart.pno = block->gdp->minors - 1; bpart.pno > 0; bpart.pno--) minors 47 drivers/spi/spidev.c static DECLARE_BITMAP(minors, N_SPI_MINORS); minors 753 drivers/spi/spidev.c minor = find_first_zero_bit(minors, N_SPI_MINORS); minors 767 drivers/spi/spidev.c set_bit(minor, minors); minors 795 drivers/spi/spidev.c clear_bit(MINOR(spidev->devt), minors); minors 38 drivers/staging/greybus/raw.c static DEFINE_IDA(minors); minors 181 drivers/staging/greybus/raw.c minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); minors 214 drivers/staging/greybus/raw.c ida_simple_remove(&minors, minor); minors 235 drivers/staging/greybus/raw.c ida_simple_remove(&minors, MINOR(raw->dev)); minors 375 drivers/staging/greybus/raw.c ida_destroy(&minors); minors 114 drivers/staging/greybus/vibrator.c static DEFINE_IDA(minors); minors 157 drivers/staging/greybus/vibrator.c vib->minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); minors 177 drivers/staging/greybus/vibrator.c ida_simple_remove(&minors, vib->minor); minors 201 drivers/staging/greybus/vibrator.c ida_simple_remove(&minors, vib->minor); minors 245 drivers/staging/greybus/vibrator.c ida_destroy(&minors); minors 2626 drivers/staging/isdn/gigaset/bas-gigaset.c for (i = 0; i < driver->minors; i++) { minors 412 drivers/staging/isdn/gigaset/common.c for (i = 0; i < drv->minors; ++i) { minors 988 drivers/staging/isdn/gigaset/common.c for (i = 0; i < drv->minors; ++i) { minors 1012 drivers/staging/isdn/gigaset/common.c if (minor < drv->minor || minor >= drv->minor + drv->minors) minors 1066 drivers/staging/isdn/gigaset/common.c struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, minors 1082 drivers/staging/isdn/gigaset/common.c drv->minors = minors; minors 1089 drivers/staging/isdn/gigaset/common.c drv->cs = kmalloc_array(minors, sizeof(*drv->cs), GFP_KERNEL); minors 1093 drivers/staging/isdn/gigaset/common.c for (i = 0; i < minors; ++i) { minors 510 drivers/staging/isdn/gigaset/gigaset.h unsigned minors; minors 720 drivers/staging/isdn/gigaset/gigaset.h struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, minors 573 drivers/staging/isdn/gigaset/interface.c drv->tty = tty = alloc_tty_driver(drv->minors); minors 938 drivers/staging/isdn/gigaset/usb-gigaset.c for (i = 0; i < driver->minors; i++) minors 25 drivers/usb/gadget/function/f_hid.c static int major, minors; minors 1156 drivers/usb/gadget/function/f_hid.c minors = count; minors 1164 drivers/usb/gadget/function/f_hid.c unregister_chrdev_region(MKDEV(major, 0), minors); minors 1165 drivers/usb/gadget/function/f_hid.c major = minors = 0; minors 53 drivers/usb/gadget/function/f_printer.c static int major, minors; minors 1411 drivers/usb/gadget/function/f_printer.c if (opts->minor >= minors) { minors 1485 drivers/usb/gadget/function/f_printer.c minors = count; minors 1493 drivers/usb/gadget/function/f_printer.c unregister_chrdev_region(MKDEV(major, 0), minors); minors 1494 drivers/usb/gadget/function/f_printer.c major = minors = 0; minors 188 include/linux/genhd.h int minors; /* maximum number of minors, =1 for minors 239 include/linux/genhd.h return disk->minors; minors 636 include/linux/genhd.h extern struct gendisk *__alloc_disk_node(int minors, int node_id); minors 661 include/linux/genhd.h #define alloc_disk_node(minors, node_id) \ minors 667 include/linux/genhd.h __name = "(gendisk_completion)"#minors"("#node_id")"; \ minors 669 include/linux/genhd.h __disk = __alloc_disk_node(minors, node_id); \ minors 677 include/linux/genhd.h #define alloc_disk(minors) alloc_disk_node(minors, NUMA_NO_NODE)