Lines Matching refs:bytes_written
242 int ret, bytes_written = 0; in write_adi() local
247 ret = write(fd, buf + bytes_written, buf_sz - bytes_written); in write_adi()
254 bytes_written += ret; in write_adi()
255 } while (bytes_written < buf_sz); in write_adi()
258 DEBUG_PRINT_L3("\tWrote %d of %d bytes\n", bytes_written, buf_sz); in write_adi()
260 return bytes_written; in write_adi()
266 int ret, bytes_written = 0; in pwrite_adi() local
274 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
275 buf_sz - bytes_written, cur_offset); in pwrite_adi()
285 bytes_written += ret; in pwrite_adi()
288 } while (bytes_written < buf_sz); in pwrite_adi()
292 bytes_written, buf_sz, offset); in pwrite_adi()
294 return bytes_written; in pwrite_adi()