Home
last modified time | relevance | path

Searched refs:minors (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dgenhd.h173 int minors; /* maximum number of minors, =1 for member
234 return disk->minors; in disk_max_parts()
342 extern struct gendisk *__alloc_disk_node(int minors, int node_id);
355 #define alloc_disk_node(minors, node_id) \ argument
361 __name = "(gendisk_completion)"#minors"("#node_id")"; \
363 __disk = __alloc_disk_node(minors, node_id); \
371 #define alloc_disk(minors) alloc_disk_node(minors, NUMA_NO_NODE) argument
/kernel/linux/linux-5.10/drivers/staging/greybus/
Dvibrator.c114 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()
Draw.c38 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()
/kernel/linux/linux-5.10/drivers/mmc/core/
DKconfig48 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
/kernel/linux/linux-5.10/block/
Dgenhd.c580 if (part->partno < disk->minors) { in blk_alloc_devt()
798 WARN_ON(disk->minors && !(disk->major || disk->first_minor)); in __device_add_disk()
799 WARN_ON(!disk->minors && in __device_add_disk()
831 blk_register_region(disk_devt(disk), disk->minors, NULL, in __device_add_disk()
944 blk_unregister_region(disk_devt(disk), disk->minors); in del_gendisk()
1250 return sprintf(buf, "%d\n", disk->minors); in disk_range_show()
1703 if (partno < disk->minors) { in blk_lookup_devt()
1723 struct gendisk *__alloc_disk_node(int minors, int node_id) in __alloc_disk_node() argument
1728 if (minors > DISK_MAX_PARTS) { in __alloc_disk_node()
1732 minors = DISK_MAX_PARTS; in __alloc_disk_node()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspidev.c47 static DECLARE_BITMAP(minors, N_SPI_MINORS);
773 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe()
787 set_bit(minor, minors); in spidev_probe()
815 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/kernel/linux/linux-5.10/Documentation/arm/sa1100/
Dserial_uart.rst14 > serial devices", so you will have a range of minors on those majors (the
/kernel/linux/linux-5.10/drivers/block/
Dxen-blkfront.c235 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()
/kernel/linux/linux-5.10/Documentation/input/
Dinput.rst105 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
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_printer.c54 static int major, minors; variable
1460 if (opts->minor >= minors) { in gprinter_alloc()
1535 minors = count; in gprinter_setup()
1543 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup()
1544 major = minors = 0; in gprinter_cleanup()
Df_hid.c25 static int major, minors; variable
1342 minors = count; in ghid_setup()
1350 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup()
1351 major = minors = 0; in ghid_cleanup()
/kernel/linux/linux-5.10/drivers/ide/
Dide-gd.c397 g->minors = IDE_DISK_MINORS;
Dide-probe.c951 disk->minors, NULL, exact_match, exact_lock, disk); in ide_register_region()
959 disk->minors); in ide_unregister_region()
Dide-cd.c1821 g->minors = 1; in ide_cd_probe()
/kernel/linux/linux-5.10/drivers/cdrom/
Dgdrom.c720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
/kernel/linux/linux-5.10/Documentation/scsi/
DChangeLog.sym53c8xx455 - Some other minors changes.
/kernel/linux/linux-5.10/Documentation/m68k/
Dkernel-options.rst118 knowledge that each disk uses 16 minors, and write "root=/dev/sde17"
/kernel/linux/linux-5.10/drivers/block/mtip32xx/
Dmtip32xx.c3614 dd->disk->minors = MTIP_MAX_MINORS; in mtip_block_initialize()
/kernel/linux/linux-5.10/Documentation/admin-guide/
Ddevices.txt425 Each device type has 5 bits (32 minors).
1656 subdevice number. These subdevice minors are assigned
/kernel/linux/linux-5.10/arch/x86/
DKconfig1349 major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr.
1358 with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to