Lines Matching defs:data_ring
308 #define DATA_SIZE(data_ring) _DATA_SIZE((data_ring)->size_bits) argument
309 #define DATA_SIZE_MASK(data_ring) (DATA_SIZE(data_ring) - 1) argument
315 #define DATA_INDEX(data_ring, lpos) ((lpos) & DATA_SIZE_MASK(data_ring)) argument
321 #define DATA_WRAPS(data_ring, lpos) ((lpos) >> (data_ring)->size_bits) argument
329 #define DATA_THIS_WRAP_START_LPOS(data_ring, lpos) \ argument
369 static struct prb_data_block *to_block(struct prb_data_ring *data_ring, in to_block()
394 static bool data_check_size(struct prb_data_ring *data_ring, unsigned int size) in data_check_size()
570 struct prb_data_ring *data_ring = &rb->text_data_ring; in data_make_reusable() local
634 struct prb_data_ring *data_ring = &rb->text_data_ring; in data_push_tail() local
1002 static unsigned long get_next_lpos(struct prb_data_ring *data_ring, in get_next_lpos()
1027 struct prb_data_ring *data_ring = &rb->text_data_ring; in data_alloc() local
1108 struct prb_data_ring *data_ring = &rb->text_data_ring; in data_realloc() local
1175 static unsigned int space_used(struct prb_data_ring *data_ring, in space_used()
1205 static const char *get_data(struct prb_data_ring *data_ring, in get_data()
1705 static bool copy_data(struct prb_data_ring *data_ring, in copy_data()