Home
last modified time | relevance | path

Searched refs:lfs_min (Results 1 – 4 of 4) sorted by relevance

/littlefs-2.7.6/tests/
Dtest_files.toml34 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
49 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
73 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
88 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
103 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
118 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
130 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
155 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
170 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
185 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
[all …]
Dtest_truncate.toml103 size = lfs_min(lfs.cfg->cache_size, sizeof(buffer)/2);
/littlefs-2.7.6/
Dlfs.c44 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read()
54 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read()
61 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_bd_read()
71 diff = lfs_min(diff, rcache->off-off); in lfs_bd_read()
93 rcache->size = lfs_min( in lfs_bd_read()
94 lfs_min( in lfs_bd_read()
199 lfs_size_t diff = lfs_min(size, in lfs_bd_prog()
501 lfs->free.size = lfs_min(8*lfs->cfg->lookahead_size, lfs->free.ack); in lfs_alloc()
560 lfs_size_t diff = lfs_min(lfs_tag_size(tag), gsize); in lfs_dir_getslice()
600 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_dir_getread()
[all …]
Dlfs_util.h138 static inline uint32_t lfs_min(uint32_t a, uint32_t b) { in lfs_min() function