Lines Matching refs:bytes_written
206 ssize_t bytes_written = 0; in pp_write() local
229 while (bytes_written < count) { in pp_write()
230 ssize_t n = min_t(unsigned long, count - bytes_written, PP_BUFFER_SIZE); in pp_write()
232 if (copy_from_user(kbuffer, buf + bytes_written, n)) { in pp_write()
233 bytes_written = -EFAULT; in pp_write()
251 if (!bytes_written) in pp_write()
252 bytes_written = wrote; in pp_write()
256 bytes_written += wrote; in pp_write()
259 if (!bytes_written) in pp_write()
260 bytes_written = -EAGAIN; in pp_write()
274 return bytes_written; in pp_write()