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()1002 unsigned long begin_lpos; in get_next_lpos() local1005 begin_lpos = lpos; in get_next_lpos()1009 if (DATA_WRAPS(data_ring, begin_lpos) == DATA_WRAPS(data_ring, next_lpos)) in get_next_lpos()1026 unsigned long begin_lpos; in data_alloc() local1038 begin_lpos = atomic_long_read(&data_ring->head_lpos); in data_alloc()1041 next_lpos = get_next_lpos(data_ring, begin_lpos, size); in data_alloc()1067 } while (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &begin_lpos, in data_alloc()1070 blk = to_block(data_ring, begin_lpos); in data_alloc()[all …]