• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/ar71xx/files/drivers/mtd/nand/

Lines Matching refs:chip

127 /***** NAND chip internal functions *****/
129 static int ath79_rw_oob(struct mtd_info *mtd, struct nand_chip *chip, int rw,
134 struct nand_chip *chip = mtd->priv;
135 uint8_t *p = chip->oob_poi;
148 struct nand_chip *chip = mtd->priv;
149 uint8_t *p = chip->oob_poi;
152 ath79_rw_oob(mtd, chip, 1 /*read */ , page);
195 static int ath79_rw_oob(struct mtd_info *mtd, struct nand_chip *chip, int rw,
204 pa = dma_map_single(NULL, chip->oob_poi, mtd->oobsize, dir);
258 status = chip->waitfunc(mtd, chip); // check device status for write OOB
293 static int ath79_rw_page(struct mtd_info *mtd, struct nand_chip *chip, int rw,
332 iowrite32(mtd->writesize + chip->ecc.layout->eccpos[0],
344 dma_map_single(NULL, chip->oob_poi, len - mtd->writesize,
394 status = chip->waitfunc(mtd, chip); // check device status for write transaction
453 /***** NAND chip private APIs ***********/
582 struct nand_chip *chip = mtd->priv;
583 uint8_t *p = chip->oob_poi;
585 ath79_rw_oob(mtd, chip, 1 /*read */ , ofs >> chip->page_shift);
593 static int ath79_read_oob(struct mtd_info *mtd, struct nand_chip *chip,
596 ath79_rw_oob(mtd, chip, 1 /*read */ , page);
601 static int ath79_write_oob(struct mtd_info *mtd, struct nand_chip *chip,
604 return ath79_rw_oob(mtd, chip, 0 /*write */ , page);
607 static int ath79_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
610 return ath79_rw_page(mtd, chip, 1 /*read */ , buf,
614 static int ath79_read_page(struct mtd_info *mtd, struct nand_chip *chip,
617 return ath79_rw_page(mtd, chip, 1 /*read */ , buf, mtd->writesize,
621 static int ath79_write_page(struct mtd_info *mtd, struct nand_chip *chip,
627 ath79_rw_page(mtd, chip, 0 /*write */ , (uint8_t *) buf,
631 ath79_rw_oob(mtd, chip, 0 /*write */ , page);
632 ath79_rw_page(mtd, chip, 0 /*write */ , (uint8_t *) buf,
636 status = chip->waitfunc(mtd, chip);
642 ath79_rw_page(mtd, chip, 1 /*read */ , ath79_priv->page_buf,
772 /* ath79_nand chip private functions */
855 /* ath79_nand chip private ECC functions */