| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 391 unsigned int *minors; in drm_pmu__check_alias() 397 struct minor_info *minors) 430 for (int i = 0; i < minors->minors_num; i++) { in for_each_drm_fdinfo_in_dir() 431 if (minor(stat.st_rdev) == minors->minors[i]) { in for_each_drm_fdinfo_in_dir() 439 if (minors->minors_num == minors->minors_len) { in for_each_drm_fdinfo_in_dir() 440 unsigned int *tmp = reallocarray(minors->minors, minors in for_each_drm_fdinfo_in_dir() 395 unsigned int *minors; global() member 401 for_each_drm_fdinfo_in_dir(int (* cb)(void * args,int fdinfo_dir_fd,const char * fd_name),void * args,int proc_dir,const char * pid_name,struct minor_info * minors) for_each_drm_fdinfo_in_dir() argument 484 struct minor_info minors = { for_each_drm_fdinfo() local 644 struct minor_info minors = { drm_pmu__read_for_pid() 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()
|
| /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/block/ |
| H A D | genhd.c | 463 if (WARN_ON(!disk->minors)) in __add_disk() 466 if (disk->minors > DISK_MAX_PARTS) { in __add_disk() 469 disk->minors = DISK_MAX_PARTS; in __add_disk() 472 disk->minors > MINORMASK + 1 || in __add_disk() 473 disk->first_minor + disk->minors > MINORMASK + 1) in __add_disk() 476 if (WARN_ON(disk->minors)) in __add_disk() 1018 return sysfs_emit(buf, "%d\n", disk->minors); in disk_range_show()
|
| /linux/drivers/spi/ |
| H A D | spidev.c | 46 static DECLARE_BITMAP(minors, N_SPI_MINORS); 794 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe() 808 set_bit(minor, minors); in spidev_probe() 836 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
|
| /linux/drivers/block/ |
| H A D | xen-blkfront.c | 237 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() 1159 gd->minors = nr_minors; in xlvbd_alloc_gendisk() 2481 xlbd_release_minors(info->gd->first_minor, info->gd->minors); in blkfront_remove() 2634 kfree(minors); in xlblk_exit()
|
| H A D | z2ram.c | 326 disk->minors = 1; in z2ram_register_disk()
|
| H A D | brd.c | 334 disk->minors = max_part; in brd_alloc()
|
| H A D | ps3disk.c | 456 gendisk->minors = PS3DISK_MINORS; in ps3disk_probe()
|
| H A D | swim.c | 841 swd->unit[drive].disk->minors = 1; in swim_floppy_init()
|
| H A D | ps3vram.c | 740 gendisk->minors = 1; in ps3vram_probe()
|
| H A D | sunvdc.c | 848 g->minors = 1 << PARTITION_SHIFT; in probe_disk()
|
| H A D | swim3.c | 1228 disk->minors = 1; in swim3_attach()
|
| /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/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 1688 minors = count; in ghid_setup() 1696 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup() 1697 major = minors = 0; in ghid_cleanup()
|
| /linux/drivers/net/wwan/ |
| H A D | wwan_core.c | 32 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */ 375 ida_free(&minors, MINOR(dev->devt)); in wwan_port_destroy() 462 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL); in wwan_port_register_wwan() 482 ida_free(&minors, minor); in wwan_port_register_wwan()
|
| /linux/arch/xtensa/platforms/iss/ |
| H A D | simdisk.c | 289 dev->gd->minors = SIMDISK_MINORS; in simdisk_setup()
|
| /linux/drivers/mtd/ |
| H A D | mtd_blkdevs.c | 354 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev()
|
| /linux/drivers/mtd/ubi/ |
| H A D | block.c | 408 gd->minors = 1; in ubiblock_create()
|
| /linux/drivers/s390/block/ |
| H A D | scm_blk.c | 477 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup()
|
| H A D | dcssblk.c | 648 dev_info->gd->minors = DCSSBLK_MINORS_PER_DISK; in dcssblk_add_store()
|
| /linux/drivers/cdrom/ |
| H A D | gdrom.c | 720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
|
| /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()
|