Searched refs:cons_pos (Results 1 – 1 of 1) sorted by relevance
265 unsigned long cons_pos, prod_pos; in ringbuf_avail_data_sz() local267 cons_pos = smp_load_acquire(&rb->consumer_pos); in ringbuf_avail_data_sz()269 return prod_pos - cons_pos; in ringbuf_avail_data_sz()326 unsigned long cons_pos, prod_pos, new_prod_pos, flags; in __bpf_ringbuf_reserve() local337 cons_pos = smp_load_acquire(&rb->consumer_pos); in __bpf_ringbuf_reserve()352 if (new_prod_pos - cons_pos > rb->mask) { in __bpf_ringbuf_reserve()391 unsigned long rec_pos, cons_pos; in bpf_ringbuf_commit() local409 cons_pos = smp_load_acquire(&rb->consumer_pos) & rb->mask; in bpf_ringbuf_commit()413 else if (cons_pos == rec_pos && !(flags & BPF_RB_NO_WAKEUP)) in bpf_ringbuf_commit()