Home
last modified time | relevance | path

Searched refs:memorg (Results 1 – 16 of 16) sorted by relevance

/linux/include/linux/mtd/
A Dnand.h430 return nand->memorg.bits_per_cell; in nanddev_bits_per_cell()
441 return nand->memorg.pagesize; in nanddev_page_size()
453 return nand->memorg.oobsize; in nanddev_per_page_oobsize()
479 nand->memorg.luns_per_target; in nanddev_pages_per_target()
490 return nand->memorg.pagesize * nand->memorg.pages_per_eraseblock; in nanddev_eraseblock_size()
514 return nand->memorg.eraseblocks_per_lun * nand->memorg.luns_per_target; in nanddev_eraseblocks_per_target()
528 nand->memorg.pagesize; in nanddev_target_size()
539 return nand->memorg.ntargets; in nanddev_ntargets()
550 return nand->memorg.ntargets * nand->memorg.luns_per_target * in nanddev_neraseblocks()
577 return &nand->memorg; in nanddev_get_memorg()
[all …]
A Dspinand.h342 struct nand_memory_organization memorg; member
382 .memorg = __memorg, \
/linux/drivers/mtd/nand/raw/
A Dnand_samsung.c16 struct nand_memory_organization *memorg; in samsung_nand_decode_id() local
18 memorg = nanddev_get_memorg(&chip->base); in samsung_nand_decode_id()
27 mtd->writesize = memorg->pagesize; in samsung_nand_decode_id()
34 memorg->oobsize = 128; in samsung_nand_decode_id()
37 memorg->oobsize = 218; in samsung_nand_decode_id()
40 memorg->oobsize = 400; in samsung_nand_decode_id()
43 memorg->oobsize = 436; in samsung_nand_decode_id()
46 memorg->oobsize = 512; in samsung_nand_decode_id()
49 memorg->oobsize = 640; in samsung_nand_decode_id()
62 mtd->oobsize = memorg->oobsize; in samsung_nand_decode_id()
[all …]
A Dnand_jedec.c28 struct nand_memory_organization *memorg; in nand_jedec_detect() local
37 memorg = nanddev_get_memorg(&chip->base); in nand_jedec_detect()
98 memorg->pagesize = le32_to_cpu(p->byte_per_page); in nand_jedec_detect()
99 mtd->writesize = memorg->pagesize; in nand_jedec_detect()
102 memorg->pages_per_eraseblock = in nand_jedec_detect()
104 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; in nand_jedec_detect()
107 mtd->oobsize = memorg->oobsize; in nand_jedec_detect()
109 memorg->luns_per_target = p->lun_count; in nand_jedec_detect()
110 memorg->planes_per_lun = 1 << p->multi_plane_addr; in nand_jedec_detect()
113 memorg->eraseblocks_per_lun = in nand_jedec_detect()
[all …]
A Dnand_hynix.c423 memorg->oobsize = 2048; in hynix_nand_extract_oobsize()
426 memorg->oobsize = 1664; in hynix_nand_extract_oobsize()
432 memorg->oobsize = 640; in hynix_nand_extract_oobsize()
447 memorg->oobsize = 128; in hynix_nand_extract_oobsize()
450 memorg->oobsize = 224; in hynix_nand_extract_oobsize()
453 memorg->oobsize = 448; in hynix_nand_extract_oobsize()
456 memorg->oobsize = 64; in hynix_nand_extract_oobsize()
459 memorg->oobsize = 32; in hynix_nand_extract_oobsize()
462 memorg->oobsize = 16; in hynix_nand_extract_oobsize()
465 memorg->oobsize = 640; in hynix_nand_extract_oobsize()
[all …]
A Dnand_amd.c14 struct nand_memory_organization *memorg; in amd_nand_decode_id() local
16 memorg = nanddev_get_memorg(&chip->base); in amd_nand_decode_id()
28 memorg->pagesize == 512) { in amd_nand_decode_id()
29 memorg->pages_per_eraseblock = 256; in amd_nand_decode_id()
30 memorg->pages_per_eraseblock <<= ((chip->id.data[3] & 0x03) << 1); in amd_nand_decode_id()
31 mtd->erasesize = memorg->pages_per_eraseblock * in amd_nand_decode_id()
32 memorg->pagesize; in amd_nand_decode_id()
A Dnand_onfi.c148 struct nand_memory_organization *memorg; in nand_onfi_detect() local
157 memorg = nanddev_get_memorg(&chip->base); in nand_onfi_detect()
245 memorg->pagesize = le32_to_cpu(p->byte_per_page); in nand_onfi_detect()
246 mtd->writesize = memorg->pagesize; in nand_onfi_detect()
253 memorg->pages_per_eraseblock = in nand_onfi_detect()
255 mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; in nand_onfi_detect()
258 mtd->oobsize = memorg->oobsize; in nand_onfi_detect()
260 memorg->luns_per_target = p->lun_count; in nand_onfi_detect()
261 memorg->planes_per_lun = 1 << p->interleaved_bits; in nand_onfi_detect()
264 memorg->eraseblocks_per_lun = in nand_onfi_detect()
[all …]
A Dnand_toshiba.c151 struct nand_memory_organization *memorg; in toshiba_nand_decode_id() local
153 memorg = nanddev_get_memorg(&chip->base); in toshiba_nand_decode_id()
168 memorg->oobsize = 32 * memorg->pagesize >> 9; in toshiba_nand_decode_id()
169 mtd->oobsize = memorg->oobsize; in toshiba_nand_decode_id()
A Dnand_base.c4768 memorg->pagesize; in nand_decode_ext_id()
4793 memorg->oobsize = memorg->pagesize / 32; in nand_decode_id()
4797 memorg->bits_per_cell = 1; in nand_decode_id()
4842 memorg->eraseblocks_per_lun = in find_full_id_nand()
4844 memorg->pagesize * in find_full_id_nand()
4938 memorg->planes_per_lun = 1; in nand_detect()
4939 memorg->luns_per_target = 1; in nand_detect()
5043 memorg->eraseblocks_per_lun = in nand_detect()
5045 memorg->pagesize * in nand_detect()
5388 memorg->ntargets = maxchips; in nand_scan_ident()
[all …]
A Ddenali.c961 struct nand_memory_organization *memorg; in denali_multidev_fixup() local
963 memorg = nanddev_get_memorg(&chip->base); in denali_multidev_fixup()
993 memorg->pagesize <<= 1; in denali_multidev_fixup()
994 memorg->oobsize <<= 1; in denali_multidev_fixup()
A Ddiskonchip.c909 struct nand_memory_organization *memorg; in nftl_partscan() local
918 memorg = nanddev_get_memorg(&this->base); in nftl_partscan()
966 memorg->pages_per_eraseblock <<= (0xff - mh->UnitSizeFactor); in nftl_partscan()
A Dnandsim.c2342 struct nand_memory_organization *memorg; in ns_init_module() local
2345 memorg = nanddev_get_memorg(&chip->base); in ns_init_module()
2355 memorg->eraseblocks_per_lun = 1 << overridesize; in ns_init_module()
/linux/drivers/mtd/nand/
A Dcore.c195 if (!nand->memorg.max_bad_eraseblocks_per_lun) in nanddev_mtd_max_bad_blocks()
357 if (!memorg->bits_per_cell || !memorg->pagesize || in nanddev_init()
358 !memorg->pages_per_eraseblock || !memorg->eraseblocks_per_lun || in nanddev_init()
359 !memorg->planes_per_lun || !memorg->luns_per_target || in nanddev_init()
360 !memorg->ntargets) in nanddev_init()
364 fls(memorg->pages_per_eraseblock - 1); in nanddev_init()
370 mtd->type = memorg->bits_per_cell == 1 ? in nanddev_init()
373 mtd->erasesize = memorg->pagesize * memorg->pages_per_eraseblock; in nanddev_init()
374 mtd->writesize = memorg->pagesize; in nanddev_init()
375 mtd->writebufsize = memorg->pagesize; in nanddev_init()
[all …]
/linux/drivers/mtd/nand/spi/
A Dcore.c56 spinand->cur_target >= nand->memorg.ntargets)) in spinand_get_cfg()
69 spinand->cur_target >= nand->memorg.ntargets)) in spinand_set_cfg()
122 if (WARN_ON(target >= nand->memorg.ntargets)) in spinand_select_target()
128 if (nand->memorg.ntargets == 1) { in spinand_select_target()
147 for (target = 0; target < nand->memorg.ntargets; target++) { in spinand_read_cfg()
171 nand->memorg.ntargets, in spinand_init_cfg_cache()
850 info.offset = plane << fls(nand->memorg.pagesize); in spinand_create_dirmap()
878 nand->memorg.planes_per_lun, in spinand_create_dirmaps()
883 for (i = 0; i < nand->memorg.planes_per_lun; i++) { in spinand_create_dirmaps()
1046 nand->memorg = table[i].memorg; in spinand_match_and_init()
[all …]
A Dmicron.c95 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_ecc()
110 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_free()
A Dwinbond.c108 for (i = 0; i < nand->memorg.ntargets; i++) { in winbond_spinand_init()

Completed in 45 milliseconds