Lines Matching defs:pos
44 static int erase_write (struct mtd_info *mtd, unsigned long pos,
54 erase.addr = pos;
61 pos, len, mtd->name);
69 ret = mtd_write(mtd, pos, len, &retlen, buf);
110 static int do_cached_write (struct mtdblk_dev *mtdblk, unsigned long pos,
119 mtd->name, pos, len);
122 return mtd_write(mtd, pos, len, &retlen, buf);
125 unsigned long sect_start = (pos/sect_size)*sect_size;
126 unsigned int offset = pos - sect_start;
137 ret = erase_write (mtd, pos, size, buf);
172 pos += size;
180 static int do_cached_read (struct mtdblk_dev *mtdblk, unsigned long pos,
189 mtd->name, pos, len);
192 ret = mtd_read(mtd, pos, len, &retlen, buf);
199 unsigned long sect_start = (pos/sect_size)*sect_size;
200 unsigned int offset = pos - sect_start;
215 ret = mtd_read(mtd, pos, size, &retlen, buf);
223 pos += size;