Home
last modified time | relevance | path

Searched refs:MINORBITS (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.1.9/include/linux/
Dkdev_t.h7 #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))
Dtty.h26 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
/linux-6.1.9/tools/lib/traceevent/plugins/
Dplugin_jbd2.c12 #define MINORBITS 20 macro
13 #define MINORMASK ((1U << MINORBITS) - 1)
15 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_iter_task_vma.c15 #define MINORBITS 20 macro
16 #define MINORMASK ((1U << MINORBITS) - 1)
17 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
/linux-6.1.9/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c47 static unsigned long pseudo_lock_minor_avail = GENMASK(MINORBITS, 0);
118 first_bit = find_first_bit(&pseudo_lock_minor_avail, MINORBITS); in pseudo_lock_minor_get()
120 if (first_bit == MINORBITS) in pseudo_lock_minor_get()
/linux-6.1.9/drivers/block/
Dbrd.c458 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par()
Dvirtio_blk.c910 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), in virtblk_probe()
Dublk_drv.c47 #define UBLK_MINORS (1U << MINORBITS)
Dloop.c2216 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init()
/linux-6.1.9/drivers/block/aoe/
Daoedev.c35 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
/linux-6.1.9/drivers/mtd/
Dmtdchar.c1423 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-6.1.9/drivers/android/
Dbinderfs.c42 #define BINDERFS_MAX_MINOR (1U << MINORBITS)
/linux-6.1.9/drivers/md/
Ddm.c1907 if (minor >= (1 << MINORBITS)) in specific_minor()
1929 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); in next_free_minor()
2393 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_get_md()
/linux-6.1.9/drivers/s390/block/
Ddcssblk.c137 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
Ddasd_int.h14 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
/linux-6.1.9/drivers/uio/
Duio.c28 #define UIO_MAX_DEVICES (1U << MINORBITS)
/linux-6.1.9/drivers/net/wwan/
Dwwan_core.c23 #define WWAN_MAX_MINORS (1 << MINORBITS)
/linux-6.1.9/drivers/firewire/
Dcore-device.c1027 minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, in fw_device_init()
/linux-6.1.9/drivers/net/
Dtap.c102 #define TAP_NUM_DEVS (1U << MINORBITS)
/linux-6.1.9/block/
Dgenhd.c55 #define NR_EXT_DEVT (1 << MINORBITS)
/linux-6.1.9/drivers/staging/pi433/
Dpi433_if.c50 #define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
/linux-6.1.9/fs/
Dsuper.c1059 dev = ida_alloc_range(&unnamed_dev_ida, 1, (1 << MINORBITS) - 1, in get_anon_bdev()
/linux-6.1.9/drivers/vhost/
Dvdpa.c35 #define VHOST_VDPA_DEV_MAX (1U << MINORBITS)
/linux-6.1.9/drivers/block/rnbd/
Drnbd-clt.c1443 ret = ida_alloc_max(&index_ida, (1 << (MINORBITS - RNBD_PART_BITS)) - 1, in init_dev()
/linux-6.1.9/drivers/vdpa/vdpa_user/
Dvduse_dev.c39 #define VDUSE_DEV_MAX (1U << MINORBITS)

12