Home
last modified time | relevance | path

Searched refs:read_idx (Results 1 – 20 of 20) sorted by relevance

/external/adhd/cras/src/common/
Dbyte_buffer.h15 unsigned int read_idx; member
52 if (buf->write_idx < buf->read_idx) in buf_writable()
53 return buf->read_idx - buf->write_idx; in buf_writable()
63 if (buf->read_idx < buf->write_idx) in buf_readable()
64 return buf->write_idx - buf->read_idx; in buf_readable()
66 return buf->used_size - buf->read_idx; in buf_readable()
74 buf->write_idx = (buf->read_idx + buf->level) % buf->used_size; in buf_adjust_readable()
90 return &buf->bytes[buf->read_idx]; in buf_read_pointer()
103 buf->read_idx += inc; in buf_increment_read()
104 buf->read_idx %= buf->used_size; in buf_increment_read()
[all …]
/external/libvpx/libvpx/vp8/encoder/
Dlookahead.c21 unsigned int read_idx; /* Read index */ member
153 buf = pop(ctx, &ctx->read_idx); in vp8_lookahead_pop()
166 index += ctx->read_idx; in vp8_lookahead_peek()
173 if (ctx->read_idx == 0) { in vp8_lookahead_peek()
176 index = ctx->read_idx - index; in vp8_lookahead_peek()
/external/mesa3d/src/util/
Du_queue.c297 job = queue->jobs[queue->read_idx]; in util_queue_thread_func()
298 memset(&queue->jobs[queue->read_idx], 0, sizeof(struct util_queue_job)); in util_queue_thread_func()
299 queue->read_idx = (queue->read_idx + 1) % queue->max_jobs; in util_queue_thread_func()
318 for (unsigned i = queue->read_idx; i != queue->write_idx; in util_queue_thread_func()
325 queue->read_idx = queue->write_idx; in util_queue_thread_func()
568 unsigned i = queue->read_idx; in util_queue_add_job()
579 queue->read_idx = 0; in util_queue_add_job()
624 for (unsigned i = queue->read_idx; i != queue->write_idx; in util_queue_drop_job()
Du_queue.h215 int write_idx, read_idx; /* ring buffer pointers */ member
/external/adhd/cras/src/server/
Dfloat_buffer.h96 offset = offset + b->buf->read_idx - b->buf->max_size; in float_buffer_read_pointer()
100 offset += b->buf->read_idx; in float_buffer_read_pointer()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_lookahead.c206 buf = pop(ctx, &ctx->read_idx); in vp9_lookahead_pop()
219 index += ctx->read_idx; in vp9_lookahead_peek()
226 index += ctx->read_idx; in vp9_lookahead_peek()
Dvp9_lookahead.h38 int read_idx; /* Read index */ member
/external/crosvm/devices/src/virtio/input/
Devent_source.rs80 read_idx: usize, field
145 .read(&mut self.read_buffer.buffer[self.read_idx..]) in receive_events()
147 let buff_size = read + self.read_idx; in receive_events()
184 self.read_idx = remainder; in receive_events()
202 read_idx: 0, in new()
/external/libaom/libaom/av1/encoder/
Dlookahead.c152 buf = pop(ctx, &read_ctx->read_idx); in av1_lookahead_pop()
172 index += read_ctx->read_idx; in av1_lookahead_peek()
179 index += (int)(read_ctx->read_idx); in av1_lookahead_peek()
Dlookahead.h41 int read_idx; /* Read index */ member
/external/u-boot/drivers/crypto/fsl/
Djr.h74 int read_idx; member
Djr.c143 jr->read_idx = 0; in jr_sw_cleanup()
330 jr->read_idx = (jr->read_idx + 1) & (jr->size - 1); in jr_dequeue()
/external/adhd/cras/src/libcras/
Dcras_client.c3155 int cras_client_read_atlog(struct cras_client *client, uint64_t *read_idx, in cras_client_read_atlog() argument
3170 if (sync_write_pos <= *read_idx) in cras_client_read_atlog()
3174 for (i = sync_write_pos - 1; i >= *read_idx; --i) { in cras_client_read_atlog()
3181 if (*read_idx) in cras_client_read_atlog()
3182 *missing = i - *read_idx + 1; in cras_client_read_atlog()
3183 *read_idx = i + 1; in cras_client_read_atlog()
3193 if ((sync_write_pos - 1) % log.len < *read_idx % log.len) { in cras_client_read_atlog()
3194 len = log.len - *read_idx % log.len; in cras_client_read_atlog()
3195 memcpy(buf->log, &log.log[*read_idx % log.len], in cras_client_read_atlog()
3200 len = sync_write_pos - *read_idx; in cras_client_read_atlog()
[all …]
Dcras_client.h513 int cras_client_read_atlog(struct cras_client *client, uint64_t *read_idx,
/external/igt-gpu-tools/include/drm-uapi/
Detnaviv_drm.h170 __u32 read_idx; /* in, index of read_bo buffer */ member
/external/mesa3d/include/drm-uapi/
Detnaviv_drm.h176 __u32 read_idx; /* in, index of read_bo buffer */ member
/external/kernel-headers/original/uapi/drm/
Detnaviv_drm.h176 __u32 read_idx; /* in, index of read_bo buffer */ member
/external/libdrm/etnaviv/
Detnaviv_drm.h170 __u32 read_idx; /* in, index of read_bo buffer */ member
Detnaviv_cmd_stream.c276 pmr->read_idx = bo2idx(stream, p->bo, ETNA_SUBMIT_BO_READ | ETNA_SUBMIT_BO_WRITE); in etna_cmd_stream_perf()
/external/mesa3d/src/etnaviv/drm/
Detnaviv_cmd_stream.c308 pmr->read_idx = bo2idx(stream, p->bo, ETNA_SUBMIT_BO_READ | ETNA_SUBMIT_BO_WRITE); in etna_cmd_stream_perf()