Searched refs:candidate_step (Results 1 – 2 of 2) sorted by relevance
/hardware/google/gfxstream/guest/android-emu/aemu/base/ |
D | ring_buffer.c | 483 uint32_t candidate_step = get_step_size(v, bytes); in ring_buffer_write_fully_with_abort() local 489 if (bytes - processed < candidate_step) { in ring_buffer_write_fully_with_abort() 490 candidate_step = bytes - processed; in ring_buffer_write_fully_with_abort() 494 ring_buffer_wait_write(r, v, candidate_step); in ring_buffer_write_fully_with_abort() 497 processed_here = ring_buffer_view_write(r, v, dst + processed, candidate_step, 1); in ring_buffer_write_fully_with_abort() 499 processed_here = ring_buffer_write(r, dst + processed, candidate_step, 1); in ring_buffer_write_fully_with_abort() 502 processed += processed_here ? candidate_step : 0; in ring_buffer_write_fully_with_abort() 520 uint32_t candidate_step = get_step_size(v, bytes); in ring_buffer_read_fully_with_abort() local 527 if (bytes - processed < candidate_step) { in ring_buffer_read_fully_with_abort() 528 candidate_step = bytes - processed; in ring_buffer_read_fully_with_abort() [all …]
|
/hardware/google/aemu/base/ |
D | ring_buffer.cpp | 551 uint32_t candidate_step = get_step_size(r, v, bytes); in ring_buffer_write_fully_with_abort() local 557 if (bytes - processed < candidate_step) { in ring_buffer_write_fully_with_abort() 558 candidate_step = bytes - processed; in ring_buffer_write_fully_with_abort() 562 ring_buffer_wait_write(r, v, candidate_step, (uint64_t)(-1)); in ring_buffer_write_fully_with_abort() 565 processed_here = ring_buffer_view_write(r, v, dst + processed, candidate_step, 1); in ring_buffer_write_fully_with_abort() 567 processed_here = ring_buffer_write(r, dst + processed, candidate_step, 1); in ring_buffer_write_fully_with_abort() 570 processed += processed_here ? candidate_step : 0; in ring_buffer_write_fully_with_abort() 588 uint32_t candidate_step = get_step_size(r, v, bytes); in ring_buffer_read_fully_with_abort() local 597 if (bytes - processed < candidate_step) { in ring_buffer_read_fully_with_abort() 598 candidate_step = bytes - processed; in ring_buffer_read_fully_with_abort() [all …]
|