Lines Matching defs:max_part
346 static int max_part = 1;
347 module_param(max_part, int, 0444);
348 MODULE_PARM_DESC(max_part, "Num Minors to reserve between devices");
394 disk = brd->brd_disk = alloc_disk(max_part);
398 disk->first_minor = i * max_part;
462 brd = brd_init_one(MINOR(dev) / max_part, &new);
474 if (unlikely(!max_part))
475 max_part = 1;
478 * make sure 'max_part' can be divided exactly by (1U << MINORBITS),
481 if ((1U << MINORBITS) % max_part != 0)
482 max_part = 1UL << fls(max_part);
484 if (max_part > DISK_MAX_PARTS) {
485 pr_info("brd: max_part can't be larger than %d, reset max_part = %d.\n",
487 max_part = DISK_MAX_PARTS;
507 * If (X / max_part) was not already created it will be created