Searched refs:MINORBITS (Results 1 – 20 of 20) sorted by relevance
| /linux/include/linux/ |
| H A D | kdev_t.h | 7 #define MINORBITS 20 macro 8 #define MINORMASK ((1U << MINORBITS) - 1) 10 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) 12 #define MKDEV(ma,mi) (((ma) << MINORBITS) | (mi))
|
| /linux/drivers/block/ |
| H A D | brd.c | 381 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par()
|
| H A D | loop.c | 2293 if (max_loop > 1UL << (MINORBITS - part_shift)) { in loop_init()
|
| H A D | xen-blkfront.c | 1107 if (minor >> MINORBITS) { in xlvbd_alloc_gendisk()
|
| H A D | nbd.c | 2713 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()
|
| H A D | rbd.c | 5400 minor_to_rbd_dev_id(1 << MINORBITS) - 1, in rbd_dev_create()
|
| /linux/drivers/block/aoe/ |
| H A D | aoedev.c | 35 #define N_DEVS ((1U<<MINORBITS)/AOE_PARTITIONS)
|
| /linux/drivers/android/ |
| H A D | binderfs.c | 40 #define BINDERFS_MAX_MINOR (1U << MINORBITS)
|
| /linux/drivers/s390/block/ |
| H A D | dcssblk.c | 138 for (minor = 0; minor < (1<<MINORBITS); minor++) { in dcssblk_assign_free_minor()
|
| H A D | dasd_int.h | 14 #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
|
| /linux/drivers/md/ |
| H A D | dm.c | 2194 if (minor >= (1 << MINORBITS)) in specific_minor() 2216 r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT); in next_free_minor() 2672 if (MAJOR(dev) != _major || minor >= (1 << MINORBITS)) in dm_get_md()
|
| /linux/drivers/net/ |
| H A D | tap.c | 39 #define TAP_NUM_DEVS (1U << MINORBITS)
|
| /linux/block/ |
| H A D | genhd.c | 56 #define NR_EXT_DEVT (1 << MINORBITS)
|
| /linux/drivers/net/wwan/ |
| H A D | wwan_core.c | 29 #define WWAN_MAX_MINORS (1 << MINORBITS)
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-clt.c | 1428 (1 << (MINORBITS - RNBD_PART_BITS)) - 1, in init_dev()
|
| /linux/drivers/vhost/ |
| H A D | vdpa.c | 35 #define VHOST_VDPA_DEV_MAX (1U << MINORBITS)
|
| /linux/fs/ |
| H A D | super.c | 1334 dev = ida_alloc_range(&unnamed_dev_ida, 1, (1 << MINORBITS) - 1, in get_anon_bdev()
|
| /linux/drivers/scsi/ |
| H A D | sg.c | 74 #define SG_MAX_DEVS (1 << MINORBITS)
|
| /linux/drivers/vdpa/vdpa_user/ |
| H A D | vduse_dev.c | 43 #define VDUSE_DEV_MAX (1U << MINORBITS)
|
| /linux/drivers/nvme/host/ |
| H A D | core.c | 34 #define NVME_MINORS (1U << MINORBITS)
|