Lines Matching refs:nr_minors
236 static unsigned int nr_minors; variable
448 if (end > nr_minors) { in xlbd_reserve_minors()
457 if (end > nr_minors) { in xlbd_reserve_minors()
460 BITS_TO_LONGS(nr_minors) * sizeof(*bitmap)); in xlbd_reserve_minors()
462 nr_minors = BITS_TO_LONGS(end) * BITS_PER_LONG; in xlbd_reserve_minors()
484 BUG_ON(end > nr_minors); in xlbd_release_minors()
1077 int nr_minors = 1; in xlvbd_alloc_gendisk() local
1114 nr_minors = nr_parts; in xlvbd_alloc_gendisk()
1116 err = xlbd_reserve_minors(minor, nr_minors); in xlvbd_alloc_gendisk()
1152 if (nr_minors > 1) in xlvbd_alloc_gendisk()
1160 gd->minors = nr_minors; in xlvbd_alloc_gendisk()
1180 xlbd_release_minors(minor, nr_minors); in xlvbd_alloc_gendisk()