Lines Matching refs:max_part
216 static int max_part = 1;
217 module_param(max_part, int, 0444);
218 MODULE_PARM_DESC(max_part, "Num Minors to reserve between devices");
313 disk->first_minor = i * max_part;
314 disk->minors = max_part;
335 brd_alloc(MINOR(dev) / max_part);
354 if (unlikely(!max_part))
355 max_part = 1;
358 * make sure 'max_part' can be divided exactly by (1U << MINORBITS),
361 if ((1U << MINORBITS) % max_part != 0)
362 max_part = 1UL << fls(max_part);
364 if (max_part > DISK_MAX_PARTS) {
365 pr_info("brd: max_part can't be larger than %d, reset max_part = %d.\n",
367 max_part = DISK_MAX_PARTS;
386 * If (X / max_part) was not already created it will be created