Lines Matching refs:bytes_written
195 ssize_t bytes_written = 0; in pp_write() local
218 while (bytes_written < count) { in pp_write()
219 ssize_t n = min_t(unsigned long, count - bytes_written, PP_BUFFER_SIZE); in pp_write()
221 if (copy_from_user (kbuffer, buf + bytes_written, n)) { in pp_write()
222 bytes_written = -EFAULT; in pp_write()
240 if (!bytes_written) { in pp_write()
241 bytes_written = wrote; in pp_write()
246 bytes_written += wrote; in pp_write()
249 if (!bytes_written) in pp_write()
250 bytes_written = -EAGAIN; in pp_write()
264 return bytes_written; in pp_write()