Lines Matching refs:devnum
288 if (new->devnum == -1) { in add_mtd_blktrans_dev()
290 if (d->devnum != last_devnum+1) { in add_mtd_blktrans_dev()
292 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
296 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
299 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
304 last_devnum = d->devnum; in add_mtd_blktrans_dev()
308 if (new->devnum == -1) in add_mtd_blktrans_dev()
309 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
314 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
315 (tr->part_bits && new->devnum >= 27 * 26)) in add_mtd_blktrans_dev()
353 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
358 if (new->devnum < 26) in add_mtd_blktrans_dev()
360 "%s%c", tr->name, 'a' + new->devnum); in add_mtd_blktrans_dev()
364 'a' - 1 + new->devnum / 26, in add_mtd_blktrans_dev()
365 'a' + new->devnum % 26); in add_mtd_blktrans_dev()
368 "%s%d", tr->name, new->devnum); in add_mtd_blktrans_dev()