Lines Matching refs:buffer_share
12 static inline struct id_offset *find_unused(const struct buffer_share *mix) in find_unused()
24 static inline struct id_offset *find_id(const struct buffer_share *mix, in find_id()
37 static void alloc_more_ids(struct buffer_share *mix) in alloc_more_ids()
51 struct buffer_share *buffer_share_create(unsigned int buf_sz) in buffer_share_create()
53 struct buffer_share *mix; in buffer_share_create()
55 mix = (struct buffer_share *)calloc(1, sizeof(*mix)); in buffer_share_create()
64 void buffer_share_destroy(struct buffer_share *mix) in buffer_share_destroy()
72 int buffer_share_add_id(struct buffer_share *mix, unsigned int id, void *data) in buffer_share_add_id()
93 int buffer_share_rm_id(struct buffer_share *mix, unsigned int id) in buffer_share_rm_id()
106 int buffer_share_offset_update(struct buffer_share *mix, unsigned int id, in buffer_share_offset_update()
122 unsigned int buffer_share_get_new_write_point(struct buffer_share *mix) in buffer_share_get_new_write_point()
146 static struct id_offset *get_id_offset(const struct buffer_share *mix, in get_id_offset()
160 unsigned int buffer_share_id_offset(const struct buffer_share *mix, in buffer_share_id_offset()
167 void *buffer_share_get_data(const struct buffer_share *mix, unsigned int id) in buffer_share_get_data()