Lines Matching defs:part_shift
155 static int part_shift;
1778 disk = alloc_disk(1 << part_shift);
1789 (MINORMASK >> part_shift) + 1, GFP_KERNEL);
1837 disk->first_minor = index << part_shift;
1936 * sysfs files/links, since index << part_shift might overflow, or
1939 if (index < 0 || index > MINORMASK >> part_shift) {
2502 part_shift = 0;
2504 part_shift = fls(max_part);
2507 * Adjust max_part according to part_shift as it is exported
2514 max_part = (1UL << part_shift) - 1;
2517 if ((1UL << part_shift) > DISK_MAX_PARTS)
2520 if (nbds_max > 1UL << (MINORBITS - part_shift))