Lines Matching defs:count
193 static ssize_t epfs_read(struct file *file, char __user *buf, size_t count,
221 // Reduce count when it will read over file size.
224 if (count > (file_size - pos))
226 "count will be truncated to %llu, as file_size=%llu, pos=%llu",
228 count = count <= (file_size - pos) ? count : (file_size - pos);
235 while (count > 0) {
243 pos, count);
244 ret = vfs_read(origin_file, buf, count, &pos);
253 clear_len = clear_len < count ? clear_len : count;
264 count -= clear_len;
270 read_len = read_len < count ? read_len : count;
281 count -= ret;