| /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 | raw.c | 42 static DEFINE_IDA(minors); 156 ida_free(&minors, MINOR(raw->dev.devt)); in raw_dev_release() 177 minor = ida_alloc(&minors, GFP_KERNEL); in gb_raw_probe() 183 ida_free(&minors, minor); in gb_raw_probe() 394 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/block/ |
| H A D | genhd.c | 466 if (WARN_ON(!disk->minors)) in __add_disk() 469 if (disk->minors > DISK_MAX_PARTS) { in __add_disk() 472 disk->minors = DISK_MAX_PARTS; in __add_disk() 475 disk->minors > MINORMASK + 1 || in __add_disk() 476 disk->first_minor + disk->minors > MINORMASK + 1) in __add_disk() 479 if (WARN_ON(disk->minors)) in __add_disk() 1022 return sysfs_emit(buf, "%d\n", disk->minors); in disk_range_show()
|
| /linux/drivers/spi/ |
| H A D | spidev.c | 45 static DECLARE_BITMAP(minors, N_SPI_MINORS); 793 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe() 807 set_bit(minor, minors); in spidev_probe() 835 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() 2490 xlbd_release_minors(info->gd->first_minor, info->gd->minors); in blkfront_remove() 2643 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 | 872 g->minors = 1 << PARTITION_SHIFT; in probe_disk()
|
| 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()
|
| /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 1492 if (opts->minor >= minors) { in gprinter_alloc() 1563 minors = count; in gprinter_setup() 1571 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup() 1572 major = minors = 0; in gprinter_cleanup()
|
| H A D | f_hid.c | 33 static int major, minors; variable 1687 minors = count; in ghid_setup() 1695 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup() 1696 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 */ 376 ida_free(&minors, MINOR(dev->devt)); in wwan_port_destroy() 463 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL); in wwan_port_register_wwan() 483 ida_free(&minors, minor); in wwan_port_register_wwan()
|
| /linux/drivers/mtd/ |
| H A D | mtd_blkdevs.c | 354 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev()
|
| /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()
|
| /linux/include/linux/ |
| H A D | blkdev.h | 151 int minors; member
|