Lines Matching defs:mtd
76 static inline struct denali_nand_info *mtd_to_denali(struct mtd_info *mtd) in mtd_to_denali()
216 static void denali_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in denali_read_buf()
226 static void denali_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in denali_write_buf()
236 static void denali_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) in denali_read_buf16()
247 static void denali_write_buf16(struct mtd_info *mtd, const uint8_t *buf, in denali_write_buf16()
259 static uint8_t denali_read_byte(struct mtd_info *mtd) in denali_read_byte()
268 static void denali_write_byte(struct mtd_info *mtd, uint8_t byte) in denali_write_byte()
273 static uint16_t denali_read_word(struct mtd_info *mtd) in denali_read_word()
282 static void denali_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) in denali_cmd_ctrl()
304 static int denali_dev_ready(struct mtd_info *mtd) in denali_dev_ready()
311 static int denali_check_erased_page(struct mtd_info *mtd, in denali_check_erased_page()
349 static int denali_hw_ecc_fixup(struct mtd_info *mtd, in denali_hw_ecc_fixup()
384 static int denali_sw_ecc_fixup(struct mtd_info *mtd, in denali_sw_ecc_fixup()
627 static void denali_oob_xfer(struct mtd_info *mtd, struct nand_chip *chip, in denali_oob_xfer()
687 static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_page_raw()
762 static int denali_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_oob()
770 static int denali_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_oob()
786 static int denali_read_page(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_page()
818 static int denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_page_raw()
896 static int denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_page()
905 static void denali_select_chip(struct mtd_info *mtd, int chip) in denali_select_chip()
912 static int denali_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) in denali_waitfunc()
923 static int denali_erase(struct mtd_info *mtd, int page) in denali_erase()
940 static int denali_setup_data_interface(struct mtd_info *mtd, int chipnr, in denali_setup_data_interface()
1110 static int denali_ecc_setup(struct mtd_info *mtd, struct nand_chip *chip, in denali_ecc_setup()
1139 static int denali_ooblayout_ecc(struct mtd_info *mtd, int section, in denali_ooblayout_ecc()
1154 static int denali_ooblayout_free(struct mtd_info *mtd, int section, in denali_ooblayout_free()
1177 struct mtd_info *mtd = nand_to_mtd(chip); in denali_multidev_fixup() local
1228 struct mtd_info *mtd = nand_to_mtd(chip); in denali_init() local