Searched refs:prod_pos (Results 1 – 5 of 5) sorted by relevance
265 unsigned long cons_pos, prod_pos; in ringbuf_avail_data_sz() local268 prod_pos = smp_load_acquire(&rb->producer_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() local346 prod_pos = rb->producer_pos; in __bpf_ringbuf_reserve()347 new_prod_pos = prod_pos + len; in __bpf_ringbuf_reserve()357 hdr = (void *)rb->data + (prod_pos & rb->mask); in __bpf_ringbuf_reserve()
34 long prod_pos = 0; variable75 prod_pos = bpf_ringbuf_query(&ringbuf, BPF_RB_PROD_POS); in test_ringbuf()
214 unsigned long cons_pos, prod_pos; in ringbuf_process_ring() local221 prod_pos = smp_load_acquire(r->producer_pos); in ringbuf_process_ring()222 while (cons_pos < prod_pos) { in ringbuf_process_ring()
119 CHECK(skel->bss->prod_pos != 3 * rec_sz, in test_ringbuf()121 3L * rec_sz, skel->bss->prod_pos); in test_ringbuf()
297 unsigned long cons_pos, prod_pos; in ringbuf_custom_process_ring() local304 prod_pos = smp_load_acquire(r->producer_pos); in ringbuf_custom_process_ring()305 while (cons_pos < prod_pos) { in ringbuf_custom_process_ring()