Searched refs:pcache (Results 1 – 2 of 2) sorted by relevance
/littlefs-3.5.0-3.4.0/ |
D | lfs.c | 42 static inline void lfs_cache_zero(lfs_t *lfs, lfs_cache_t *pcache) { in lfs_cache_zero() argument 44 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero() 45 pcache->block = LFS_BLOCK_NULL; in lfs_cache_zero() 49 const lfs_cache_t *pcache, lfs_cache_t *rcache, lfs_size_t hint, in lfs_bd_read() argument 61 if (pcache && block == pcache->block && in lfs_bd_read() 62 off < pcache->off + pcache->size) { in lfs_bd_read() 63 if (off >= pcache->off) { in lfs_bd_read() 65 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read() 66 memcpy(data, &pcache->buffer[off-pcache->off], diff); in lfs_bd_read() 75 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read() [all …]
|
D | lfs.h | 389 lfs_cache_t pcache; member
|