Lines Matching refs:off
216 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_emubd_read() argument
219 (void*)cfg, block, off, buffer, size); in lfs_emubd_read()
224 LFS_ASSERT(off % bd->cfg->read_size == 0); in lfs_emubd_read()
226 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_emubd_read()
239 memcpy(buffer, &b->data[off], size); in lfs_emubd_read()
266 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_emubd_prog() argument
269 (void*)cfg, block, off, buffer, size); in lfs_emubd_prog()
274 LFS_ASSERT(off % bd->cfg->prog_size == 0); in lfs_emubd_prog()
276 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_emubd_prog()
303 LFS_ASSERT(b->data[off+i] == bd->cfg->erase_value); in lfs_emubd_prog()
308 memcpy(&b->data[off], buffer, size); in lfs_emubd_prog()
313 (off_t)block*bd->cfg->erase_size + (off_t)off, in lfs_emubd_prog()