Lines Matching refs:devnum
287 if (new->devnum == -1) { in add_mtd_blktrans_dev()
289 if (d->devnum != last_devnum+1) { in add_mtd_blktrans_dev()
291 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
295 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev()
298 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev()
303 last_devnum = d->devnum; in add_mtd_blktrans_dev()
307 if (new->devnum == -1) in add_mtd_blktrans_dev()
308 new->devnum = last_devnum+1; in add_mtd_blktrans_dev()
313 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
314 (tr->part_bits && new->devnum >= 27 * 26)) in add_mtd_blktrans_dev()
346 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
351 if (new->devnum < 26) in add_mtd_blktrans_dev()
353 "%s%c", tr->name, 'a' + new->devnum); in add_mtd_blktrans_dev()
357 'a' - 1 + new->devnum / 26, in add_mtd_blktrans_dev()
358 'a' + new->devnum % 26); in add_mtd_blktrans_dev()
361 "%s%d", tr->name, new->devnum); in add_mtd_blktrans_dev()