Home
last modified time | relevance | path

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

12

/linux/tools/perf/util/
H A Ddrm_pmu.c395 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 Dvibrator.c113 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 Draw.c41 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 DKconfig50 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 Dserial_uart.rst14 > serial devices", so you will have a range of minors on those majors (the
/linux/Documentation/input/
H A 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
/linux/drivers/net/wwan/
H A Dwwan_core.c27 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 Df_printer.c56 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 Df_hid.c33 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 Dsimdisk.c289 dev->gd->minors = SIMDISK_MINORS; in simdisk_setup()
/linux/block/partitions/
H A Dcore.c346 if (bdev_partno(bdev) < disk->minors) { in add_partition()
/linux/drivers/cdrom/
H A Dgdrom.c720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
/linux/drivers/block/
H A Dps3vram.c742 gendisk->minors = 1; in ps3vram_probe()
H A Dswim3.c1228 disk->minors = 1; in swim3_attach()
H A Dataflop.c2007 disk->minors = 1; in ataflop_alloc_disk()
H A Dloop.c2106 disk->minors = 1 << part_shift; in loop_add()
H A Dnbd.c1980 disk->minors = 1 << part_shift; in nbd_dev_add()
/linux/drivers/scsi/
H A Dsr.c654 disk->minors = 1; in sr_probe()
/linux/arch/um/drivers/
H A Dubd_kern.c883 disk->minors = 1 << UBD_SHIFT; in ubd_add()
/linux/drivers/memstick/core/
H A Dmspro_block.c1152 msb->disk->minors = 1 << MSPRO_BLOCK_PART_SHIFT; in mspro_block_init_disk()
/linux/drivers/block/rnbd/
H A Drnbd-clt.c1338 dev->gd->minors = 1 << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk()
/linux/drivers/block/null_blk/
H A Dmain.c2042 nullb->disk->minors = 1; in null_add_dev()
/linux/Documentation/scsi/
H A DChangeLog.sym53c8xx455 - Some other minors changes.
/linux/drivers/block/zram/
H A Dzram_drv.c2976 zram->disk->minors = 1; in zram_add()
/linux/drivers/md/bcache/
H A Dsuper.c980 d->disk->minors = BCACHE_MINORS; in bcache_device_init()

12