Lines Matching refs:wr_idx
17 if (!mix->wr_idx[i].used) in find_unused()
18 return &mix->wr_idx[i]; in find_unused()
31 if (mix->wr_idx[i].used && id == mix->wr_idx[i].id) in find_id()
32 return &mix->wr_idx[i]; in find_id()
43 mix->wr_idx = realloc(mix->wr_idx, sizeof(mix->wr_idx[0]) * new_size); in alloc_more_ids()
46 mix->wr_idx[i].used = 0; in alloc_more_ids()
57 mix->wr_idx = calloc(mix->id_sz, sizeof(mix->wr_idx[0])); in buffer_share_create()
67 free(mix->wr_idx); in buffer_share_destroy()
111 if (id != mix->wr_idx[i].id) in buffer_share_offset_update()
114 mix->wr_idx[i].offset += delta; in buffer_share_offset_update()
127 struct id_offset *o = &mix->wr_idx[i]; in buffer_share_get_new_write_point()
135 struct id_offset *o = &mix->wr_idx[i]; in buffer_share_get_new_write_point()
152 o = &mix->wr_idx[i]; in get_id_offset()