| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 395 unsigned int *minors; member 401 struct minor_info *minors) in for_each_drm_fdinfo_in_dir() argument 434 for (int i = 0; i < minors->minors_num; i++) { in for_each_drm_fdinfo_in_dir() 435 if (minor(stat.st_rdev) == minors->minors[i]) { in for_each_drm_fdinfo_in_dir() 443 if (minors->minors_num == minors->minors_len) { in for_each_drm_fdinfo_in_dir() 444 unsigned int *tmp = reallocarray(minors->minors, minors->minors_len + 4, in for_each_drm_fdinfo_in_dir() 448 minors->minors = tmp; in for_each_drm_fdinfo_in_dir() 449 minors->minors_len += 4; in for_each_drm_fdinfo_in_dir() 452 minors->minors[minors->minors_num++] = minor; in for_each_drm_fdinfo_in_dir() 484 struct minor_info minors = { in for_each_drm_fdinfo() local [all …]
|
| /linux/drivers/staging/greybus/ |
| H A D | vibrator.c | 113 static DEFINE_IDA(minors); 156 vib->minor = ida_alloc(&minors, GFP_KERNEL); in gb_vibrator_probe() 176 ida_free(&minors, vib->minor); in gb_vibrator_probe() 200 ida_free(&minors, vib->minor); in gb_vibrator_disconnect() 244 ida_destroy(&minors); in gb_vibrator_exit()
|
| H A D | raw.c | 41 static DEFINE_IDA(minors); 184 minor = ida_alloc(&minors, GFP_KERNEL); in gb_raw_probe() 217 ida_free(&minors, minor); in gb_raw_probe() 238 ida_free(&minors, MINOR(raw->dev)); in gb_raw_disconnect() 376 ida_destroy(&minors); in raw_exit()
|
| /linux/drivers/mmc/core/ |
| H A D | Kconfig | 50 int "Number of minors per block device" 55 Number of minors per block device. One is needed for every 58 Number of total MMC minors available is 256, so your number
|
| /linux/Documentation/arch/arm/sa1100/ |
| H A D | serial_uart.rst | 14 > serial devices", so you will have a range of minors on those majors (the
|
| /linux/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
|
| /linux/drivers/net/wwan/ |
| H A D | wwan_core.c | 27 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */ 366 ida_free(&minors, MINOR(port->dev.devt)); in wwan_port_destroy() 467 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL); in wwan_create_port() 476 ida_free(&minors, minor); in wwan_create_port()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_printer.c | 56 static int major, minors; variable 1480 if (opts->minor >= minors) { in gprinter_alloc() 1551 minors = count; in gprinter_setup() 1559 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup() 1560 major = minors = 0; in gprinter_cleanup()
|
| H A D | f_hid.c | 33 static int major, minors; variable 1676 minors = count; in ghid_setup() 1684 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup() 1685 major = minors = 0; in ghid_cleanup()
|
| /linux/arch/xtensa/platforms/iss/ |
| H A D | simdisk.c | 289 dev->gd->minors = SIMDISK_MINORS; in simdisk_setup()
|
| /linux/block/partitions/ |
| H A D | core.c | 346 if (bdev_partno(bdev) < disk->minors) { in add_partition()
|
| /linux/drivers/cdrom/ |
| H A D | gdrom.c | 720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
|
| /linux/drivers/block/ |
| H A D | ps3vram.c | 742 gendisk->minors = 1; in ps3vram_probe()
|
| H A D | swim3.c | 1228 disk->minors = 1; in swim3_attach()
|
| H A D | ataflop.c | 2007 disk->minors = 1; in ataflop_alloc_disk()
|
| H A D | loop.c | 2106 disk->minors = 1 << part_shift; in loop_add()
|
| H A D | nbd.c | 1980 disk->minors = 1 << part_shift; in nbd_dev_add()
|
| /linux/drivers/scsi/ |
| H A D | sr.c | 654 disk->minors = 1; in sr_probe()
|
| /linux/arch/um/drivers/ |
| H A D | ubd_kern.c | 883 disk->minors = 1 << UBD_SHIFT; in ubd_add()
|
| /linux/drivers/memstick/core/ |
| H A D | mspro_block.c | 1152 msb->disk->minors = 1 << MSPRO_BLOCK_PART_SHIFT; in mspro_block_init_disk()
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-clt.c | 1338 dev->gd->minors = 1 << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk()
|
| /linux/drivers/block/null_blk/ |
| H A D | main.c | 2042 nullb->disk->minors = 1; in null_add_dev()
|
| /linux/Documentation/scsi/ |
| H A D | ChangeLog.sym53c8xx | 455 - Some other minors changes.
|
| /linux/drivers/block/zram/ |
| H A D | zram_drv.c | 2976 zram->disk->minors = 1; in zram_add()
|
| /linux/drivers/md/bcache/ |
| H A D | super.c | 980 d->disk->minors = BCACHE_MINORS; in bcache_device_init()
|