Searched refs:MINORBITS (Results 1 – 25 of 32) sorted by relevance
12
/Linux-v6.6/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 | 26 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
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))
|
/Linux-v6.6/arch/x86/kernel/cpu/resctrl/ |
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()
|
/Linux-v6.6/block/ |
D | bsg.c | 39 #define BSG_MAX_DEVS (1 << MINORBITS)
|
D | genhd.c | 56 #define NR_EXT_DEVT (1 << MINORBITS)
|
/Linux-v6.6/drivers/block/ |
D | brd.c | 406 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par()
|
D | virtio_blk.c | 1324 minor_to_index(1 << MINORBITS) - 1, GFP_KERNEL); in virtblk_probe()
|
D | loop.c | 2262 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init()
|
D | nbd.c | 2514 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()
|
/Linux-v6.6/drivers/block/aoe/ |
D | aoedev.c | 35 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
/Linux-v6.6/drivers/mtd/ |
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()
|
/Linux-v6.6/drivers/android/ |
D | binderfs.c | 41 #define BINDERFS_MAX_MINOR (1U << MINORBITS)
|
/Linux-v6.6/drivers/md/ |
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()
|
/Linux-v6.6/drivers/s390/block/ |
D | dcssblk.c | 138 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
|
D | dasd_int.h | 14 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
|
/Linux-v6.6/drivers/uio/ |
D | uio.c | 28 #define UIO_MAX_DEVICES (1U << MINORBITS)
|
/Linux-v6.6/drivers/net/wwan/ |
D | wwan_core.c | 23 #define WWAN_MAX_MINORS (1 << MINORBITS)
|
/Linux-v6.6/drivers/firewire/ |
D | core-device.c | 1027 minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, in fw_device_init()
|
/Linux-v6.6/drivers/net/ |
D | tap.c | 104 #define TAP_NUM_DEVS (1U << MINORBITS)
|
/Linux-v6.6/drivers/staging/pi433/ |
D | pi433_if.c | 49 #define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
|
/Linux-v6.6/fs/ |
D | super.c | 1265 dev = ida_alloc_range(&unnamed_dev_ida, 1, (1 << MINORBITS) - 1, in get_anon_bdev()
|
/Linux-v6.6/drivers/vhost/ |
D | vdpa.c | 35 #define VHOST_VDPA_DEV_MAX (1U << MINORBITS)
|
/Linux-v6.6/drivers/block/rnbd/ |
D | rnbd-clt.c | 1443 ret = ida_alloc_max(&index_ida, (1 << (MINORBITS - RNBD_PART_BITS)) - 1, in init_dev()
|
/Linux-v6.6/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 39 #define VDUSE_DEV_MAX (1U << MINORBITS)
|
12