/external/qemu/ |
D | cbuffer.c | 54 int wpos = cb->rpos + cb->count; in cbuffer_write_peek() local 59 if (wpos >= cb->size) in cbuffer_write_peek() 60 wpos -= cb->size; in cbuffer_write_peek() 62 if (wpos + avail > cb->size) in cbuffer_write_peek() 63 avail = cb->size - wpos; in cbuffer_write_peek() 65 *pbase = cb->buff + wpos; in cbuffer_write_peek() 89 int wpos = cb->rpos + cb->count; in cbuffer_write() local 96 if (wpos >= cb->size) in cbuffer_write() 97 wpos -= cb->size; in cbuffer_write() 99 … ASSERT( wpos >= 0 && wpos < cb->size, "wpos is out-of-bounds: %d (rpos=%d)", wpos, cb->rpos); in cbuffer_write() [all …]
|
/external/qemu/audio/ |
D | esdaudio.c | 86 int wpos; member 336 int incr, to_grab, wpos; in qesd_thread_in() local 353 wpos = hw->wpos; in qesd_thread_in() 361 int chunk = audio_MIN (to_grab, hw->samples - wpos); in qesd_thread_in() 362 void *buf = advance (esd->pcm_buf, wpos); in qesd_thread_in() 383 wpos = (wpos + rsamples) % hw->samples; in qesd_thread_in() 387 hw->conv (hw->conv_buf + wpos, buf, nread >> hw->info.shift, in qesd_thread_in() 389 wpos = (wpos + chunk) % hw->samples; in qesd_thread_in() 397 esd->wpos = wpos; in qesd_thread_in() 421 hw->wpos = esd->wpos; in qesd_run_in()
|
D | paaudio.c | 59 int wpos; member 195 int incr, to_grab, wpos; in qpa_thread_in() local 212 wpos = hw->wpos; in qpa_thread_in() 220 int chunk = audio_MIN (to_grab, hw->samples - wpos); in qpa_thread_in() 221 void *buf = advance (pa->pcm_buf, wpos); in qpa_thread_in() 229 hw->conv (hw->conv_buf + wpos, buf, chunk, &nominal_volume); in qpa_thread_in() 230 wpos = (wpos + chunk) % hw->samples; in qpa_thread_in() 238 pa->wpos = wpos; in qpa_thread_in() 262 hw->wpos = pa->wpos; in qpa_run_in()
|
D | wavaudio.c | 348 int wpos, live, decr, samples; in wav_in_run() local 372 wpos = hw->wpos; in wav_in_run() 374 int left_till_end_samples = hw->samples - wpos; in wav_in_run() 377 dst = hw->conv_buf + wpos; in wav_in_run() 378 src = advance (wav->pcm_buf, wpos << hw->info.shift); in wav_in_run() 383 wpos = (wpos + convert_samples) % hw->samples; in wav_in_run() 388 hw->wpos = wpos; in wav_in_run()
|
D | dsoundaudio.c | 578 DWORD wpos, ppos, old_pos; in dsound_run_out() local 593 ds->first_time ? &wpos : NULL in dsound_run_out() 606 cur_blat = audio_ring_dist (wpos, ppos, bufsize); in dsound_run_out() 608 old_pos = wpos; in dsound_run_out() 615 old_pos = wpos; in dsound_run_out() 799 hw->wpos = rpos >> hwshift; in dsound_run_in() 808 len = audio_ring_dist (cpos, hw->wpos, hw->samples); in dsound_run_in() 817 hw->wpos << hwshift, in dsound_run_in() 834 hw->conv (hw->conv_buf + hw->wpos, p1, len1, &nominal_volume); in dsound_run_in() 842 hw->wpos = (hw->wpos + decr) % hw->samples; in dsound_run_in()
|
D | ossaudio.c | 49 int wpos; member 395 int samples_till_end = hw->samples - oss->wpos; in oss_write_pending() 398 void *pcm = advance (oss->pcm_buf, oss->wpos << hw->info.shift); in oss_write_pending() 417 oss->wpos = (oss->wpos + samples_written) % hw->samples; in oss_write_pending() 751 { .add = hw->wpos, .len = 0 }, in oss_run_in() 759 if (hw->wpos + dead > hw->samples) { in oss_run_in() 760 bufs[0].len = (hw->samples - hw->wpos) << hwshift; in oss_run_in() 761 bufs[1].len = (dead - (hw->samples - hw->wpos)) << hwshift; in oss_run_in() 805 hw->wpos = (hw->wpos + read_samples) % hw->samples; in oss_run_in()
|
D | coreaudio.c | 622 hw->wpos = core->pos; in coreaudio_run_in() 643 int wpos, avail; in audioInDeviceIOProc() local 671 wpos = core->pos; in audioInDeviceIOProc() 672 dst = hw->conv_buf + wpos; in audioInDeviceIOProc() 690 wpos = (wpos + frameCount) % hw->samples; in audioInDeviceIOProc() 692 core->pos = wpos; in audioInDeviceIOProc()
|
D | alsaaudio.c | 117 int wpos; member 787 int left_till_end_samples = hw->samples - alsa->wpos; in alsa_write_pending() 789 char *src = advance (alsa->pcm_buf, alsa->wpos << hw->info.shift); in alsa_write_pending() 838 alsa->wpos = (alsa->wpos + written) % hw->samples; in alsa_write_pending() 1059 { .add = hw->wpos, .len = 0 }, in alsa_run_in() 1106 if (hw->wpos + decr > hw->samples) { in alsa_run_in() 1107 bufs[0].len = (hw->samples - hw->wpos); in alsa_run_in() 1108 bufs[1].len = (decr - (hw->samples - hw->wpos)); in alsa_run_in() 1171 hw->wpos = (hw->wpos + read_samples) % hw->samples; in alsa_run_in()
|
D | winaudio.c | 533 int hw_samples = audio_MIN(hw->samples - hw->wpos, live); in winaudio_in_run() 534 struct st_sample* dst = hw->conv_buf + hw->wpos; in winaudio_in_run() 545 hw->wpos, hw->samples); in winaudio_in_run() 549 hw->wpos += wav_samples; in winaudio_in_run() 550 if (hw->wpos >= hw->samples) in winaudio_in_run() 551 hw->wpos -= hw->samples; in winaudio_in_run()
|
D | fmodaudio.c | 473 len = audio_ring_dist (new_pos, hw->wpos, hw->samples); in fmod_run_in() 480 hw->wpos, len, in fmod_run_in() 491 hw->conv (hw->conv_buf + hw->wpos, p1, len1, &nominal_volume); in fmod_run_in() 498 hw->wpos = (hw->wpos + decr) % hw->samples; in fmod_run_in()
|
D | audio.c | 999 rpos = hw->wpos - live; in audio_pcm_sw_get_rpos_in() 1032 isamp = hw->wpos - rpos; in audio_pcm_sw_read() 1108 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck; in audio_pcm_sw_write() local 1130 wpos = (sw->hw->rpos + live) % hwsamples; in audio_pcm_sw_write() 1142 left = hwsamples - wpos; in audio_pcm_sw_write() 1152 sw->hw->mix_buf + wpos, in audio_pcm_sw_write() 1160 wpos = (wpos + osamp) % hwsamples; in audio_pcm_sw_write()
|
D | audio_int.h | 98 int wpos; member
|
/external/llvm/utils/TableGen/ |
D | CodeGenInstruction.cpp | 200 std::string::size_type wpos = CStr.find_first_of(" \t"); in ParseConstraint() local 202 std::string Tok = CStr.substr(start, wpos - start); in ParseConstraint() 204 std::string Name = CStr.substr(wpos+1); in ParseConstraint() 205 wpos = Name.find_first_not_of(" \t"); in ParseConstraint() 206 if (wpos == std::string::npos) in ParseConstraint() 208 Name = Name.substr(wpos); in ParseConstraint() 226 wpos = Name.find_first_of(" \t"); in ParseConstraint() 227 if (wpos == std::string::npos) in ParseConstraint() 229 std::string DestOpName = Name.substr(0, wpos); in ParseConstraint() 233 wpos = Name.find_first_not_of(" \t"); in ParseConstraint() [all …]
|
/external/qemu/hw/ |
D | goldfish_pipe.c | 646 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local 650 if (wpos > pipe->size) { in pingPongPipe_sendBuffers() 651 wpos -= pipe->size; in pingPongPipe_sendBuffers() 652 memcpy(newbuff + pipe->size, newbuff, wpos); in pingPongPipe_sendBuffers() 670 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local 671 if (wpos >= pipe->size) { in pingPongPipe_sendBuffers() 672 wpos -= pipe->size; in pingPongPipe_sendBuffers() 674 if (wpos + avail <= pipe->size) { in pingPongPipe_sendBuffers() 675 memcpy(pipe->buffer + wpos, buff->data, avail); in pingPongPipe_sendBuffers() 677 int avail2 = pipe->size - wpos; in pingPongPipe_sendBuffers() [all …]
|