Lines Matching defs:cnt
295 * @cnt: The amount to copy
299 * and writes up to @cnt characters or till it reaches the end of
311 int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, int cnt)
316 if (!cnt)
325 if (cnt > len)
326 cnt = len;
327 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
328 if (ret == cnt)
331 cnt -= ret;
333 s->readpos += cnt;
334 return cnt;