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