Lines Matching refs:ptr1
376 struct bpf_dynptr ptr1; in test_dynptr_is_null() local
384 if (bpf_ringbuf_reserve_dynptr(&ringbuf, size, 123, &ptr1) != -EINVAL) { in test_dynptr_is_null()
390 if (!bpf_dynptr_is_null(&ptr1)) { in test_dynptr_is_null()
410 bpf_ringbuf_discard_dynptr(&ptr1, 0); in test_dynptr_is_null()
417 struct bpf_dynptr ptr1; in test_dynptr_is_rdonly() local
422 if (bpf_dynptr_from_skb(skb, 123, &ptr1) != -EINVAL) { in test_dynptr_is_rdonly()
428 if (bpf_dynptr_is_rdonly(&ptr1)) { in test_dynptr_is_rdonly()
465 struct bpf_dynptr ptr1; in test_dynptr_clone() local
470 if (bpf_dynptr_from_skb(skb, 0, &ptr1)) { in test_dynptr_clone()
475 if (bpf_dynptr_adjust(&ptr1, off, bpf_dynptr_size(&ptr1))) { in test_dynptr_clone()
481 if (bpf_dynptr_clone(&ptr1, &ptr2)) { in test_dynptr_clone()
486 size = bpf_dynptr_size(&ptr1); in test_dynptr_clone()
494 if (bpf_dynptr_is_rdonly(&ptr2) != bpf_dynptr_is_rdonly(&ptr1)) { in test_dynptr_clone()
500 bpf_dynptr_adjust(&ptr1, 5, 5); in test_dynptr_clone()