Lines Matching refs:nand_chip

106 	struct nand_chip chip;
130 static void tmio_nand_hwcontrol(struct nand_chip *chip, int cmd, in tmio_nand_hwcontrol()
162 static int tmio_nand_dev_ready(struct nand_chip *chip) in tmio_nand_dev_ready()
186 static int tmio_nand_wait(struct nand_chip *nand_chip) in tmio_nand_wait() argument
188 struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(nand_chip)); in tmio_nand_wait()
202 if (unlikely(!tmio_nand_dev_ready(nand_chip))) { in tmio_nand_wait()
211 nand_status_op(nand_chip, &status); in tmio_nand_wait()
223 static u_char tmio_nand_read_byte(struct nand_chip *chip) in tmio_nand_read_byte()
243 tmio_nand_write_buf(struct nand_chip *chip, const u_char *buf, int len) in tmio_nand_write_buf()
250 static void tmio_nand_read_buf(struct nand_chip *chip, u_char *buf, int len) in tmio_nand_read_buf()
257 static void tmio_nand_enable_hwecc(struct nand_chip *chip, int mode) in tmio_nand_enable_hwecc()
266 static int tmio_nand_calculate_ecc(struct nand_chip *chip, const u_char *dat, in tmio_nand_calculate_ecc()
288 static int tmio_nand_correct_data(struct nand_chip *chip, unsigned char *buf, in tmio_nand_correct_data()
358 static int tmio_attach_chip(struct nand_chip *chip) in tmio_attach_chip()
387 struct nand_chip *nand_chip; in tmio_probe() local
405 nand_chip = &tmio->chip; in tmio_probe()
406 mtd = nand_to_mtd(nand_chip); in tmio_probe()
412 nand_chip->controller = &tmio->controller; in tmio_probe()
428 nand_chip->legacy.IO_ADDR_R = tmio->fcr; in tmio_probe()
429 nand_chip->legacy.IO_ADDR_W = tmio->fcr; in tmio_probe()
432 nand_chip->legacy.cmd_ctrl = tmio_nand_hwcontrol; in tmio_probe()
433 nand_chip->legacy.dev_ready = tmio_nand_dev_ready; in tmio_probe()
434 nand_chip->legacy.read_byte = tmio_nand_read_byte; in tmio_probe()
435 nand_chip->legacy.write_buf = tmio_nand_write_buf; in tmio_probe()
436 nand_chip->legacy.read_buf = tmio_nand_read_buf; in tmio_probe()
439 nand_chip->badblock_pattern = data->badblock_pattern; in tmio_probe()
442 nand_chip->legacy.chip_delay = 15; in tmio_probe()
452 nand_chip->legacy.waitfunc = tmio_nand_wait; in tmio_probe()
455 retval = nand_scan(nand_chip, 1); in tmio_probe()
468 nand_cleanup(nand_chip); in tmio_probe()
478 struct nand_chip *chip = &tmio->chip; in tmio_remove()