Searched refs:MINORBITS (Results 1 – 22 of 22) sorted by relevance
/linux-4.4.14/include/linux/ |
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))
|
D | tty.h | 47 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/linux-4.4.14/tools/lib/traceevent/ |
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.4.14/drivers/block/ |
D | brd.c | 622 blk_register_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS, in brd_init() 646 blk_unregister_region(MKDEV(RAMDISK_MAJOR, 0), 1UL << MINORBITS); in brd_exit()
|
D | loop.c | 1981 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init() 1999 range = 1UL << MINORBITS; in loop_init() 2036 range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; in loop_exit()
|
D | virtio_blk.c | 582 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), in virtblk_probe()
|
D | nbd.c | 1023 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()
|
D | xen-blkfront.c | 966 if (minor >> MINORBITS) { in xlvbd_alloc_gendisk()
|
D | rbd.c | 4741 0, minor_to_rbd_dev_id(1 << MINORBITS), in rbd_dev_id_get()
|
/linux-4.4.14/block/ |
D | genhd.c | 30 #define NR_EXT_DEVT (1 << MINORBITS) 384 for (i = 0; i < MINORBITS / 2; i++) { in blk_mangle_minor() 386 int high = minor & (1 << (MINORBITS - 1 - i)); in blk_mangle_minor() 387 int distance = MINORBITS - 1 - 2 * i; in blk_mangle_minor()
|
/linux-4.4.14/drivers/mtd/ |
D | mtdchar.c | 1172 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, in init_mtdchar() 1185 __unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd"); in cleanup_mtdchar()
|
/linux-4.4.14/drivers/block/aoe/ |
D | aoedev.c | 36 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
/linux-4.4.14/drivers/s390/block/ |
D | dasd_int.h | 13 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
|
D | dcssblk.c | 114 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
|
/linux-4.4.14/drivers/uio/ |
D | uio.c | 29 #define UIO_MAX_DEVICES (1U << MINORBITS)
|
/linux-4.4.14/drivers/md/ |
D | dm.c | 2183 if (minor >= (1 << MINORBITS)) in specific_minor() 2205 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); in next_free_minor() 2811 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_get_md()
|
D | md.c | 9059 blk_register_region(MKDEV(mdp_major, 0), 1UL<<MINORBITS, THIS_MODULE, in md_init() 9276 blk_unregister_region(MKDEV(mdp_major,0), 1U << MINORBITS); in md_exit()
|
/linux-4.4.14/fs/ |
D | super.c | 861 if (dev >= (1 << MINORBITS)) { in get_anon_bdev()
|
/linux-4.4.14/drivers/firewire/ |
D | core-device.c | 1042 minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, in fw_device_init()
|
/linux-4.4.14/drivers/net/ |
D | macvtap.c | 127 #define MACVTAP_NUM_DEVS (1U << MINORBITS)
|
/linux-4.4.14/drivers/mmc/card/ |
D | block.c | 2696 max_devices = min(MAX_DEVICES, (1 << MINORBITS) / perdev_minors); in mmc_blk_init()
|
/linux-4.4.14/drivers/nvme/host/ |
D | pci.c | 50 #define NVME_MINORS (1U << MINORBITS)
|