Lines Matching refs:mtd

89 static void bcm47xxnflash_ops_bcm4706_read(struct mtd_info *mtd, uint8_t *buf,  in bcm47xxnflash_ops_bcm4706_read()  argument
92 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_read()
139 static void bcm47xxnflash_ops_bcm4706_write(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_write() argument
142 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_write()
173 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct mtd_info *mtd, int cmd, in bcm47xxnflash_ops_bcm4706_cmd_ctrl() argument
176 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_cmd_ctrl()
194 static void bcm47xxnflash_ops_bcm4706_select_chip(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_select_chip() argument
200 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct mtd_info *mtd) in bcm47xxnflash_ops_bcm4706_dev_ready() argument
202 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_dev_ready()
215 static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_cmdfunc() argument
219 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_cmdfunc()
232 nand_chip->cmd_ctrl(mtd, command, NAND_CTRL_CLE); in bcm47xxnflash_ops_bcm4706_cmdfunc()
235 nand_wait_ready(mtd); in bcm47xxnflash_ops_bcm4706_cmdfunc()
274 b47n->curr_column += mtd->writesize; in bcm47xxnflash_ops_bcm4706_cmdfunc()
313 static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct mtd_info *mtd) in bcm47xxnflash_ops_bcm4706_read_byte() argument
315 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_read_byte()
333 bcm47xxnflash_ops_bcm4706_read(mtd, (u8 *)&tmp, 4); in bcm47xxnflash_ops_bcm4706_read_byte()
341 static void bcm47xxnflash_ops_bcm4706_read_buf(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_read_buf() argument
344 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_read_buf()
350 bcm47xxnflash_ops_bcm4706_read(mtd, buf, len); in bcm47xxnflash_ops_bcm4706_read_buf()
357 static void bcm47xxnflash_ops_bcm4706_write_buf(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_write_buf() argument
360 struct nand_chip *nand_chip = (struct nand_chip *)mtd->priv; in bcm47xxnflash_ops_bcm4706_write_buf()
365 bcm47xxnflash_ops_bcm4706_write(mtd, buf, len); in bcm47xxnflash_ops_bcm4706_write_buf()
424 err = nand_scan(&b47n->mtd, 1); in bcm47xxnflash_ops_bcm4706_init()