/linux-4.1.27/include/linux/ |
H A D | kdev_t.h | 6 #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 D | tty.h | 47 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | plugin_jbd2.c | 26 #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 D | brd.c | 619 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 D | loop.c | 1790 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 D | nbd.c | 799 if (nbds_max > 1UL << (MINORBITS - part_shift)) nbd_init()
|
H A D | virtio_blk.c | 583 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), virtblk_probe()
|
H A D | xen-blkfront.c | 825 if (minor >> MINORBITS) { xlvbd_alloc_gendisk()
|
H A D | nvme-core.c | 45 #define NVME_MINORS (1U << MINORBITS)
|
H A D | rbd.c | 4749 0, minor_to_rbd_dev_id(1 << MINORBITS), rbd_dev_id_get()
|
/linux-4.1.27/block/ |
H A D | genhd.c | 29 #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 D | aoedev.c | 36 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
/linux-4.1.27/drivers/mtd/ |
H A D | mtdchar.c | 1148 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 D | dcssblk.c | 113 for (minor = 0; minor < (1<<MINORBITS); minor++) { dcssblk_assign_free_minor()
|
H A D | dasd_int.h | 13 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_debugfs.c | 811 char minor_buf[8]; /* MINORMASK, MINORBITS == 20; */ drbd_debugfs_device_attr()
|
/linux-4.1.27/drivers/uio/ |
H A D | uio.c | 29 #define UIO_MAX_DEVICES (1U << MINORBITS)
|
/linux-4.1.27/drivers/md/ |
H A D | dm.c | 2189 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 D | md.c | 8874 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 D | macvtap.c | 72 #define MACVTAP_NUM_DEVS (1U << MINORBITS)
|
/linux-4.1.27/drivers/firewire/ |
H A D | core-device.c | 1042 minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, fw_device_init()
|
/linux-4.1.27/fs/ |
H A D | super.c | 845 if (dev == (1 << MINORBITS)) { get_anon_bdev()
|
/linux-4.1.27/drivers/mmc/card/ |
H A D | block.c | 2576 max_devices = min(MAX_DEVICES, (1 << MINORBITS) / perdev_minors); mmc_blk_init()
|