Searched refs:DATA_INDEX (Results 1 – 1 of 1) sorted by relevance
319 #define DATA_INDEX(data_ring, lpos) ((lpos) & DATA_SIZE_MASK(data_ring)) macro376 return (void *)&data_ring->data[DATA_INDEX(data_ring, begin_lpos)]; in to_block()1192 return (DATA_INDEX(data_ring, blk_lpos->next) - in space_used()1193 DATA_INDEX(data_ring, blk_lpos->begin)); in space_used()1200 return (DATA_INDEX(data_ring, blk_lpos->next) + in space_used()1201 DATA_SIZE(data_ring) - DATA_INDEX(data_ring, blk_lpos->begin)); in space_used()1246 *data_size = DATA_INDEX(data_ring, blk_lpos->next); in get_data()