Lines Matching defs:pos
50 static int erase_write (struct mtd_info *mtd, unsigned long pos,
66 erase.addr = pos;
79 pos, len, mtd->name);
90 ret = mtd->write(mtd, pos, len, &retlen, buf);
128 static int do_cached_write (struct mtdblk_dev *mtdblk, unsigned long pos,
137 mtd->name, pos, len);
140 return mtd->write(mtd, pos, len, &retlen, buf);
143 unsigned long sect_start = (pos/sect_size)*sect_size;
144 unsigned int offset = pos - sect_start;
155 ret = erase_write (mtd, pos, size, buf);
190 pos += size;
198 static int do_cached_read (struct mtdblk_dev *mtdblk, unsigned long pos,
207 mtd->name, pos, len);
210 return mtd->read(mtd, pos, len, &retlen, buf);
213 unsigned long sect_start = (pos/sect_size)*sect_size;
214 unsigned int offset = pos - sect_start;
229 ret = mtd->read(mtd, pos, size, &retlen, buf);
237 pos += size;