Lines Matching refs:todo
138 int todo, written = 0; in hvc_write() local
142 while (count > 0 && (todo = N_OUTBUF - hp->n_outbuf) > 0) { in hvc_write()
143 if (todo > count) in hvc_write()
144 todo = count; in hvc_write()
147 todo -= copy_from_user(p, buf, todo); in hvc_write()
148 if (todo == 0) { in hvc_write()
154 memcpy(p, buf, todo); in hvc_write()
155 count -= todo; in hvc_write()
156 buf += todo; in hvc_write()
157 hp->n_outbuf += todo; in hvc_write()
158 written += todo; in hvc_write()