Home
last modified time | relevance | path

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

12

/linux/tools/perf/util/
H A Ddrm_pmu.c391 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 Draw.c42 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 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/block/
H A Dgenhd.c466 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 Dspidev.c45 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 Dxen-blkfront.c237 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 Dz2ram.c326 disk->minors = 1; in z2ram_register_disk()
H A Dbrd.c334 disk->minors = max_part; in brd_alloc()
H A Dps3disk.c456 gendisk->minors = PS3DISK_MINORS; in ps3disk_probe()
H A Dswim.c841 swd->unit[drive].disk->minors = 1; in swim_floppy_init()
H A Dps3vram.c740 gendisk->minors = 1; in ps3vram_probe()
H A Dsunvdc.c872 g->minors = 1 << PARTITION_SHIFT; in probe_disk()
H A Dswim3.c1228 disk->minors = 1; in swim3_attach()
H A Dataflop.c2007 disk->minors = 1; in ataflop_alloc_disk()
/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/drivers/usb/gadget/function/
H A Df_printer.c56 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 Df_hid.c33 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 Dwwan_core.c32 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 Dmtd_blkdevs.c354 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev()
/linux/drivers/s390/block/
H A Dscm_blk.c477 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup()
H A Ddcssblk.c648 dev_info->gd->minors = DCSSBLK_MINORS_PER_DISK; in dcssblk_add_store()
/linux/drivers/cdrom/
H A Dgdrom.c720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
/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/include/linux/
H A Dblkdev.h151 int minors; member

12