Lines Matching defs:max_part
290 static int max_part = 1;
291 module_param(max_part, int, 0444);
292 MODULE_PARM_DESC(max_part, "Num Minors to reserve between devices");
343 disk->first_minor = i * max_part;
344 disk->minors = max_part;
379 brd_alloc(MINOR(dev) / max_part);
399 if (unlikely(!max_part))
400 max_part = 1;
403 * make sure 'max_part' can be divided exactly by (1U << MINORBITS),
406 if ((1U << MINORBITS) % max_part != 0)
407 max_part = 1UL << fls(max_part);
409 if (max_part > DISK_MAX_PARTS) {
410 pr_info("brd: max_part can't be larger than %d, reset max_part = %d.\n",
412 max_part = DISK_MAX_PARTS;
441 * If (X / max_part) was not already created it will be created