Lines Matching refs:cache_size
43 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero()
118 lfs->cfg->cache_size); in lfs_bd_read()
241 off < pcache->off + lfs->cfg->cache_size) { in lfs_bd_prog()
244 lfs->cfg->cache_size - (off-pcache->off)); in lfs_bd_prog()
252 if (pcache->size == lfs->cfg->cache_size) { in lfs_bd_prog()
848 lfs->cfg->cache_size); in lfs_dir_getread()
1777 if (noff >= end || noff >= lfs->pcache.off + lfs->cfg->cache_size) { in lfs_dir_commitcrc()
2421 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit()
3199 file->cache.buffer = lfs_malloc(lfs->cfg->cache_size);
3216 file->cache.size = lfs->cfg->cache_size;
3323 memcpy(file->cache.buffer, lfs->pcache.buffer, lfs->cfg->cache_size);
3790 file->cache.size = lfs->cfg->cache_size;
4232 LFS_ASSERT(lfs->cfg->cache_size != 0);
4236 LFS_ASSERT(lfs->cfg->cache_size % lfs->cfg->read_size == 0);
4237 LFS_ASSERT(lfs->cfg->cache_size % lfs->cfg->prog_size == 0);
4238 LFS_ASSERT(lfs->cfg->block_size % lfs->cfg->cache_size == 0);
4277 lfs->rcache.buffer = lfs_malloc(lfs->cfg->cache_size);
4288 lfs->pcache.buffer = lfs_malloc(lfs->cfg->cache_size);
4334 || lfs->cfg->inline_max <= lfs->cfg->cache_size);
4346 lfs->cfg->cache_size,
5965 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,
5995 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,
6514 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,