Lines Matching defs:mtd
121 struct mtd_info mtd; member
136 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read()
145 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write()
154 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set()
160 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear()
166 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr()
174 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd()
182 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page()
190 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page()
198 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id()
206 static inline void mpc5121_nfc_send_read_status(struct mtd_info *mtd) in mpc5121_nfc_send_read_status()
216 struct mtd_info *mtd = data; in mpc5121_nfc_irq() local
227 static void mpc5121_nfc_done(struct mtd_info *mtd) in mpc5121_nfc_done()
247 static void mpc5121_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) in mpc5121_nfc_addr_cycle()
268 static void mpc5121_nfc_select_chip(struct mtd_info *mtd, int chip) in mpc5121_nfc_select_chip()
282 static int ads5121_chipselect_init(struct mtd_info *mtd) in ads5121_chipselect_init()
304 static void ads5121_select_chip(struct mtd_info *mtd, int chip) in ads5121_select_chip()
323 static int mpc5121_nfc_dev_ready(struct mtd_info *mtd) in mpc5121_nfc_dev_ready()
333 static void mpc5121_nfc_command(struct mtd_info *mtd, unsigned command, in mpc5121_nfc_command()
406 static void mpc5121_nfc_copy_spare(struct mtd_info *mtd, uint offset, in mpc5121_nfc_copy_spare()
458 static void mpc5121_nfc_buf_copy(struct mtd_info *mtd, u_char *buf, int len, in mpc5121_nfc_buf_copy()
498 static void mpc5121_nfc_read_buf(struct mtd_info *mtd, u_char *buf, int len) in mpc5121_nfc_read_buf()
504 static void mpc5121_nfc_write_buf(struct mtd_info *mtd, in mpc5121_nfc_write_buf()
511 static u8 mpc5121_nfc_read_byte(struct mtd_info *mtd) in mpc5121_nfc_read_byte()
521 static u16 mpc5121_nfc_read_word(struct mtd_info *mtd) in mpc5121_nfc_read_word()
537 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) in mpc5121_nfc_read_hw_config()
616 static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd) in mpc5121_nfc_free()
635 struct mtd_info *mtd; in mpc5121_nfc_probe() local
832 struct mtd_info *mtd = dev_get_drvdata(dev); in mpc5121_nfc_remove() local