Home
last modified time | relevance | path

Searched refs:nwritten (Results 1 – 21 of 21) sorted by relevance

/external/ltp/testcases/kernel/sched/clisrv/
Dwriten.c30 int nleft, nwritten; in writen() local
34 nwritten = write(fd, ptr, nleft); in writen()
35 if (nwritten <= 0) in writen()
36 return (nwritten); /* error */ in writen()
37 nleft -= nwritten; in writen()
38 ptr += nwritten; in writen()
/external/mksh/src/
Dshf.c799 ssize_t nwritten = 0; in shf_vfprintf() local
809 nwritten++; in shf_vfprintf()
1038 nwritten++; in shf_vfprintf()
1042 nwritten++; in shf_vfprintf()
1048 nwritten++; in shf_vfprintf()
1054 nwritten += field; in shf_vfprintf()
1063 nwritten += precision; in shf_vfprintf()
1068 nwritten += field; in shf_vfprintf()
1073 return (shf_error(shf) ? -1 : nwritten); in shf_vfprintf()
Dfuncs.c567 ssize_t nwritten; in c_print() local
569 if ((nwritten = write(po.fd, s, len)) < 0) { in c_print()
583 s += nwritten; in c_print()
584 len -= nwritten; in c_print()
/external/adhd/cras/src/server/
Dfloat_buffer.h78 unsigned int nwritten) in float_buffer_written() argument
80 buf_increment_write(b->buf, nwritten); in float_buffer_written()
Dcras_rstream.c419 unsigned int nwritten = buffer_share_get_new_write_point( in cras_rstream_update_input_write_pointer() local
422 cras_shm_buffer_written(shm, nwritten); in cras_rstream_update_input_write_pointer()
428 unsigned int nwritten = buffer_share_get_new_write_point( in cras_rstream_update_output_read_pointer() local
431 cras_shm_buffer_read(shm, nwritten); in cras_rstream_update_output_read_pointer()
Dcras_a2dp_iodev.c376 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer() argument
383 written_bytes = nwritten * format_bytes; in put_buffer()
390 bt_queued_frames(iodev, nwritten); in put_buffer()
Dcras_hfp_iodev.c171 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer() argument
178 hfp_buf_release(hfpio->info, iodev, nwritten); in put_buffer()
Dcras_iodev.h212 int (*put_buffer)(struct cras_iodev *iodev, unsigned nwritten);
512 unsigned int nwritten);
Ddev_io.c546 int nwritten; in write_streams() local
551 nwritten = dev_stream_mix(curr, odev->ext_format, in write_streams()
555 if (nwritten < 0) { in write_streams()
560 cras_iodev_stream_written(odev, curr, nwritten); in write_streams()
Dcras_bt_io.c271 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer() argument
276 return dev->put_buffer(dev, nwritten); in put_buffer()
Dcras_iodev.c858 unsigned int nwritten) in cras_iodev_stream_written() argument
861 stream->stream->stream_id, nwritten); in cras_iodev_stream_written()
Dcras_alsa_io.c525 static int put_buffer(struct cras_iodev *iodev, unsigned nwritten) in put_buffer() argument
531 nwritten); in put_buffer()
/external/u-boot/drivers/usb/gadget/
Df_mass_storage.c820 ssize_t nwritten; in do_write() local
937 nwritten = rc * SECTOR_SIZE; in do_write()
941 (int) nwritten); in do_write()
943 if (nwritten < 0) { in do_write()
945 (int) nwritten); in do_write()
946 nwritten = 0; in do_write()
947 } else if (nwritten < amount) { in do_write()
949 (int) nwritten, amount); in do_write()
950 nwritten -= (nwritten & 511); in do_write()
953 file_offset += nwritten; in do_write()
[all …]
/external/mdnsresponder/mDNSShared/
DDebugServices.c1204 size_t nwritten = 0; in DebugSNPrintFVAList() local
1215 if (++nwritten >= buflen) goto exit; in DebugSNPrintFVAList()
1573 if (F.hSize) * (short *) s = (short)nwritten; in DebugSNPrintFVAList()
1574 else if (F.lSize) * (long *) s = (long)nwritten; in DebugSNPrintFVAList()
1575 else * (int *) s = (int)nwritten; in DebugSNPrintFVAList()
1582 if (++nwritten >= buflen) goto exit; in DebugSNPrintFVAList()
1589 if (++nwritten >= buflen) goto exit; in DebugSNPrintFVAList()
1592 if (i > buflen - nwritten) // Make sure we don't truncate in the middle of a UTF-8 character in DebugSNPrintFVAList()
1593 { i = buflen - nwritten; while (i>0 && (s[i] & 0xC0) == 0x80) i--; } in DebugSNPrintFVAList()
1595 nwritten += i; in DebugSNPrintFVAList()
[all …]
/external/adhd/cras/src/tests/
Diodev_stub.cc96 unsigned int nwritten) { in cras_iodev_stream_written() argument
Daudio_thread_unittest.cc828 unsigned int nwritten) in cras_iodev_stream_written() argument
/external/libpcap/
Dpcap-sita.c371 int nwritten; in send_to_fd() local
375 if ((nwritten = write(fd, str, len)) <= 0) { in send_to_fd()
382 len -= nwritten; in send_to_fd()
383 str += nwritten; in send_to_fd()
/external/mdnsresponder/mDNSCore/
DDNSCommon.c2867 mDNSu32 nwritten = 0; in mDNS_vsnprintf() local
2878 if (++nwritten >= buflen) goto exit; in mDNS_vsnprintf()
3101 if (F.hSize) * (short *) s = (short)nwritten; in mDNS_vsnprintf()
3102 else if (F.lSize) * (long *) s = (long)nwritten; in mDNS_vsnprintf()
3103 else * (int *) s = (int)nwritten; in mDNS_vsnprintf()
3110 if (++nwritten >= buflen) goto exit; in mDNS_vsnprintf()
3117 if (++nwritten >= buflen) goto exit; in mDNS_vsnprintf()
3125 if (i > buflen - nwritten) in mDNS_vsnprintf()
3126 { i = buflen - nwritten; while (i>0 && (s[i] & 0xC0) == 0x80) i--; } in mDNS_vsnprintf()
3128 nwritten += i; in mDNS_vsnprintf()
[all …]
/external/python/cpython3/Lib/multiprocessing/
Dconnection.py290 nwritten, err = ov.GetOverlappedResult(True)
292 assert nwritten == len(buf)
/external/python/cpython2/Objects/
Dfileobject.c1898 Py_ssize_t i, j, nwritten, len; in file_writelines() local
1991 nwritten = fwrite(PyString_AS_STRING(line), in file_writelines()
1993 if (nwritten != len) { in file_writelines()
/external/kotlinc/lib/
Dkotlin-compiler.jarMETA-INF/MANIFEST.MF org/jetbrains/kotlin/utils/JavaSdkUtil.class JavaSdkUtil ...