Searched refs:rcache (Results 1 – 2 of 2) sorted by relevance
35 static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) { in lfs_cache_drop() argument39 rcache->block = LFS_BLOCK_NULL; in lfs_cache_drop()49 const lfs_cache_t *pcache, lfs_cache_t *rcache, lfs_size_t hint, in lfs_bd_read() argument78 if (block == rcache->block && in lfs_bd_read()79 off < rcache->off + rcache->size) { in lfs_bd_read()80 if (off >= rcache->off) { in lfs_bd_read()82 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_bd_read()83 memcpy(data, &rcache->buffer[off-rcache->off], diff); in lfs_bd_read()92 diff = lfs_min(diff, rcache->off-off); in lfs_bd_read()112 rcache->block = block; in lfs_bd_read()[all …]
388 lfs_cache_t rcache; member