Searched refs:MINORBITS (Results 1 - 23 of 23) sorted by relevance

/linux-4.1.27/include/linux/
H A Dkdev_t.h6 #define MINORBITS 20 macro
7 #define MINORMASK ((1U << MINORBITS) - 1)
9 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
11 #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi))
H A Dtty.h47 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
/linux-4.1.27/tools/lib/traceevent/
H A Dplugin_jbd2.c26 #define MINORBITS 20 macro
27 #define MINORMASK ((1U << MINORBITS) - 1)
29 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS))
/linux-4.1.27/drivers/block/
H A Dbrd.c619 blk_register_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS, brd_init() local
643 blk_unregister_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS); brd_exit() local
H A Dloop.c1790 if (max_loop > 1UL << (MINORBITS - part_shift)) { loop_init()
1808 range = 1UL << MINORBITS; loop_init()
1845 range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; loop_exit()
H A Dnbd.c799 if (nbds_max > 1UL << (MINORBITS - part_shift)) nbd_init()
H A Dvirtio_blk.c583 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), virtblk_probe()
H A Dxen-blkfront.c825 if (minor >> MINORBITS) { xlvbd_alloc_gendisk()
H A Dnvme-core.c45 #define NVME_MINORS (1U << MINORBITS)
H A Drbd.c4749 0, minor_to_rbd_dev_id(1 << MINORBITS), rbd_dev_id_get()
/linux-4.1.27/block/
H A Dgenhd.c29 #define NR_EXT_DEVT (1 << MINORBITS)
383 for (i = 0; i < MINORBITS / 2; i++) { blk_mangle_minor()
385 int high = minor & (1 << (MINORBITS - 1 - i)); blk_mangle_minor()
386 int distance = MINORBITS - 1 - 2 * i; blk_mangle_minor()
/linux-4.1.27/drivers/block/aoe/
H A Daoedev.c36 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
/linux-4.1.27/drivers/mtd/
H A Dmtdchar.c1148 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, init_mtdchar()
1161 __unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd"); cleanup_mtdchar()
/linux-4.1.27/drivers/s390/block/
H A Ddcssblk.c113 for (minor = 0; minor < (1<<MINORBITS); minor++) { dcssblk_assign_free_minor()
H A Ddasd_int.h13 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_debugfs.c811 char minor_buf[8]; /* MINORMASK, MINORBITS == 20; */ drbd_debugfs_device_attr()
/linux-4.1.27/drivers/uio/
H A Duio.c29 #define UIO_MAX_DEVICES (1U << MINORBITS)
/linux-4.1.27/drivers/md/
H A Ddm.c2189 if (minor >= (1 << MINORBITS)) specific_minor()
2211 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); next_free_minor()
2863 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) dm_get_md()
H A Dmd.c8874 blk_register_region(MKDEV(mdp_major, 0), 1UL<<MINORBITS, THIS_MODULE, md_init() local
8988 blk_unregister_region(MKDEV(mdp_major,0), 1U << MINORBITS); md_exit() local
/linux-4.1.27/drivers/net/
H A Dmacvtap.c72 #define MACVTAP_NUM_DEVS (1U << MINORBITS)
/linux-4.1.27/drivers/firewire/
H A Dcore-device.c1042 minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, fw_device_init()
/linux-4.1.27/fs/
H A Dsuper.c845 if (dev == (1 << MINORBITS)) { get_anon_bdev()
/linux-4.1.27/drivers/mmc/card/
H A Dblock.c2576 max_devices = min(MAX_DEVICES, (1 << MINORBITS) / perdev_minors); mmc_blk_init()

Completed in 880 milliseconds