Lines Matching defs:cnt
327 * @cnt: The amount to copy
331 * and writes up to @cnt characters or till it reaches the end of
343 int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, int cnt)
348 if (!cnt)
357 if (cnt > len)
358 cnt = len;
359 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
360 if (ret == cnt)
363 cnt -= ret;
365 s->readpos += cnt;
366 return cnt;