Lines Matching refs:memorg
198 if (!nand->memorg.max_bad_eraseblocks_per_lun) in nanddev_mtd_max_bad_blocks()
207 max_bb += nand->memorg.max_bad_eraseblocks_per_lun; in nanddev_mtd_max_bad_blocks()
356 struct nand_memory_organization *memorg = nanddev_get_memorg(nand); in nanddev_init() local
364 if (!memorg->bits_per_cell || !memorg->pagesize || in nanddev_init()
365 !memorg->pages_per_eraseblock || !memorg->eraseblocks_per_lun || in nanddev_init()
366 !memorg->planes_per_lun || !memorg->luns_per_target || in nanddev_init()
367 !memorg->ntargets) in nanddev_init()
371 fls(memorg->pages_per_eraseblock - 1); in nanddev_init()
372 nand->rowconv.lun_addr_shift = fls(memorg->eraseblocks_per_lun - 1) + in nanddev_init()
377 mtd->type = memorg->bits_per_cell == 1 ? in nanddev_init()
380 mtd->erasesize = memorg->pagesize * memorg->pages_per_eraseblock; in nanddev_init()
381 mtd->writesize = memorg->pagesize; in nanddev_init()
382 mtd->writebufsize = memorg->pagesize; in nanddev_init()
383 mtd->oobsize = memorg->oobsize; in nanddev_init()