Lines Matching refs:ptr_buf

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