Lines Matching refs:nand
57 #define ESMT_OOB_SECTION_SIZE(nand) \ argument
58 (nanddev_per_page_oobsize(nand) / ESMT_OOB_SECTION_COUNT)
59 #define ESMT_OOB_FREE_SIZE(nand) \ argument
60 (ESMT_OOB_SECTION_SIZE(nand) / 2)
61 #define ESMT_OOB_ECC_SIZE(nand) \ argument
62 (ESMT_OOB_SECTION_SIZE(nand) - ESMT_OOB_FREE_SIZE(nand))
68 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_ecc() local
73 region->offset = section * ESMT_OOB_SECTION_SIZE(nand) + in f50l1g41lb_ooblayout_ecc()
74 ESMT_OOB_FREE_SIZE(nand); in f50l1g41lb_ooblayout_ecc()
75 region->length = ESMT_OOB_ECC_SIZE(nand); in f50l1g41lb_ooblayout_ecc()
83 struct nand_device *nand = mtd_to_nanddev(mtd); in f50l1g41lb_ooblayout_free() local
92 region->offset = section * ESMT_OOB_SECTION_SIZE(nand) + 2; in f50l1g41lb_ooblayout_free()