• Home
  • Raw
  • Download

Lines Matching refs:pos

22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos)  in nanddev_isbad()  argument
28 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_isbad()
32 if (nand->ops->isbad(nand, pos)) in nanddev_isbad()
47 return nand->ops->isbad(nand, pos); in nanddev_isbad()
61 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() argument
67 if (nanddev_isbad(nand, pos)) in nanddev_markbad()
70 ret = nand->ops->markbad(nand, pos); in nanddev_markbad()
73 nanddev_pos_to_offs(nand, pos), ret); in nanddev_markbad()
78 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_markbad()
102 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() argument
111 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_isreserved()
126 int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase() argument
128 if (nanddev_isbad(nand, pos) || nanddev_isreserved(nand, pos)) { in nanddev_erase()
130 nanddev_pos_to_offs(nand, pos)); in nanddev_erase()
134 return nand->ops->erase(nand, pos); in nanddev_erase()
156 struct nand_pos pos, last; in nanddev_mtd_erase() local
159 nanddev_offs_to_pos(nand, einfo->addr, &pos); in nanddev_mtd_erase()
161 while (nanddev_pos_cmp(&pos, &last) <= 0) { in nanddev_mtd_erase()
162 ret = nanddev_erase(nand, &pos); in nanddev_mtd_erase()
164 einfo->fail_addr = nanddev_pos_to_offs(nand, &pos); in nanddev_mtd_erase()
169 nanddev_pos_next_eraseblock(nand, &pos); in nanddev_mtd_erase()
192 struct nand_pos pos, end; in nanddev_mtd_max_bad_blocks() local
198 nanddev_offs_to_pos(nand, offs, &pos); in nanddev_mtd_max_bad_blocks()
201 for (nanddev_offs_to_pos(nand, offs, &pos); in nanddev_mtd_max_bad_blocks()
202 nanddev_pos_cmp(&pos, &end) < 0; in nanddev_mtd_max_bad_blocks()
203 nanddev_pos_next_lun(nand, &pos)) in nanddev_mtd_max_bad_blocks()