| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | genhd.h | 182 int minors; /* maximum number of minors, =1 for member 249 return disk->minors; in disk_max_parts() 357 extern struct gendisk *__alloc_disk_node(int minors, int node_id); 368 #define alloc_disk_node(minors, node_id) \ argument 374 __name = "(gendisk_completion)"#minors"("#node_id")"; \ 376 __disk = __alloc_disk_node(minors, node_id); \ 384 #define alloc_disk(minors) alloc_disk_node(minors, NUMA_NO_NODE) argument
|
| /OK3568_Linux_fs/kernel/drivers/staging/greybus/ |
| H A D | vibrator.c | 114 static DEFINE_IDA(minors); 157 vib->minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); in gb_vibrator_probe() 177 ida_simple_remove(&minors, vib->minor); in gb_vibrator_probe() 201 ida_simple_remove(&minors, vib->minor); in gb_vibrator_disconnect() 245 ida_destroy(&minors); in gb_vibrator_exit()
|
| H A D | raw.c | 38 static DEFINE_IDA(minors); 181 minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); in gb_raw_probe() 214 ida_simple_remove(&minors, minor); in gb_raw_probe() 235 ida_simple_remove(&minors, MINOR(raw->dev)); in gb_raw_disconnect() 375 ida_destroy(&minors); in raw_exit()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A D | Kconfig | 48 int "Number of minors per block device" 53 Number of minors per block device. One is needed for every 56 Number of total MMC minors available is 256, so your number
|
| /OK3568_Linux_fs/kernel/block/ |
| H A D | genhd.c | 580 if (part->partno < disk->minors) { in blk_alloc_devt() 790 WARN_ON(disk->minors && !(disk->major || disk->first_minor)); in __device_add_disk() 791 WARN_ON(!disk->minors && in __device_add_disk() 823 blk_register_region(disk_devt(disk), disk->minors, NULL, in __device_add_disk() 936 blk_unregister_region(disk_devt(disk), disk->minors); in del_gendisk() 1242 return sprintf(buf, "%d\n", disk->minors); in disk_range_show() 1695 if (partno < disk->minors) { in blk_lookup_devt() 1715 struct gendisk *__alloc_disk_node(int minors, int node_id) in __alloc_disk_node() argument 1720 if (minors > DISK_MAX_PARTS) { in __alloc_disk_node() 1724 minors = DISK_MAX_PARTS; in __alloc_disk_node() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spidev.c | 47 static DECLARE_BITMAP(minors, N_SPI_MINORS); 763 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe() 777 set_bit(minor, minors); in spidev_probe() 805 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
| /OK3568_Linux_fs/kernel/drivers/block/ |
| H A D | xen-blkfront.c | 235 static unsigned long *minors; variable 458 old = minors; in xlbd_reserve_minors() 459 memcpy(bitmap, minors, in xlbd_reserve_minors() 461 minors = bitmap; in xlbd_reserve_minors() 470 if (find_next_bit(minors, end, minor) >= end) { in xlbd_reserve_minors() 471 bitmap_set(minors, minor, nr); in xlbd_reserve_minors() 486 bitmap_clear(minors, minor, nr); in xlbd_release_minors() 1237 nr_minors = info->gd->minors; in xlvbd_release_gendisk() 2852 kfree(minors); in xlblk_exit()
|
| /OK3568_Linux_fs/buildroot/package/makedevs/ |
| H A D | README | 15 minors. For example, if I wanted to create /dev/hda and
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/function/ |
| H A D | f_printer.c | 56 static int major, minors; variable 1465 if (opts->minor >= minors) { in gprinter_alloc() 1540 minors = count; in gprinter_setup() 1548 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup() 1549 major = minors = 0; in gprinter_cleanup()
|
| H A D | f_hid.c | 25 static int major, minors; variable 1341 minors = count; in ghid_setup() 1349 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup() 1350 major = minors = 0; in ghid_cleanup()
|
| /OK3568_Linux_fs/kernel/Documentation/input/ |
| H A 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
|
| /OK3568_Linux_fs/kernel/Documentation/arm/sa1100/ |
| H A D | serial_uart.rst | 14 > serial devices", so you will have a range of minors on those majors (the
|
| /OK3568_Linux_fs/kernel/drivers/ide/ |
| H A D | ide-gd.c | 397 g->minors = IDE_DISK_MINORS;
|
| H A D | ide-probe.c | 951 disk->minors, NULL, exact_match, exact_lock, disk); in ide_register_region() 959 disk->minors); in ide_unregister_region()
|
| H A D | ide-cd.c | 1821 g->minors = 1; in ide_cd_probe()
|
| /OK3568_Linux_fs/kernel/drivers/rk_nand/ |
| H A D | rk_nand_blk.c | 470 gd->minors = 255; in nand_add_dev()
|
| /OK3568_Linux_fs/kernel/drivers/cdrom/ |
| H A D | gdrom.c | 720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
|
| /OK3568_Linux_fs/kernel/drivers/rkflash/ |
| H A D | rkflash_blk.c | 550 gd->minors = 255; in rkflash_blk_add_dev()
|
| /OK3568_Linux_fs/kernel/Documentation/scsi/ |
| H A D | ChangeLog.sym53c8xx | 455 - Some other minors changes.
|
| /OK3568_Linux_fs/kernel/Documentation/m68k/ |
| H A D | kernel-options.rst | 118 knowledge that each disk uses 16 minors, and write "root=/dev/sde17"
|
| /OK3568_Linux_fs/kernel/drivers/block/mtip32xx/ |
| H A D | mtip32xx.c | 3614 dd->disk->minors = MTIP_MAX_MINORS; in mtip_block_initialize()
|
| /OK3568_Linux_fs/kernel/Documentation/admin-guide/ |
| H A D | devices.txt | 425 Each device type has 5 bits (32 minors). 1656 subdevice number. These subdevice minors are assigned
|
| /OK3568_Linux_fs/kernel/arch/x86/ |
| H A D | Kconfig | 1356 major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr. 1365 with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
|