Lines Matching defs:part_shift
169 static int part_shift;
1982 (MINORMASK >> part_shift) + 1, GFP_KERNEL);
2016 disk->first_minor = index << part_shift;
2017 disk->minors = 1 << part_shift;
2126 * sysfs files/links, since index << part_shift might overflow, or
2129 if (index < 0 || index > MINORMASK >> part_shift) {
2691 part_shift = 0;
2693 part_shift = fls(max_part);
2696 * Adjust max_part according to part_shift as it is exported
2703 max_part = (1UL << part_shift) - 1;
2706 if ((1UL << part_shift) > DISK_MAX_PARTS)
2709 if (nbds_max > 1UL << (MINORBITS - part_shift))