Home
last modified time | relevance | path

Searched refs:rcache (Results 1 – 2 of 2) sorted by relevance

/littlefs-3.5.0-3.4.0/
Dlfs.c35 static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) { in lfs_cache_drop() argument
39 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() argument
78 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 …]
Dlfs.h388 lfs_cache_t rcache; member