Lines Matching defs:count
170 unsigned int count;
172 count = 2;
175 ++count;
178 return count;
228 size_t count, unsigned long pos,
252 if (len > count)
253 len = count;
265 size_t count, loff_t *ppos)
298 if (count > len - pos)
299 count = len - pos;
300 if (!count)
311 return get_mm_proctitle(mm, buf, count, pos, arg_start);
320 if (count > arg_end - pos)
321 count = arg_end - pos;
328 while (count) {
330 size_t size = min_t(size_t, PAGE_SIZE, count);
344 count -= got;
352 size_t count, loff_t *pos)
361 ret = get_mm_cmdline(mm, buf, count, pos);
367 size_t count, loff_t *pos)
377 ret = get_task_cmdline(tsk, buf, count, pos);
514 lr->count, lr->time, lr->max);
536 size_t count, loff_t *offs)
545 return count;
845 size_t count, loff_t *ppos, int write)
866 while (count > 0) {
867 size_t this_len = min_t(size_t, count, PAGE_SIZE);
889 count -= this_len;
900 size_t count, loff_t *ppos)
902 return mem_rw(file, buf, count, ppos, 0);
906 size_t count, loff_t *ppos)
908 return mem_rw(file, (char __user*)buf, count, ppos, 1);
965 size_t count, loff_t *ppos)
990 while (count > 0) {
999 max_len = min_t(size_t, PAGE_SIZE, count);
1017 count -= retval;
1040 size_t count, loff_t *ppos)
1050 return simple_read_from_buffer(buf, count, ppos, mm->saved_auxv,
1061 static ssize_t oom_adj_read(struct file *file, char __user *buf, size_t count,
1080 return simple_read_from_buffer(buf, count, ppos, buffer, len);
1177 size_t count, loff_t *ppos)
1184 if (count > sizeof(buffer) - 1)
1185 count = sizeof(buffer) - 1;
1186 if (copy_from_user(buffer, buf, count)) {
1211 return err < 0 ? err : count;
1221 size_t count, loff_t *ppos)
1233 return simple_read_from_buffer(buf, count, ppos, buffer, len);
1237 size_t count, loff_t *ppos)
1244 if (count > sizeof(buffer) - 1)
1245 count = sizeof(buffer) - 1;
1246 if (copy_from_user(buffer, buf, count)) {
1262 return err < 0 ? err : count;
1274 size_t count, loff_t *ppos)
1287 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
1291 size_t count, loff_t *ppos)
1314 rv = kstrtou32_from_user(buf, count, 10, &loginuid);
1330 return count;
1340 size_t count, loff_t *ppos)
1352 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
1363 size_t count, loff_t *ppos)
1377 return simple_read_from_buffer(buf, count, ppos, buffer, len);
1381 const char __user * buf, size_t count, loff_t *ppos)
1391 if (count > sizeof(buffer) - 1)
1392 count = sizeof(buffer) - 1;
1393 if (copy_from_user(buffer, buf, count))
1407 return count;
1417 size_t count, loff_t *ppos)
1423 err = kstrtouint_from_user(buf, count, 0, &n);
1433 return count;
1437 size_t count, loff_t *ppos)
1448 return simple_read_from_buffer(buf, count, ppos, numbuf, len);
1480 size_t count, loff_t *offset)
1492 return count;
1567 size_t count, loff_t *offset)
1575 if (count > sizeof(buffer) - 1)
1576 count = sizeof(buffer) - 1;
1577 if (copy_from_user(buffer, buf, count)) {
1595 return err < 0 ? err : count;
1633 size_t count, loff_t *offset)
1642 if (count > sizeof(buffer) - 1)
1643 count = sizeof(buffer) - 1;
1644 if (copy_from_user(buffer, buf, count))
1657 count = err;
1661 return count;
1706 size_t count, loff_t *offset)
1714 if (count > sizeof(buffer) - 1)
1715 count = sizeof(buffer) - 1;
1716 if (copy_from_user(buffer, buf, count)) {
1734 return err < 0 ? err : count;
1767 size_t count, loff_t *ppos)
1776 if ((*ppos != 0) || (count >= PAGE_SIZE))
1780 kbuf = memdup_user_nul(buf, count);
1819 count = next_line - kbuf;
1833 ret = count;
1854 size_t count, loff_t *offset)
1862 if (copy_from_user(buffer, buf, count > maxlen ? maxlen : count))
1872 count = -EINVAL;
1876 return count;
2727 size_t count, loff_t *offset)
2734 err = kstrtoull_from_user(buf, count, 10, &slack_ns);
2746 count = -EPERM;
2753 count = err;
2768 return count;
2905 size_t count, loff_t *ppos)
2920 length = simple_read_from_buffer(buf, count, ppos, p, length);
2926 size_t count, loff_t *ppos)
2955 if (count > PAGE_SIZE)
2956 count = PAGE_SIZE;
2962 page = memdup_user(buf, count);
2975 count);
3083 size_t count, loff_t *ppos)
3101 ret = simple_read_from_buffer(buf, count, ppos, buffer, len);
3111 size_t count,
3121 ret = kstrtouint_from_user(buf, count, 0, &val);
3148 return count;