Home
last modified time | relevance | path

Searched refs:write_idx (Results 1 – 10 of 10) sorted by relevance

/external/adhd/cras/src/common/
Dbyte_buffer.h14 unsigned int write_idx; member
52 if (buf->write_idx < buf->read_idx) in buf_writable()
53 return buf->read_idx - buf->write_idx; in buf_writable()
55 return buf->used_size - 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()
74 buf->write_idx = (buf->read_idx + buf->level) % buf->used_size; in buf_adjust_readable()
110 return &buf->bytes[buf->write_idx]; in buf_write_pointer()
122 buf->write_idx += inc; in buf_increment_write()
123 buf->write_idx %= buf->used_size; in buf_increment_write()
[all …]
/external/mesa3d/src/util/
Du_queue.c318 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()
573 } while (i != queue->write_idx); in util_queue_add_job()
580 queue->write_idx = num_jobs; in util_queue_add_job()
589 ptr = &queue->jobs[queue->write_idx]; in util_queue_add_job()
597 queue->write_idx = (queue->write_idx + 1) % queue->max_jobs; 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/e2fsprogs/lib/ext2fs/
Dclosefs.c196 int check_idx, write_idx, size; in write_primary_superblock() local
214 write_idx = check_idx; in write_primary_superblock()
218 size = 2 * (check_idx - write_idx); in write_primary_superblock()
221 size, write_idx*2); in write_primary_superblock()
224 SUPERBLOCK_OFFSET + (2 * write_idx), size, in write_primary_superblock()
225 new_super + write_idx); in write_primary_superblock()
/external/adhd/cras/src/server/
Dfloat_buffer.h65 b->fp[i] = data + b->buf->write_idx; in float_buffer_write_pointer()
97 *readable = MIN(*readable, b->buf->write_idx - offset); in float_buffer_read_pointer()
/external/libvpx/libvpx/vp8/encoder/
Dlookahead.c22 unsigned int write_idx; /* Write index */ member
101 buf = pop(ctx, &ctx->write_idx); in vp8_lookahead_push()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_lookahead.h39 int write_idx; /* Write index */ member
Dvp9_lookahead.c116 buf = pop(ctx, &ctx->write_idx); in vp9_lookahead_push()
/external/libaom/libaom/av1/encoder/
Dlookahead.h48 int write_idx; /* Write index */ member
Dlookahead.c106 buf = pop(ctx, &ctx->write_idx); in av1_lookahead_push()