Lines Matching refs:count
43 size_t count, loff_t *ppos)
52 return simple_read_from_buffer(userbuf, count, ppos, buf, len);
72 const char __user *user_buf, size_t count,
79 if (count < 1 || count > sizeof(buf))
82 ret = copy_from_user(buf, user_buf, count);
87 if (buf[count - 1] == '\n')
88 buf[count - 1] = '\0';
96 if (!strncmp(buf, "disabled", count)) {
98 } else if (!strncmp(buf, "enabled", count)) {
100 } else if (!strncmp(buf, "inline", count)) {
107 return err ? err : count;
127 size_t count, loff_t *ppos)
145 return simple_read_from_buffer(userbuf, count, ppos, va, len);
156 size_t count, loff_t *ppos)
165 return simple_read_from_buffer(userbuf, count, ppos, buf, i);
176 size_t count, loff_t *ppos)
181 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf));
210 size_t count, loff_t *ppos)
216 if (count < 1 || count > sizeof(buf))
219 ret = copy_from_user(buf, user_buf, count);
224 if (buf[count - 1] == '\n')
225 buf[count - 1] = '\0';
227 if (!strncmp(buf, "enabled", count)) {
231 } else if (!strncmp(buf, "disabled", count)) {
233 } else if (!strncmp(buf, "recover", count)) {
240 return count;
253 size_t count, loff_t *ppos)
259 ret = kstrtouint_from_user(user_buf, count, 0, &type);
265 return count;