Home
last modified time | relevance | path

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

/littlefs-3.7.0-3.6.0/
Dlfs.c34 static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) { in lfs_cache_drop() argument
38 rcache->block = LFS_BLOCK_NULL; in lfs_cache_drop()
48 const lfs_cache_t *pcache, lfs_cache_t *rcache, lfs_size_t hint, in lfs_bd_read() argument
77 if (block == rcache->block && in lfs_bd_read()
78 off < rcache->off + rcache->size) { in lfs_bd_read()
79 if (off >= rcache->off) { in lfs_bd_read()
81 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_bd_read()
82 memcpy(data, &rcache->buffer[off-rcache->off], diff); in lfs_bd_read()
91 diff = lfs_min(diff, rcache->off-off); in lfs_bd_read()
111 rcache->block = block; in lfs_bd_read()
[all …]
Dlfs.h417 lfs_cache_t rcache; member