Lines Matching refs:size
66 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_filebd_read() argument
69 (void*)cfg, block, off, buffer, size); in lfs_filebd_read()
75 LFS_ASSERT(size % bd->cfg->read_size == 0); in lfs_filebd_read()
76 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_filebd_read()
79 memset(buffer, 0, size); in lfs_filebd_read()
90 ssize_t res2 = read(bd->fd, buffer, size); in lfs_filebd_read()
102 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_filebd_prog() argument
105 (void*)cfg, block, off, buffer, size); in lfs_filebd_prog()
111 LFS_ASSERT(size % bd->cfg->prog_size == 0); in lfs_filebd_prog()
112 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_filebd_prog()
123 ssize_t res2 = write(bd->fd, buffer, size); in lfs_filebd_prog()