| /linux/kernel/bpf/ |
| H A D | crypto.c | 272 const struct bpf_dynptr_kern *src, in bpf_crypto_crypt() 273 const struct bpf_dynptr_kern *dst, in bpf_crypto_crypt() 274 const struct bpf_dynptr_kern *siv, in bpf_crypto_crypt() 325 const struct bpf_dynptr_kern *src_kern = (struct bpf_dynptr_kern *)src; in bpf_crypto_decrypt() 326 const struct bpf_dynptr_kern *dst_kern = (struct bpf_dynptr_kern *)dst; in bpf_crypto_decrypt() 327 const struct bpf_dynptr_kern *siv_kern = (struct bpf_dynptr_kern *)siv__nullable; in bpf_crypto_decrypt() 346 const struct bpf_dynptr_kern *src_kern = (struct bpf_dynptr_kern *)src; in bpf_crypto_encrypt() 347 const struct bpf_dynptr_kern *dst_kern = (struct bpf_dynptr_kern *)dst; in bpf_crypto_encrypt() 348 const struct bpf_dynptr_kern *siv_kern = (struct bpf_dynptr_kern *)siv__nullable; in bpf_crypto_encrypt()
|
| H A D | helpers.c | 1768 bool __bpf_dynptr_is_rdonly(const struct bpf_dynptr_kern *ptr) in __bpf_dynptr_is_rdonly() 1773 void bpf_dynptr_set_rdonly(struct bpf_dynptr_kern *ptr) in bpf_dynptr_set_rdonly() 1778 static void bpf_dynptr_set_type(struct bpf_dynptr_kern *ptr, enum bpf_dynptr_type type) in bpf_dynptr_set_type() 1783 static enum bpf_dynptr_type bpf_dynptr_get_type(const struct bpf_dynptr_kern *ptr) in bpf_dynptr_get_type() 1788 u64 __bpf_dynptr_size(const struct bpf_dynptr_kern *ptr) in __bpf_dynptr_size() 1799 static void bpf_dynptr_advance_offset(struct bpf_dynptr_kern *ptr, u64 off) in bpf_dynptr_advance_offset() 1810 static void bpf_dynptr_set_size(struct bpf_dynptr_kern *ptr, u64 new_size) in bpf_dynptr_set_size() 1847 void bpf_dynptr_init(struct bpf_dynptr_kern *ptr, void *data, in bpf_dynptr_init() 1856 void bpf_dynptr_set_null(struct bpf_dynptr_kern *ptr) in bpf_dynptr_set_null() 1861 BPF_CALL_4(bpf_dynptr_from_mem, void *, data, u64, size, u64, flags, struct bpf_dynptr_kern *, ptr) in BPF_CALL_4() argument [all …]
|
| H A D | ringbuf.c | 671 struct bpf_dynptr_kern *, ptr) in BPF_CALL_4() argument 710 BPF_CALL_2(bpf_ringbuf_submit_dynptr, struct bpf_dynptr_kern *, ptr, u64, flags) in BPF_CALL_2() argument 729 BPF_CALL_2(bpf_ringbuf_discard_dynptr, struct bpf_dynptr_kern *, ptr, u64, flags) in BPF_CALL_2() argument 839 struct bpf_dynptr_kern dynptr; in BPF_CALL_4()
|
| H A D | verifier.c | 21093 struct bpf_dynptr_kern sig_ptr, data_ptr; in bpf_prog_verify_signature()
|
| /linux/fs/ |
| H A D | bpf_fs_kfuncs.c | 132 struct bpf_dynptr_kern *value_ptr = (struct bpf_dynptr_kern *)value_p; in bpf_get_dentry_xattr() 205 const struct bpf_dynptr_kern *value_ptr = (struct bpf_dynptr_kern *)value_p; in bpf_set_dentry_xattr_locked() 347 struct bpf_dynptr_kern *value_ptr = (struct bpf_dynptr_kern *)value_p; in bpf_cgroup_read_xattr() 380 struct bpf_dynptr_kern *value_ptr = (struct bpf_dynptr_kern *)value_p; in bpf_sock_read_xattr()
|
| /linux/fs/verity/ |
| H A D | measure.c | 123 const struct bpf_dynptr_kern *digest_ptr = (struct bpf_dynptr_kern *)digest_p; in bpf_get_fsverity_digest()
|
| /linux/include/linux/ |
| H A D | bpf.h | 1492 struct bpf_dynptr_kern { 1524 u64 __bpf_dynptr_size(const struct bpf_dynptr_kern *ptr); 1525 const void *__bpf_dynptr_data(const struct bpf_dynptr_kern *ptr, u64 len); 1526 void *__bpf_dynptr_data_rw(const struct bpf_dynptr_kern *ptr, u64 len); 1527 bool __bpf_dynptr_is_rdonly(const struct bpf_dynptr_kern *ptr); 1528 int __bpf_dynptr_write(const struct bpf_dynptr_kern *dst, u64 offset, 1533 static inline int bpf_dynptr_check_off_len(const struct bpf_dynptr_kern *ptr, u64 offset, u64 len) 3256 void bpf_dynptr_init(struct bpf_dynptr_kern *ptr, void *data, in bpf_prog_run_array_sleepable() 3258 void bpf_dynptr_set_null(struct bpf_dynptr_kern *ptr); in bpf_prog_run_array_sleepable() 3259 void bpf_dynptr_set_rdonly(struct bpf_dynptr_kern *pt in bpf_prog_run_array_sleepable() 1456 struct bpf_dynptr_kern { global() struct 1457 databpf_dynptr_kern global() argument 1488 offsetbpf_dynptr_kern global() argument [all...] |
| H A D | bpf_verifier.h | 302 #define BPF_DYNPTR_SIZE sizeof(struct bpf_dynptr_kern)
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 3485 const struct bpf_dynptr_kern *dst; in __bpf_dynptr_copy_str() 3495 dst = (struct bpf_dynptr_kern *)dptr; in __bpf_dynptr_copy_str() 3521 const struct bpf_dynptr_kern *dst; in __bpf_dynptr_copy() 3531 dst = (struct bpf_dynptr_kern *)dptr; in __bpf_dynptr_copy()
|
| /linux/net/core/ |
| H A D | filter.c | 12416 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_skb() 12446 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_skb_meta() 12462 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_xdp() 12790 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_skb_rdonly()
|
| /linux/tools/testing/selftests/bpf/test_kmods/ |
| H A D | bpf_testmod.c | 983 const struct bpf_dynptr_kern *kern_ptr = (void *)ptr; in bpf_kfunc_call_stack_arg_dynptr()
|
| /linux/Documentation/bpf/ |
| H A D | kfuncs.rst | 172 __bpf_kfunc int bpf_dynptr_from_skb(..., struct bpf_dynptr_kern *ptr__uninit)
|