/kernel/linux/linux-5.10/include/linux/ |
H A D | kdev_t.h | 7 #define MINORBITS 20 macro 8 #define MINORMASK ((1U << MINORBITS) - 1) 10 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) 12 #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi))
|
H A D | tty.h | 25 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | kdev_t.h | 7 #define MINORBITS 20 macro 8 #define MINORMASK ((1U << MINORBITS) - 1) 10 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) 12 #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi))
|
H A D | tty.h | 26 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/ |
H A D | plugin_jbd2.c | 12 #define MINORBITS 20 macro 13 #define MINORMASK ((1U << MINORBITS) - 1) 15 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_vma.c | 15 #define MINORBITS 20 macro 16 #define MINORMASK ((1U << MINORBITS) - 1) 17 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
|
/kernel/linux/linux-5.10/drivers/block/ |
H A D | brd.c | 478 * make sure 'max_part' can be divided exactly by (1U << MINORBITS), in brd_check_and_reset_par() 481 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par() 534 blk_register_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS, in brd_init() local 558 blk_unregister_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS); in brd_exit() local
|
H A D | loop.c | 2346 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init() 2364 range = 1UL << MINORBITS; in loop_init() 2407 range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; in loop_exit()
|
H A D | virtio_blk.c | 716 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), in virtblk_probe()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/ |
H A D | pseudo_lock.c | 47 static unsigned long pseudo_lock_minor_avail = GENMASK(MINORBITS, 0); 117 first_bit = find_first_bit(&pseudo_lock_minor_avail, MINORBITS); in pseudo_lock_minor_get() 119 if (first_bit == MINORBITS) in pseudo_lock_minor_get()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/resctrl/ |
H A D | pseudo_lock.c | 47 static unsigned long pseudo_lock_minor_avail = GENMASK(MINORBITS, 0); 132 first_bit = find_first_bit(&pseudo_lock_minor_avail, MINORBITS); in pseudo_lock_minor_get() 134 if (first_bit == MINORBITS) in pseudo_lock_minor_get()
|
/kernel/linux/linux-5.10/drivers/staging/kpc2000/kpc_dma/ |
H A D | kpc_dma_driver.c | 17 #define KPC_DMA_NUM_MINORS BIT(MINORBITS)
|
/kernel/linux/linux-6.6/block/ |
H A D | bsg.c | 39 #define BSG_MAX_DEVS (1 << MINORBITS)
|
/kernel/linux/linux-5.10/drivers/mtd/ |
H A D | mtdchar.c | 1217 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, in init_mtdchar() 1230 __unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd"); in cleanup_mtdchar()
|
/kernel/linux/linux-5.10/block/ |
H A D | genhd.c | 33 #define NR_EXT_DEVT (1 << MINORBITS) 546 for (i = 0; i < MINORBITS / 2; i++) { in blk_mangle_minor() 548 int high = minor & (1 << (MINORBITS - 1 - i)); in blk_mangle_minor() 549 int distance = MINORBITS - 1 - 2 * i; in blk_mangle_minor()
|
/kernel/linux/linux-5.10/drivers/block/aoe/ |
H A D | aoedev.c | 35 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
/kernel/linux/linux-6.6/drivers/block/ |
H A D | brd.c | 403 * make sure 'max_part' can be divided exactly by (1U << MINORBITS), in brd_check_and_reset_par() 406 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par()
|
/kernel/linux/linux-6.6/drivers/block/aoe/ |
H A D | aoedev.c | 35 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
/kernel/linux/linux-6.6/drivers/mtd/ |
H A D | mtdchar.c | 1423 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, in init_mtdchar() 1436 __unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd"); in cleanup_mtdchar()
|
/kernel/linux/linux-5.10/drivers/android/ |
H A D | binderfs.c | 43 #define BINDERFS_MAX_MINOR (1U << MINORBITS)
|
/kernel/linux/linux-6.6/drivers/android/ |
H A D | binderfs.c | 41 #define BINDERFS_MAX_MINOR (1U << MINORBITS)
|
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm.c | 1742 if (minor >= (1 << MINORBITS)) in specific_minor() 1764 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); in next_free_minor() 2192 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_get_md()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm.c | 1919 if (minor >= (1 << MINORBITS)) in specific_minor() 1941 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); in next_free_minor() 2394 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_get_md()
|
/kernel/linux/linux-5.10/drivers/s390/block/ |
H A D | dcssblk.c | 152 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
|
/kernel/linux/linux-5.10/drivers/uio/ |
H A D | uio.c | 28 #define UIO_MAX_DEVICES (1U << MINORBITS)
|