Home
last modified time | relevance | path

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

/drivers/block/
Dloop.c140 static int part_shift; variable
1104 if (part_shift) in loop_configure()
1203 if (!part_shift) in __loop_clr_fd()
2068 if (!part_shift) in loop_add()
2077 disk->first_minor = i << part_shift; in loop_add()
2078 disk->minors = 1 << part_shift; in loop_add()
2127 int idx = MINOR(dev) >> part_shift; in loop_probe()
2241 part_shift = 0; in loop_init()
2243 part_shift = fls(max_part); in loop_init()
2253 max_part = (1UL << part_shift) - 1; in loop_init()
[all …]
Dnbd.c165 static int part_shift; variable
1824 (MINORMASK >> part_shift) + 1, GFP_KERNEL); in nbd_dev_add()
1869 disk->first_minor = index << part_shift; in nbd_dev_add()
1870 disk->minors = 1 << part_shift; in nbd_dev_add()
1982 if (index < 0 || index > MINORMASK >> part_shift) { in nbd_genl_connect()
2542 part_shift = 0; in nbd_init()
2544 part_shift = fls(max_part); in nbd_init()
2554 max_part = (1UL << part_shift) - 1; in nbd_init()
2557 if ((1UL << part_shift) > DISK_MAX_PARTS) in nbd_init()
2560 if (nbds_max > 1UL << (MINORBITS - part_shift)) in nbd_init()