Home
last modified time | relevance | path

Searched refs:bpf_dynptr_kern (Results 1 – 12 of 12) sorted by relevance

/linux/kernel/bpf/
H A Dcrypto.c271 const struct bpf_dynptr_kern *src, in bpf_crypto_crypt()
272 const struct bpf_dynptr_kern *dst, in bpf_crypto_crypt()
273 const struct bpf_dynptr_kern *siv, in bpf_crypto_crypt()
324 const struct bpf_dynptr_kern *src_kern = (struct bpf_dynptr_kern *)src; in bpf_crypto_decrypt()
325 const struct bpf_dynptr_kern *dst_kern = (struct bpf_dynptr_kern *)dst; in bpf_crypto_decrypt()
326 const struct bpf_dynptr_kern *siv_kern = (struct bpf_dynptr_kern *)siv__nullable; in bpf_crypto_decrypt()
345 const struct bpf_dynptr_kern *src_kern = (struct bpf_dynptr_kern *)src; in bpf_crypto_encrypt()
346 const struct bpf_dynptr_kern *dst_kern = (struct bpf_dynptr_kern *)dst; in bpf_crypto_encrypt()
347 const struct bpf_dynptr_kern *siv_kern = (struct bpf_dynptr_kern *)siv__nullable; in bpf_crypto_encrypt()
H A Dhelpers.c1768 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 Dringbuf.c671 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 Dverifier.c20863 struct bpf_dynptr_kern sig_ptr, data_ptr; in bpf_prog_verify_signature()
/linux/fs/
H A Dbpf_fs_kfuncs.c132 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 Dmeasure.c123 const struct bpf_dynptr_kern *digest_ptr = (struct bpf_dynptr_kern *)digest_p; in bpf_get_fsverity_digest()
/linux/include/linux/
H A Dbpf.h1455 struct bpf_dynptr_kern { struct
1487 u64 __bpf_dynptr_size(const struct bpf_dynptr_kern *ptr); argument
1488 const void *__bpf_dynptr_data(const struct bpf_dynptr_kern *ptr, u64 len);
1489 void *__bpf_dynptr_data_rw(const struct bpf_dynptr_kern *ptr, u64 len);
1490 bool __bpf_dynptr_is_rdonly(const struct bpf_dynptr_kern *ptr);
1491 int __bpf_dynptr_write(const struct bpf_dynptr_kern *dst, u64 offset,
1496 static inline int bpf_dynptr_check_off_len(const struct bpf_dynptr_kern *ptr, u64 offset, u64 len) in bpf_dynptr_check_off_len()
3217 void bpf_dynptr_init(struct bpf_dynptr_kern *ptr, void *data,
3219 void bpf_dynptr_set_null(struct bpf_dynptr_kern *ptr);
3220 void bpf_dynptr_set_rdonly(struct bpf_dynptr_kern *ptr);
[all …]
H A Dbpf_verifier.h301 #define BPF_DYNPTR_SIZE sizeof(struct bpf_dynptr_kern)
/linux/kernel/trace/
H A Dbpf_trace.c3485 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 Dfilter.c12425 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_skb()
12455 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_skb_meta()
12471 struct bpf_dynptr_kern *ptr = (struct bpf_dynptr_kern *)ptr__uninit; in bpf_dynptr_from_xdp()
12799 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 Dbpf_testmod.c983 const struct bpf_dynptr_kern *kern_ptr = (void *)ptr; in bpf_kfunc_call_stack_arg_dynptr()
/linux/Documentation/bpf/
H A Dkfuncs.rst172 __bpf_kfunc int bpf_dynptr_from_skb(..., struct bpf_dynptr_kern *ptr__uninit)