Searched refs:begin_lpos (Results 1 – 1 of 1) sorted by relevance
370 unsigned long begin_lpos) in to_block() argument372 return (void *)&data_ring->data[DATA_INDEX(data_ring, begin_lpos)]; in to_block()1006 unsigned long begin_lpos; in get_next_lpos() local1009 begin_lpos = lpos; in get_next_lpos()1013 if (DATA_WRAPS(data_ring, begin_lpos) == DATA_WRAPS(data_ring, next_lpos)) in get_next_lpos()1030 unsigned long begin_lpos; in data_alloc() local1042 begin_lpos = atomic_long_read(&data_ring->head_lpos); in data_alloc()1045 next_lpos = get_next_lpos(data_ring, begin_lpos, size); in data_alloc()1071 } while (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &begin_lpos, in data_alloc()1074 blk = to_block(data_ring, begin_lpos); in data_alloc()[all …]