Lines Matching refs:lfs_min

64                 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()
736 lfs_size_t diff = lfs_min(lfs_tag_size(tag), gsize); in lfs_dir_getslice()
776 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_dir_getread()
786 diff = lfs_min(diff, pcache->off-off); in lfs_dir_getread()
793 diff = lfs_min(diff, rcache->size - (off-rcache->off)); in lfs_dir_getread()
803 diff = lfs_min(diff, rcache->off-off); in lfs_dir_getread()
809 rcache->size = lfs_min(lfs_alignup(off+hint, lfs->cfg->read_size), in lfs_dir_getread()
1339 *id = lfs_min(lfs_tag_id(besttag), dir->count); in lfs_dir_fetchmatch()
1429 lfs_size_t diff = lfs_min(name->size, lfs_tag_size(tag)); in lfs_dir_find_match()
1630 lfs_min(commit->off + 5*sizeof(uint32_t), lfs->cfg->block_size), in lfs_dir_commitcrc()
1641 lfs_min(end - (commit->off+sizeof(lfs_tag_t)), 0x3fe) in lfs_dir_commitcrc()
1645 noff = lfs_min(noff, end - 5*sizeof(uint32_t)); in lfs_dir_commitcrc()
2114 && size <= lfs_min( in lfs_dir_splittingcompact()
2772 dir->pos = lfs_min(2, off); in lfs_dir_rawseek()
2792 int diff = lfs_min(dir->m.count - dir->id, off); in lfs_dir_rawseek()
2847 lfs_size_t skip = lfs_min( in lfs_ctz_find()
3158 lfs_min(file->cache.size, 0x3fe)),
3434 size = lfs_min(size, file->ctz.size - file->pos);
3457 lfs_size_t diff = lfs_min(nsize, lfs->cfg->block_size - file->off);
3511 lfs_min(0x3fe, lfs_min(
3560 lfs_size_t diff = lfs_min(nsize, lfs->cfg->block_size - file->off);
3711 if (size <= lfs_min(0x3fe, lfs_min(
4058 id, lfs_min(size, lfs->attr_max)),
4275 lfs->free.size = lfs_min(8*lfs->cfg->lookahead_size,