Lines Matching refs:nand_chip
95 struct nand_chip nand_chip; member
105 #define to_tango_chip(ptr) container_of(ptr, struct tango_chip, nand_chip)
116 static void tango_cmd_ctrl(struct nand_chip *chip, int dat, unsigned int ctrl) in tango_cmd_ctrl()
127 static int tango_dev_ready(struct nand_chip *chip) in tango_dev_ready()
134 static u8 tango_read_byte(struct nand_chip *chip) in tango_read_byte()
141 static void tango_read_buf(struct nand_chip *chip, u8 *buf, int len) in tango_read_buf()
148 static void tango_write_buf(struct nand_chip *chip, const u8 *buf, int len) in tango_write_buf()
155 static void tango_select_chip(struct nand_chip *chip, int idx) in tango_select_chip()
175 static int check_erased_page(struct nand_chip *chip, u8 *buf) in check_erased_page()
202 static int decode_error_report(struct nand_chip *chip) in decode_error_report()
275 static int tango_read_page(struct nand_chip *chip, u8 *buf, in tango_read_page()
298 static int tango_write_page(struct nand_chip *chip, const u8 *buf, in tango_write_page()
321 static void aux_read(struct nand_chip *chip, u8 **buf, int len, int *pos) in aux_read()
334 static void aux_write(struct nand_chip *chip, const u8 **buf, int len, int *pos) in aux_write()
366 static void raw_read(struct nand_chip *chip, u8 *buf, u8 *oob) in raw_read()
393 static void raw_write(struct nand_chip *chip, const u8 *buf, const u8 *oob) in raw_write()
420 static int tango_read_page_raw(struct nand_chip *chip, u8 *buf, in tango_read_page_raw()
428 static int tango_write_page_raw(struct nand_chip *chip, const u8 *buf, in tango_write_page_raw()
436 static int tango_read_oob(struct nand_chip *chip, int page) in tango_read_oob()
443 static int tango_write_oob(struct nand_chip *chip, int page) in tango_write_oob()
452 struct nand_chip *chip = mtd_to_nand(mtd); in oob_ecc()
479 static int tango_set_timings(struct nand_chip *chip, int csline, in tango_set_timings()
510 static int tango_attach_chip(struct nand_chip *chip) in tango_attach_chip()
538 struct nand_chip *chip; in chip_init()
561 chip = &tchip->nand_chip; in chip_init()
610 nand_release(&nfc->chips[cs]->nand_chip); in tango_nand_remove()