Lines Matching refs:togo
187 static void jsfd_read(char *buf, unsigned long p, size_t togo) { in jsfd_read() argument
193 while (togo >= 4) { in jsfd_read()
194 togo -= 4; in jsfd_read()
278 size_t togo, loff_t *ppos) in jsf_read() argument
288 if (verify_area(VERIFY_WRITE, buf, togo)) in jsf_read()
295 if ((p + togo) < p /* wrap */ in jsf_read()
296 || (p + togo) >= JSF_BASE_TOP) { in jsf_read()
297 togo = JSF_BASE_TOP - p; in jsf_read()
300 if (p < JSF_BASE_ALL && togo != 0) { in jsf_read()
303 if (x > togo) x = togo; in jsf_read()
307 togo -= x; in jsf_read()
318 while (togo >= 4) { in jsf_read()
319 togo -= 4; in jsf_read()
391 unsigned int togo; in jsf_ioctl_program() local
401 togo = abuf.size; in jsf_ioctl_program()
402 if ((togo & 3) || (p & 3)) return -EINVAL; in jsf_ioctl_program()
405 if (verify_area(VERIFY_READ, uptr, togo)) in jsf_ioctl_program()
407 while (togo != 0) { in jsf_ioctl_program()
408 togo -= 4; in jsf_ioctl_program()