Lines Matching refs:max_part
348 static int max_part = 1; variable
349 module_param(max_part, int, 0444);
350 MODULE_PARM_DESC(max_part, "Num Minors to reserve between devices");
396 disk = brd->brd_disk = alloc_disk(max_part); in brd_alloc()
400 disk->first_minor = i * max_part; in brd_alloc()
464 brd = brd_init_one(MINOR(dev) / max_part, &new); in brd_probe()
476 if (unlikely(!max_part)) in brd_check_and_reset_par()
477 max_part = 1; in brd_check_and_reset_par()
483 if ((1U << MINORBITS) % max_part != 0) in brd_check_and_reset_par()
484 max_part = 1UL << fls(max_part); in brd_check_and_reset_par()
486 if (max_part > DISK_MAX_PARTS) { in brd_check_and_reset_par()
489 max_part = DISK_MAX_PARTS; in brd_check_and_reset_par()