Searched refs:lfs_min (Results 1 – 4 of 4) sorted by relevance
/third_party/littlefs/tests/ |
D | test_files.toml | 34 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 …]
|
D | test_truncate.toml | 103 size = lfs_min(lfs.cfg->cache_size, sizeof(buffer)/2);
|
/third_party/littlefs/ |
D | lfs.c | 45 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read() 55 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read() 62 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_bd_read() 72 diff = lfs_min(diff, rcache->off-off); in lfs_bd_read() 94 rcache->size = lfs_min( in lfs_bd_read() 95 lfs_min( in lfs_bd_read() 127 diff = lfs_min(size-i, sizeof(dat)); in lfs_bd_cmp() 209 lfs_size_t diff = lfs_min(size, in lfs_bd_prog() 568 lfs->free.size = lfs_min(8*lfs->cfg->lookahead_size, lfs->free.ack); in lfs_alloc() 628 lfs_size_t diff = lfs_min(lfs_tag_size(tag), gsize); in lfs_dir_getslice() [all …]
|
D | lfs_util.h | 111 static inline uint32_t lfs_min(uint32_t a, uint32_t b) { in lfs_min() function
|