/Linux-v5.10/include/linux/ |
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))
|
D | tty.h | 49 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/Linux-v5.10/tools/lib/traceevent/plugins/ |
D | plugin_jbd2.c | 12 #define MINORBITS 20 macro 13 #define MINORMASK ((1U << MINORBITS) - 1) 15 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
|
/Linux-v5.10/drivers/block/ |
D | brd.c | 483 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par() 536 blk_register_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS, in brd_init() 560 blk_unregister_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS); in brd_exit()
|
D | loop.c | 2349 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init() 2367 range = 1UL << MINORBITS; in loop_init() 2410 range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; in loop_exit()
|
D | virtio_blk.c | 716 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), in virtblk_probe()
|
D | nbd.c | 2403 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()
|
D | xen-blkfront.c | 1137 if (minor >> MINORBITS) { in xlvbd_alloc_gendisk()
|
/Linux-v5.10/arch/x86/kernel/cpu/resctrl/ |
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()
|
/Linux-v5.10/drivers/staging/kpc2000/kpc_dma/ |
D | kpc_dma_driver.c | 17 #define KPC_DMA_NUM_MINORS BIT(MINORBITS)
|
/Linux-v5.10/block/ |
D | genhd.c | 33 #define NR_EXT_DEVT (1 << MINORBITS) 543 for (i = 0; i < MINORBITS / 2; i++) { in blk_mangle_minor() 545 int high = minor & (1 << (MINORBITS - 1 - i)); in blk_mangle_minor() 546 int distance = MINORBITS - 1 - 2 * i; in blk_mangle_minor()
|
/Linux-v5.10/drivers/mtd/ |
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()
|
/Linux-v5.10/drivers/block/aoe/ |
D | aoedev.c | 35 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
/Linux-v5.10/drivers/android/ |
D | binderfs.c | 43 #define BINDERFS_MAX_MINOR (1U << MINORBITS)
|
/Linux-v5.10/drivers/md/ |
D | dm.c | 1687 if (minor >= (1 << MINORBITS)) in specific_minor() 1709 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); in next_free_minor() 2138 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_get_md()
|
/Linux-v5.10/drivers/s390/block/ |
D | dasd_int.h | 14 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
|
D | dcssblk.c | 152 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
|
/Linux-v5.10/drivers/uio/ |
D | uio.c | 28 #define UIO_MAX_DEVICES (1U << MINORBITS)
|
/Linux-v5.10/drivers/firewire/ |
D | core-device.c | 1029 minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, in fw_device_init()
|
/Linux-v5.10/drivers/vhost/ |
D | vdpa.c | 34 #define VHOST_VDPA_DEV_MAX (1U << MINORBITS)
|
/Linux-v5.10/drivers/staging/pi433/ |
D | pi433_if.c | 48 #define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
|
/Linux-v5.10/drivers/net/ |
D | tap.c | 102 #define TAP_NUM_DEVS (1U << MINORBITS)
|
/Linux-v5.10/fs/ |
D | super.c | 1081 dev = ida_alloc_range(&unnamed_dev_ida, 1, (1 << MINORBITS) - 1, in get_anon_bdev()
|
/Linux-v5.10/drivers/block/rnbd/ |
D | rnbd-clt.c | 1376 ret = ida_simple_get(&index_ida, 0, 1 << (MINORBITS - RNBD_PART_BITS), in init_dev()
|
/Linux-v5.10/drivers/mmc/core/ |
D | block.c | 3036 max_devices = min(MAX_DEVICES, (1 << MINORBITS) / perdev_minors); in mmc_blk_init()
|