Home
last modified time | relevance | path

Searched refs:minor (Results 1 – 3 of 3) sorted by relevance

/block/
Dbsg.c783 static struct bsg_device *__bsg_get_device(int minor, struct request_queue *q) in __bsg_get_device() argument
789 hlist_for_each_entry(bd, bsg_dev_idx_hash(minor), dev_list) { in __bsg_get_device()
967 idr_remove(&bsg_minor_idr, bcd->minor); in bsg_unregister_queue()
1011 bcd->minor = ret; in bsg_register_queue()
1016 dev = MKDEV(bsg_major, bcd->minor); in bsg_register_queue()
1037 idr_remove(&bsg_minor_idr, bcd->minor); in bsg_register_queue()
Dgenhd.c382 static int blk_mangle_minor(int minor) in blk_mangle_minor() argument
388 int low = minor & (1 << i); in blk_mangle_minor()
389 int high = minor & (1 << (MINORBITS - 1 - i)); in blk_mangle_minor()
392 minor ^= low | high; /* clear both bits */ in blk_mangle_minor()
395 minor |= low | high; /* and set */ in blk_mangle_minor()
398 return minor; in blk_mangle_minor()
Dblk-cgroup.c793 unsigned int major, minor; in blkg_conf_prep() local
797 if (sscanf(input, "%u:%u%n", &major, &minor, &key_len) != 2) in blkg_conf_prep()
805 disk = get_gendisk(MKDEV(major, minor), &part); in blkg_conf_prep()