Lines Matching defs:ptr_buf
668 struct bpf_dynptr ptr_buf, ptr_xdp;
677 bpf_ringbuf_reserve_dynptr(&ringbuf, len * chunks, 0, &ptr_buf);
681 err = bpf_dynptr_write(&ptr_buf, i * len, data, len, 0);
686 err = bpf_dynptr_copy(&ptr_xdp, 0, &ptr_buf, 0, len * chunks);
702 err = bpf_dynptr_write(&ptr_buf, i * len, buf, len, 0);
707 err = bpf_dynptr_copy(&ptr_buf, 0, &ptr_xdp, 0, len * chunks);
713 err = bpf_dynptr_read(&buf, len, &ptr_buf, i * len, 0);
738 bpf_ringbuf_discard_dynptr(&ptr_buf, 0);
939 struct bpf_dynptr ptr_buf;
945 err = bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(buf), 0, &ptr_buf);
950 err = err ?: bpf_read_dynptr_fn(&ptr_buf, 0, test_len[i], ptr);
953 err = err ?: bpf_dynptr_read(&buf, len, &ptr_buf, 0, 0);
960 err = err ?: bpf_dynptr_write(&ptr_buf, 0, buf, len, 0);
962 bpf_ringbuf_discard_dynptr(&ptr_buf, 0);
969 struct bpf_dynptr ptr_buf;
975 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(buf), 0, &ptr_buf);
980 cnt = bpf_read_dynptr_fn(&ptr_buf, 0, len, ptr);
986 err = err ?: bpf_dynptr_read(&buf, len, &ptr_buf, 0, 0);
992 bpf_ringbuf_discard_dynptr(&ptr_buf, 0);