Lines Matching refs:pos
21 unsigned long long pos; /* Offset in bytes */ member
123 ret = ops->seek(cur->base, cur->pos, extra_offset); in mtd_add_extra_offset()
146 cur->pos = 0U; in mtd_open()
177 cur->pos = offset; in mtd_seek()
180 if (((cur->base + cur->pos + (unsigned long long)offset) >= in mtd_seek()
182 ((cur->base + cur->pos + (unsigned long long)offset) < in mtd_seek()
183 cur->base + cur->pos)) { in mtd_seek()
187 cur->pos += (unsigned long long)offset; in mtd_seek()
218 cur->base + cur->pos, buffer, length); in mtd_read()
219 if ((cur->base + cur->pos + length) > cur->dev_spec->device_size) { in mtd_read()
223 ret = ops->read(cur->base + cur->pos + cur->extra_offset, buffer, in mtd_read()
230 cur->pos += *out_length; in mtd_read()