Searched refs:ptr_buf (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | dynptr_success.c | 688 struct bpf_dynptr ptr_buf, ptr_xdp; in test_dynptr_copy_xdp() local 697 bpf_ringbuf_reserve_dynptr(&ringbuf, len * chunks, 0, &ptr_buf); in test_dynptr_copy_xdp() 701 err = bpf_dynptr_write(&ptr_buf, i * len, data, len, 0); in test_dynptr_copy_xdp() 706 err = bpf_dynptr_copy(&ptr_xdp, 0, &ptr_buf, 0, len * chunks); in test_dynptr_copy_xdp() 722 err = bpf_dynptr_write(&ptr_buf, i * len, buf, len, 0); in test_dynptr_copy_xdp() 727 err = bpf_dynptr_copy(&ptr_buf, 0, &ptr_xdp, 0, len * chunks); in test_dynptr_copy_xdp() 733 err = bpf_dynptr_read(&buf, len, &ptr_buf, i * len, 0); in test_dynptr_copy_xdp() 758 bpf_ringbuf_discard_dynptr(&ptr_buf, 0); in test_dynptr_copy_xdp() 959 struct bpf_dynptr ptr_buf; in test_dynptr_probe() local 965 err = bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(buf), 0, &ptr_buf); in test_dynptr_probe() [all …]
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.c | 356 static int ublk_ctrl_get_affinity(struct ublk_dev *ctrl_dev, cpu_set_t **ptr_buf) in ublk_ctrl_get_affinity() argument 382 *ptr_buf = buf; in ublk_ctrl_get_affinity()
|
| /linux/net/core/ |
| H A D | filter.c | 4190 u8 *ptr_buf; in bpf_xdp_copy_buf() local 4204 ptr_buf = xdp->data; in bpf_xdp_copy_buf() 4211 src = flush ? buf : ptr_buf + copy_off; in bpf_xdp_copy_buf() 4212 dst = flush ? ptr_buf + copy_off : buf; in bpf_xdp_copy_buf() 4224 ptr_buf = skb_frag_address(next_frag); in bpf_xdp_copy_buf()
|