/external/qemu/android/ |
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 | 354 int wpos, live, decr, samples; in wav_in_run() local 378 wpos = hw->wpos; in wav_in_run() 380 int left_till_end_samples = hw->samples - wpos; in wav_in_run() 383 dst = hw->conv_buf + wpos; in wav_in_run() 384 src = advance (wav->pcm_buf, wpos << hw->info.shift); in wav_in_run() 394 wpos = (wpos + read_samples) % hw->samples; in wav_in_run() 399 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()
|
/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/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
D | r300_shader_semantics.h | 44 int wpos; member 56 info->wpos = ATTR_UNUSED; in r300_shader_semantics_reset()
|
D | r300_fs.c | 73 fs_inputs->wpos = i; in r300_shader_read_fs_inputs() 140 if (inputs->wpos != ATTR_UNUSED) { in allocate_hardware_inputs() 141 allocate(mydata, inputs->wpos, reg++); in allocate_hardware_inputs() 434 int wpos, face; in r300_translate_fragment_shader() local 440 wpos = shader->inputs.wpos; in r300_translate_fragment_shader() 507 if (wpos != ATTR_UNUSED) { in r300_translate_fragment_shader() 509 rc_transform_fragment_wpos(&compiler.Base, wpos, wpos, TRUE); in r300_translate_fragment_shader()
|
D | r300_vs.c | 102 vs_outputs->wpos = i; in r300_shader_read_vs_outputs() 169 c->code->outputs[outputs->wpos] = reg++; in set_vertex_inputs_outputs() 255 rc_copy_output(&compiler.Base, 0, vs->outputs.wpos); in r300_translate_vertex_shader()
|
D | r300_state_derived.c | 125 if (r300_fs(r300)->shader->inputs.wpos != ATTR_UNUSED && gen_count < 8) { in r300_draw_emit_all_attribs() 127 vs_outputs->wpos); in r300_draw_emit_all_attribs() 129 vs_outputs->wpos); in r300_draw_emit_all_attribs() 535 if (fs_inputs->wpos != ATTR_UNUSED && tex_count < 8) { in r300_update_rs_block() 553 if (fs_inputs->wpos != ATTR_UNUSED && tex_count >= 8) { in r300_update_rs_block()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_shader_semantics.h | 44 int wpos; member 56 info->wpos = ATTR_UNUSED; in r300_shader_semantics_reset()
|
D | r300_fs.c | 73 fs_inputs->wpos = i; in r300_shader_read_fs_inputs() 140 if (inputs->wpos != ATTR_UNUSED) { in allocate_hardware_inputs() 141 allocate(mydata, inputs->wpos, reg++); in allocate_hardware_inputs() 434 int wpos, face; in r300_translate_fragment_shader() local 440 wpos = shader->inputs.wpos; in r300_translate_fragment_shader() 507 if (wpos != ATTR_UNUSED) { in r300_translate_fragment_shader() 509 rc_transform_fragment_wpos(&compiler.Base, wpos, wpos, TRUE); in r300_translate_fragment_shader()
|
D | r300_vs.c | 102 vs_outputs->wpos = i; in r300_shader_read_vs_outputs() 169 c->code->outputs[outputs->wpos] = reg++; in set_vertex_inputs_outputs() 255 rc_copy_output(&compiler.Base, 0, vs->outputs.wpos); in r300_translate_vertex_shader()
|
D | r300_state_derived.c | 125 if (r300_fs(r300)->shader->inputs.wpos != ATTR_UNUSED && gen_count < 8) { in r300_draw_emit_all_attribs() 127 vs_outputs->wpos); in r300_draw_emit_all_attribs() 129 vs_outputs->wpos); in r300_draw_emit_all_attribs() 535 if (fs_inputs->wpos != ATTR_UNUSED && tex_count < 8) { in r300_update_rs_block() 553 if (fs_inputs->wpos != ATTR_UNUSED && tex_count >= 8) { in r300_update_rs_block()
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
D | s_fragprog.c | 165 GLfloat *wpos = span->array->attribs[FRAG_ATTRIB_WPOS][col]; in init_machine() local 174 wpos[1] = ctx->DrawBuffer->Height - 1 - wpos[1]; in init_machine() 176 wpos[0] += 0.5F; in init_machine() 177 wpos[1] += 0.5F; in init_machine()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fragprog.c | 165 GLfloat *wpos = span->array->attribs[FRAG_ATTRIB_WPOS][col]; in init_machine() local 174 wpos[1] = ctx->DrawBuffer->Height - 1 - wpos[1]; in init_machine() 176 wpos[0] += 0.5F; in init_machine() 177 wpos[1] += 0.5F; in init_machine()
|
/external/qemu/hw/android/goldfish/ |
D | pipe.c | 651 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local 655 if (wpos > pipe->size) { in pingPongPipe_sendBuffers() 656 wpos -= pipe->size; in pingPongPipe_sendBuffers() 657 memcpy(newbuff + pipe->size, newbuff, wpos); in pingPongPipe_sendBuffers() 675 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local 676 if (wpos >= pipe->size) { in pingPongPipe_sendBuffers() 677 wpos -= pipe->size; in pingPongPipe_sendBuffers() 679 if (wpos + avail <= pipe->size) { in pingPongPipe_sendBuffers() 680 memcpy(pipe->buffer + wpos, buff->data, avail); in pingPongPipe_sendBuffers() 682 int avail2 = pipe->size - wpos; in pingPongPipe_sendBuffers() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_fs.cpp | 601 fs_reg wpos = *reg; in emit_fragcoord_interpolation() local 606 emit(BRW_OPCODE_MOV, wpos, this->pixel_x); in emit_fragcoord_interpolation() 608 emit(BRW_OPCODE_ADD, wpos, this->pixel_x, fs_reg(0.5f)); in emit_fragcoord_interpolation() 610 wpos.reg_offset++; in emit_fragcoord_interpolation() 614 emit(BRW_OPCODE_MOV, wpos, this->pixel_y); in emit_fragcoord_interpolation() 624 emit(BRW_OPCODE_ADD, wpos, pixel_y, fs_reg(offset)); in emit_fragcoord_interpolation() 626 wpos.reg_offset++; in emit_fragcoord_interpolation() 630 emit(BRW_OPCODE_MOV, wpos, in emit_fragcoord_interpolation() 633 emit(FS_OPCODE_LINTERP, wpos, in emit_fragcoord_interpolation() 638 wpos.reg_offset++; in emit_fragcoord_interpolation() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
D | brw_fs.cpp | 601 fs_reg wpos = *reg; in emit_fragcoord_interpolation() local 606 emit(BRW_OPCODE_MOV, wpos, this->pixel_x); in emit_fragcoord_interpolation() 608 emit(BRW_OPCODE_ADD, wpos, this->pixel_x, fs_reg(0.5f)); in emit_fragcoord_interpolation() 610 wpos.reg_offset++; in emit_fragcoord_interpolation() 614 emit(BRW_OPCODE_MOV, wpos, this->pixel_y); in emit_fragcoord_interpolation() 624 emit(BRW_OPCODE_ADD, wpos, pixel_y, fs_reg(offset)); in emit_fragcoord_interpolation() 626 wpos.reg_offset++; in emit_fragcoord_interpolation() 630 emit(BRW_OPCODE_MOV, wpos, in emit_fragcoord_interpolation() 633 emit(FS_OPCODE_LINTERP, wpos, in emit_fragcoord_interpolation() 638 wpos.reg_offset++; in emit_fragcoord_interpolation() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/ |
D | radeon_compiler.h | 108 void rc_transform_fragment_wpos(struct radeon_compiler * c, unsigned wpos, unsigned new_input,
|