/external/qemu/ |
cbuffer.c | 54 int wpos = cb->rpos + cb->count; local 59 if (wpos >= cb->size) 60 wpos -= cb->size; 62 if (wpos + avail > cb->size) 63 avail = cb->size - wpos; 65 *pbase = cb->buff + wpos; 89 int wpos = cb->rpos + cb->count; local 96 if (wpos >= cb->size) 97 wpos -= cb->size; 99 ASSERT( wpos >= 0 && wpos < cb->size, "wpos is out-of-bounds: %d (rpos=%d)", wpos, cb->rpos) [all...] |
/external/llvm/utils/TableGen/ |
CodeGenInstruction.cpp | 200 std::string::size_type wpos = CStr.find_first_of(" \t"); local 202 std::string Tok = CStr.substr(start, wpos - start); 204 std::string Name = CStr.substr(wpos+1); 205 wpos = Name.find_first_not_of(" \t"); 206 if (wpos == std::string::npos) 208 Name = Name.substr(wpos); 226 wpos = Name.find_first_of(" \t"); 227 if (wpos == std::string::npos) 229 std::string DestOpName = Name.substr(0, wpos); 233 wpos = Name.find_first_not_of(" \t") [all...] |
/external/qemu/audio/ |
paaudio.c | 59 int wpos; member in struct:__anon9521 195 int incr, to_grab, wpos; local 212 wpos = hw->wpos; 220 int chunk = audio_MIN (to_grab, hw->samples - wpos); 221 void *buf = advance (pa->pcm_buf, wpos); 229 hw->conv (hw->conv_buf + wpos, buf, chunk, &nominal_volume); 230 wpos = (wpos + chunk) % hw->samples; 238 pa->wpos = wpos [all...] |
wavaudio.c | 348 int wpos, live, decr, samples; local 372 wpos = hw->wpos; 374 int left_till_end_samples = hw->samples - wpos; 377 dst = hw->conv_buf + wpos; 378 src = advance (wav->pcm_buf, wpos << hw->info.shift); 383 wpos = (wpos + convert_samples) % hw->samples; 388 hw->wpos = wpos; [all...] |
coreaudio.c | 622 hw->wpos = core->pos; 643 int wpos, avail; local 671 wpos = core->pos; 672 dst = hw->conv_buf + wpos; 690 wpos = (wpos + frameCount) % hw->samples; 692 core->pos = wpos;
|
dsoundaudio.c | 578 DWORD wpos, ppos, old_pos; local 593 ds->first_time ? &wpos : NULL 606 cur_blat = audio_ring_dist (wpos, ppos, bufsize); 608 old_pos = wpos; 615 old_pos = wpos; 799 hw->wpos = rpos >> hwshift; 808 len = audio_ring_dist (cpos, hw->wpos, hw->samples); 817 hw->wpos << hwshift, 834 hw->conv (hw->conv_buf + hw->wpos, p1, len1, &nominal_volume); 842 hw->wpos = (hw->wpos + decr) % hw->samples [all...] |
esdaudio.c | 86 int wpos; member in struct:__anon9514 336 int incr, to_grab, wpos; local 353 wpos = hw->wpos; 361 int chunk = audio_MIN (to_grab, hw->samples - wpos); 362 void *buf = advance (esd->pcm_buf, wpos); 383 wpos = (wpos + rsamples) % hw->samples; 387 hw->conv (hw->conv_buf + wpos, buf, nread >> hw->info.shift, 389 wpos = (wpos + chunk) % hw->samples [all...] |
audio_int.h | 98 int wpos; member in struct:HWVoiceIn
|
ossaudio.c | 49 int wpos; member in struct:OSSVoiceOut 395 int samples_till_end = hw->samples - oss->wpos; 398 void *pcm = advance (oss->pcm_buf, oss->wpos << hw->info.shift); 417 oss->wpos = (oss->wpos + samples_written) % hw->samples; 751 { .add = hw->wpos, .len = 0 }, 759 if (hw->wpos + dead > hw->samples) { 760 bufs[0].len = (hw->samples - hw->wpos) << hwshift; 761 bufs[1].len = (dead - (hw->samples - hw->wpos)) << hwshift; 805 hw->wpos = (hw->wpos + read_samples) % hw->samples [all...] |
alsaaudio.c | 117 int wpos; member in struct:ALSAVoiceOut 787 int left_till_end_samples = hw->samples - alsa->wpos; 789 char *src = advance (alsa->pcm_buf, alsa->wpos << hw->info.shift); 838 alsa->wpos = (alsa->wpos + written) % hw->samples; 1059 { .add = hw->wpos, .len = 0 }, 1106 if (hw->wpos + decr > hw->samples) { 1107 bufs[0].len = (hw->samples - hw->wpos); 1108 bufs[1].len = (decr - (hw->samples - hw->wpos)); [all...] |
audio.c | 999 rpos = hw->wpos - live; 1032 isamp = hw->wpos - rpos; 1108 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck; local 1130 wpos = (sw->hw->rpos + live) % hwsamples; 1142 left = hwsamples - wpos; 1152 sw->hw->mix_buf + wpos, 1160 wpos = (wpos + osamp) % hwsamples; [all...] |
/external/qemu/hw/ |
goldfish_pipe.c | 505 int wpos = pipe->pos + pipe->count; local 509 if (wpos > pipe->size) { 510 wpos -= pipe->size; 511 memcpy(newbuff + pipe->size, newbuff, wpos); 529 int wpos = pipe->pos + pipe->count; local 530 if (wpos >= pipe->size) { 531 wpos -= pipe->size; 533 if (wpos + avail <= pipe->size) { 534 memcpy(pipe->buffer + wpos, buff->data, avail); 536 int avail2 = pipe->size - wpos; [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
WindowManagerService.java | 1272 int wpos = mWindows.indexOf(win); local 1299 int wpos = mWindows.indexOf(win); local [all...] |