Lines Matching refs:memorg
148 struct nand_memory_organization *memorg; in nand_onfi_detect() local
157 memorg = nanddev_get_memorg(&chip->base); in nand_onfi_detect()
244 memorg->pagesize = le32_to_cpu(p->byte_per_page); in nand_onfi_detect()
245 mtd->writesize = memorg->pagesize; in nand_onfi_detect()
252 memorg->pages_per_eraseblock = in nand_onfi_detect()
254 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; in nand_onfi_detect()
256 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_onfi_detect()
257 mtd->oobsize = memorg->oobsize; in nand_onfi_detect()
259 memorg->luns_per_target = p->lun_count; in nand_onfi_detect()
260 memorg->planes_per_lun = 1 << p->interleaved_bits; in nand_onfi_detect()
263 memorg->eraseblocks_per_lun = in nand_onfi_detect()
265 memorg->max_bad_eraseblocks_per_lun = le32_to_cpu(p->blocks_per_lun); in nand_onfi_detect()
266 memorg->bits_per_cell = p->bits_per_cell; in nand_onfi_detect()