Home
last modified time | relevance | path

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

/littlefs-3.7.0-3.6.0/tests/
Dtest_truncate.toml18 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
19 => lfs_min(size, LARGESIZE-j);
42 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
43 => lfs_min(size, MEDIUMSIZE-j);
44 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
69 lfs_file_write(&lfs, &file, buffer, lfs_min(size, LARGESIZE-j))
70 => lfs_min(size, LARGESIZE-j);
86 lfs_file_read(&lfs, &file, buffer, lfs_min(size, MEDIUMSIZE-j))
87 => lfs_min(size, MEDIUMSIZE-j);
88 memcmp(buffer, "hair", lfs_min(size, MEDIUMSIZE-j)) => 0;
[all …]
Dtest_files.toml40 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
55 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
82 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
97 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
112 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
127 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
139 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
167 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
182 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
197 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
[all …]
/littlefs-3.7.0-3.6.0/
Dlfs.c64 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read()
74 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read()
81 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_bd_read()
91 diff = lfs_min(diff, rcache->off-off); in lfs_bd_read()
113 rcache->size = lfs_min( in lfs_bd_read()
114 lfs_min( in lfs_bd_read()
140 diff = lfs_min(size-i, sizeof(dat)); in lfs_bd_cmp()
164 diff = lfs_min(size-i, sizeof(dat)); in lfs_bd_crc()
243 lfs_size_t diff = lfs_min(size, in lfs_bd_prog()
635 lfs->free.size = lfs_min(8*lfs->cfg->lookahead_size, lfs->free.ack); in lfs_fs_rawgc()
[all …]
Dlfs_util.h112 static inline uint32_t lfs_min(uint32_t a, uint32_t b) { in lfs_min() function