Home
last modified time | relevance | path

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

/linux-3.4.99/include/linux/
Dkdev_t.h4 #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))
Dtty.h55 #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */
/linux-3.4.99/drivers/block/
Dbrd.c595 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()
Dloop.c1852 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()
Dvirtio_blk.c408 err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS), in virtblk_probe()
Dnbd.c798 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()
/linux-3.4.99/drivers/mtd/
Dmtdchar.c1218 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/
Dgenhd.c28 #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/
Ddasd_int.h16 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
Ddcssblk.c127 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
/linux-3.4.99/drivers/md/
Ddm.c1760 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()
Dmd.c8235 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/
Duio.c29 #define UIO_MAX_DEVICES (1U << MINORBITS)
/linux-3.4.99/fs/
Dsuper.c855 if ((dev & MAX_ID_MASK) == (1 << MINORBITS)) { in get_anon_bdev()
/linux-3.4.99/drivers/firewire/
Dcore-device.c1002 if (minor >= 1 << MINORBITS) { in fw_device_init()
/linux-3.4.99/drivers/net/
Dmacvtap.c59 #define MACVTAP_NUM_DEVS (1U << MINORBITS)