Home
last modified time | relevance | path

Searched refs:bpf_size (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dfilter.h400 int bpf_size = -EINVAL; \
403 bpf_size = BPF_B; \
405 bpf_size = BPF_H; \
407 bpf_size = BPF_W; \
409 bpf_size = BPF_DW; \
411 bpf_size; \
414 #define bpf_size_to_bytes(bpf_size) \ argument
418 if (bpf_size == BPF_B) \
420 else if (bpf_size == BPF_H) \
422 else if (bpf_size == BPF_W) \
[all …]
/kernel/linux/linux-5.10/net/sched/
Dact_bpf.c191 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
198 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
199 if (bpf_size != nla_len(tb[TCA_ACT_BPF_OPS])) in tcf_bpf_init_from_ops()
202 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
Dcls_bpf.c343 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
350 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
351 if (bpf_size != nla_len(tb[TCA_BPF_OPS])) in cls_bpf_prog_from_ops()
354 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
/kernel/linux/linux-5.10/arch/x86/net/
Dbpf_jit_comp.c71 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
73 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
75 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
77 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
79 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
Dbpf_jit_comp32.c1172 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
1174 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
1176 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
1178 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
1180 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
/kernel/linux/linux-5.10/tools/perf/util/
Ddso.c755 static int bpf_size(struct dso *dso) in bpf_size() function
1023 return bpf_size(dso); in dso__data_file_size()
/kernel/linux/linux-5.10/kernel/bpf/
Dverifier.c3773 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument
3781 size = bpf_size_to_bytes(bpf_size); in check_mem_access()