Searched refs:prod_pos (Results 1 – 1 of 1) sorted by relevance
232 unsigned long cons_pos, prod_pos; in ringbuf_process_ring() local239 prod_pos = smp_load_acquire(r->producer_pos); in ringbuf_process_ring()240 while (cons_pos < prod_pos) { in ringbuf_process_ring()486 __u64 cons_pos, prod_pos; in user_ring_buffer__reserve() local498 prod_pos = smp_load_acquire(rb->producer_pos); in user_ring_buffer__reserve()501 avail_size = max_size - (prod_pos - cons_pos); in user_ring_buffer__reserve()511 hdr = rb->data + (prod_pos & rb->mask); in user_ring_buffer__reserve()518 smp_store_release(rb->producer_pos, prod_pos + total_size); in user_ring_buffer__reserve()520 return (void *)rb->data + ((prod_pos + BPF_RINGBUF_HDR_SZ) & rb->mask); in user_ring_buffer__reserve()