Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 6 of 6) sorted by relevance

/device/generic/goldfish/libqemu/
Dtest_guest_2.c195 int avail = bufferSize - nn; in main() local
197 if (avail > maxAvail) in main()
198 avail = maxAvail; in main()
200 if (memcmp(buffer+nn, buffer2+nn, avail) != 0) { in main()
207 for (mm = 0; mm < avail; mm++) in main()
214 for (mm = 0; mm < avail; mm++) in main()
219 nn += avail; in main()
/device/generic/goldfish/qemud/
Dqemud.c929 int avail, len; in fdhandler_event() local
931 avail = p->len - f->out_pos; in fdhandler_event()
932 if ((len = fd_write(f->fd, p->data + f->out_pos, avail)) < 0) { in fdhandler_event()
1101 int avail = rcount - rpos; in serial_fd_receive() local
1106 if (avail > wanted) in serial_fd_receive()
1107 avail = wanted; in serial_fd_receive()
1109 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1110 inpos += avail; in serial_fd_receive()
1111 rpos += avail; in serial_fd_receive()
1131 if (avail > wanted) in serial_fd_receive()
[all …]
/device/asus/fugu/libaudio/
DAudioStreamOut.cpp389 unsigned int avail = 0; in getPresentationPosition_l() local
391 if (audioOutput->getHardwareTimestamp(&avail, timestamp) == OK) { in getPresentationPosition_l()
393 … int64_t framesInDriverBuffer = (int64_t)audioOutput->getKernelBufferSize() - (int64_t)avail; in getPresentationPosition_l()
416 mFramesPresented, avail, signedFrames, nanos); in getPresentationPosition_l()
443 ALOGE("getPresentationPosition: avail too large = %u", avail); in getPresentationPosition_l()
/device/linaro/hikey/audio/
Daudio_hw.c300 unsigned int avail; in out_get_presentation_position() local
301 if (pcm_get_htimestamp(out->pcm, &avail, timestamp) == 0) { in out_get_presentation_position()
303 int64_t signed_frames = out->written - kernel_buffer_size + avail; in out_get_presentation_position()
/device/google/dragon/audio/hal/
Daudio_hw.c2263 unsigned int avail; in out_get_presentation_position() local
2267 if (pcm_get_htimestamp(pcm_device->pcm, &avail, timestamp) == 0) { in out_get_presentation_position()
2269 int64_t signed_frames = out->written - kernel_buffer_size + avail; in out_get_presentation_position()
/device/htc/flounder/audio/hal/
Daudio_hw.c3317 unsigned int avail; in out_get_presentation_position() local
3321 if (pcm_get_htimestamp(pcm_device->pcm, &avail, timestamp) == 0) { in out_get_presentation_position()
3323 int64_t signed_frames = out->written - kernel_buffer_size + avail; in out_get_presentation_position()