Lines Matching refs:size
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()
225 LFS_ASSERT(size % 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()
244 size); in lfs_emubd_read()
248 bd->readed += 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()
275 LFS_ASSERT(size % bd->cfg->prog_size == 0); in lfs_emubd_prog()
276 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_emubd_prog()
302 for (lfs_off_t i = 0; i < size; i++) { in lfs_emubd_prog()
308 memcpy(&b->data[off], buffer, size); in lfs_emubd_prog()
321 ssize_t res2 = write(bd->disk->fd, buffer, size); in lfs_emubd_prog()
330 bd->proged += size; in lfs_emubd_prog()