Lines Matching defs:part_shift
165 static int part_shift;
1820 (MINORMASK >> part_shift) + 1, GFP_KERNEL);
1865 disk->first_minor = index << part_shift;
1866 disk->minors = 1 << part_shift;
1975 * sysfs files/links, since index << part_shift might overflow, or
1978 if (index < 0 || index > MINORMASK >> part_shift) {
2538 part_shift = 0;
2540 part_shift = fls(max_part);
2543 * Adjust max_part according to part_shift as it is exported
2550 max_part = (1UL << part_shift) - 1;
2553 if ((1UL << part_shift) > DISK_MAX_PARTS)
2556 if (nbds_max > 1UL << (MINORBITS - part_shift))