Lines Matching refs:devnum
286 if (new->devnum == -1) { in add_mtd_blktrans_dev()
288 if (d->devnum != last_devnum+1) { in add_mtd_blktrans_dev()
290 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
294 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
297 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
302 last_devnum = d->devnum; in add_mtd_blktrans_dev()
306 if (new->devnum == -1) in add_mtd_blktrans_dev()
307 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
312 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
313 (tr->part_bits && new->devnum >= 27 * 26)) in add_mtd_blktrans_dev()
345 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
350 if (new->devnum < 26) in add_mtd_blktrans_dev()
352 "%s%c", tr->name, 'a' + new->devnum); in add_mtd_blktrans_dev()
356 'a' - 1 + new->devnum / 26, in add_mtd_blktrans_dev()
357 'a' + new->devnum % 26); in add_mtd_blktrans_dev()
360 "%s%d", tr->name, new->devnum); in add_mtd_blktrans_dev()