Lines Matching refs:ptr1
375 struct bpf_dynptr ptr1; in test_dynptr_is_null() local
383 if (bpf_ringbuf_reserve_dynptr(&ringbuf, size, 123, &ptr1) != -EINVAL) { in test_dynptr_is_null()
389 if (!bpf_dynptr_is_null(&ptr1)) { in test_dynptr_is_null()
409 bpf_ringbuf_discard_dynptr(&ptr1, 0); in test_dynptr_is_null()
416 struct bpf_dynptr ptr1; in test_dynptr_is_rdonly() local
421 if (bpf_dynptr_from_skb(skb, 123, &ptr1) != -EINVAL) { in test_dynptr_is_rdonly()
427 if (bpf_dynptr_is_rdonly(&ptr1)) { in test_dynptr_is_rdonly()
464 struct bpf_dynptr ptr1; in test_dynptr_clone() local
469 if (bpf_dynptr_from_skb(skb, 0, &ptr1)) { in test_dynptr_clone()
474 if (bpf_dynptr_adjust(&ptr1, off, bpf_dynptr_size(&ptr1))) { in test_dynptr_clone()
480 if (bpf_dynptr_clone(&ptr1, &ptr2)) { in test_dynptr_clone()
485 size = bpf_dynptr_size(&ptr1); in test_dynptr_clone()
493 if (bpf_dynptr_is_rdonly(&ptr2) != bpf_dynptr_is_rdonly(&ptr1)) { in test_dynptr_clone()
499 bpf_dynptr_adjust(&ptr1, 5, 5); in test_dynptr_clone()