Home
last modified time | relevance | path

Searched refs:part_shift (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/block/
H A Dloop.c140 static int part_shift; variable
1101 if (part_shift) in loop_configure()
1200 if (!part_shift) in __loop_clr_fd()
2056 if (!part_shift) in loop_add()
2065 disk->first_minor = i << part_shift; in loop_add()
2066 disk->minors = 1 << part_shift; in loop_add()
2115 int idx = MINOR(dev) >> part_shift; in loop_probe()
2229 part_shift = 0; in loop_init()
2231 part_shift = fls(max_part); in loop_init()
2241 max_part = (1UL << part_shift) - 1; in loop_init()
[all …]
H A Dnbd.c165 static int part_shift; variable
1835 (MINORMASK >> part_shift) + 1, GFP_KERNEL); in nbd_dev_add()
1880 disk->first_minor = index << part_shift; in nbd_dev_add()
1881 disk->minors = 1 << part_shift; in nbd_dev_add()
1990 * sysfs files/links, since index << part_shift might overflow, or in nbd_genl_connect()
1993 if (index < 0 || index > MINORMASK >> part_shift) { in nbd_genl_connect()
2554 part_shift = 0; in nbd_init()
2556 part_shift = fls(max_part); in nbd_init()
2559 * Adjust max_part according to part_shift as it is exported in nbd_init()
2566 max_part = (1UL << part_shift) in nbd_init()
[all...]