Searched refs:MINORBITS (Results 1 – 16 of 16) sorted by relevance
/linux-3.4.99/include/linux/ |
D | kdev_t.h | 4 #define MINORBITS 20 macro 5 #define MINORMASK ((1U << MINORBITS) - 1) 7 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) 9 #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi))
|
D | tty.h | 55 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
|
/linux-3.4.99/drivers/block/ |
D | brd.c | 595 if (rd_nr > 1UL << (MINORBITS - part_shift)) in brd_init() 603 range = 1UL << MINORBITS; in brd_init() 642 range = rd_nr ? rd_nr << part_shift : 1UL << MINORBITS; in brd_exit()
|
D | loop.c | 1852 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init() 1870 range = 1UL << MINORBITS; in loop_init() 1907 range = max_loop ? max_loop << part_shift : 1UL << MINORBITS; in loop_exit()
|
D | virtio_blk.c | 408 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), in virtblk_probe()
|
D | nbd.c | 798 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()
|
/linux-3.4.99/drivers/mtd/ |
D | mtdchar.c | 1218 ret = __register_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, in init_mtdchar() 1234 __unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd"); in init_mtdchar() 1241 __unregister_chrdev(MTD_CHAR_MAJOR, 0, 1 << MINORBITS, "mtd"); in cleanup_mtdchar()
|
/linux-3.4.99/block/ |
D | genhd.c | 28 #define NR_EXT_DEVT (1 << MINORBITS) 380 for (i = 0; i < MINORBITS / 2; i++) { in blk_mangle_minor() 382 int high = minor & (1 << (MINORBITS - 1 - i)); in blk_mangle_minor() 383 int distance = MINORBITS - 1 - 2 * i; in blk_mangle_minor()
|
/linux-3.4.99/drivers/s390/block/ |
D | dasd_int.h | 16 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
|
D | dcssblk.c | 127 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
|
/linux-3.4.99/drivers/md/ |
D | dm.c | 1760 if (minor >= (1 << MINORBITS)) in specific_minor() 1803 if (m >= (1 << MINORBITS)) { in next_free_minor() 2240 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_find_md()
|
D | md.c | 8235 blk_register_region(MKDEV(MD_MAJOR, 0), 1UL<<MINORBITS, THIS_MODULE, in md_init() 8237 blk_register_region(MKDEV(mdp_major, 0), 1UL<<MINORBITS, THIS_MODULE, in md_init() 8329 blk_unregister_region(MKDEV(MD_MAJOR,0), 1U << MINORBITS); in md_exit() 8330 blk_unregister_region(MKDEV(mdp_major,0), 1U << MINORBITS); in md_exit()
|
/linux-3.4.99/drivers/uio/ |
D | uio.c | 29 #define UIO_MAX_DEVICES (1U << MINORBITS)
|
/linux-3.4.99/fs/ |
D | super.c | 855 if ((dev & MAX_ID_MASK) == (1 << MINORBITS)) { in get_anon_bdev()
|
/linux-3.4.99/drivers/firewire/ |
D | core-device.c | 1002 if (minor >= 1 << MINORBITS) { in fw_device_init()
|
/linux-3.4.99/drivers/net/ |
D | macvtap.c | 59 #define MACVTAP_NUM_DEVS (1U << MINORBITS)
|