Home
last modified time | relevance | path

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

/littlefs-3.7.0-3.6.0/
Dlfs.c41 static inline void lfs_cache_zero(lfs_t *lfs, lfs_cache_t *pcache) { in lfs_cache_zero() argument
43 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero()
44 pcache->block = LFS_BLOCK_NULL; in lfs_cache_zero()
48 const lfs_cache_t *pcache, lfs_cache_t *rcache, lfs_size_t hint, in lfs_bd_read() argument
60 if (pcache && block == pcache->block && in lfs_bd_read()
61 off < pcache->off + pcache->size) { in lfs_bd_read()
62 if (off >= pcache->off) { in lfs_bd_read()
64 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read()
65 memcpy(data, &pcache->buffer[off-pcache->off], diff); in lfs_bd_read()
74 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read()
[all …]
Dlfs.h418 lfs_cache_t pcache; member