Searched refs:min (Results 1 – 6 of 6) sorted by relevance
44 #define min(x, y) ((x < y) ? (x) : (y)) macro
201 let start = _pdata.data.len().min(offset); in read_status()202 let end = _pdata.data.len().min(offset + len); in read_status()395 let start = inode.data.len().min(offset); in read_at()396 let end = inode.data.len().min(offset + len); in read_at()
2 use core::cmp::min;107 let to_read_size: usize = min(buf.len(), bytes_remain as usize); in read()124 let end_len: usize = min( in read()126 min( in read()195 let end_len = min( in write()256 let extra_bytes = min((offset + len) - self.size(), MAX_FILE_SIZE - self.size()); in ensure_len()1947 let prefix_len = min(self.basename_len, 6) as usize;1968 let prefix_len = min(self.basename_len, 2) as usize;2035 let prefix_len: usize = min(self.basename_len as usize, 2);2040 let prefix_len = min(self.basename_len as usize, 6);
135 let start = inode.data.len().min(offset); in read_at()136 let end = inode.data.len().min(offset + len); in read_at()
512 let len = core::cmp::min(slice.len(), data.len()); in scatter()
1 use core::cmp::min;755 let to_write = min(self.len()?, *addr_len as usize); in write_to_user()