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()
810 lfs->cfg->cache_size); in lfs_dir_getread()
1724 if (noff >= end || noff >= lfs->pcache.off + lfs->cfg->cache_size) { in lfs_dir_commitcrc()
2362 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit()
3134 file->cache.buffer = lfs_malloc(lfs->cfg->cache_size);
3151 file->cache.size = lfs->cfg->cache_size;
3258 memcpy(file->cache.buffer, lfs->pcache.buffer, lfs->cfg->cache_size);
3512 lfs->cfg->cache_size,
3712 lfs->cfg->cache_size,
3734 file->cache.size = lfs->cfg->cache_size;
4138 LFS_ASSERT(lfs->cfg->cache_size != 0);
4142 LFS_ASSERT(lfs->cfg->cache_size % lfs->cfg->read_size == 0);
4143 LFS_ASSERT(lfs->cfg->cache_size % lfs->cfg->prog_size == 0);
4144 LFS_ASSERT(lfs->cfg->block_size % lfs->cfg->cache_size == 0);
4166 lfs->rcache.buffer = lfs_malloc(lfs->cfg->cache_size);
4177 lfs->pcache.buffer = lfs_malloc(lfs->cfg->cache_size);
5776 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,
5806 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,
6325 cfg->block_cycles, cfg->cache_size, cfg->lookahead_size,