Searched refs:bpf_size (Results 1 – 5 of 5) sorted by relevance
| /linux/net/sched/ |
| H A D | act_bpf.c | 190 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local 197 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops() 198 if (bpf_size != nla_len(tb[TCA_ACT_BPF_OPS])) in tcf_bpf_init_from_ops() 201 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
|
| H A D | cls_bpf.c | 342 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local 349 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops() 350 if (bpf_size != nla_len(tb[TCA_BPF_OPS])) in cls_bpf_prog_from_ops() 353 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 137 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument 139 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes() 141 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes() 143 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes() 145 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes() 1305 u32 dst_reg, u32 src_reg, s16 off, u8 bpf_size) in emit_atomic_rmw() argument 1312 maybe_emit_mod(&prog, dst_reg, src_reg, bpf_size == BPF_DW); in emit_atomic_rmw() 1398 u32 src_reg, s16 off, u8 bpf_size) in emit_atomic_ld_st() argument 1403 emit_ldx(pprog, bpf_size, dst_reg, src_reg, off); in emit_atomic_ld_st() 1407 emit_stx(pprog, bpf_size, dst_reg, src_reg, off); in emit_atomic_ld_st()
|
| /linux/tools/perf/util/ |
| H A D | dso.c | 878 static int bpf_size(struct dso *dso) in bpf_size() function 1148 return bpf_size(dso); in dso__data_file_size()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 6324 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument 6331 size = bpf_size_to_bytes(bpf_size); in check_mem_access() 6392 if (bpf_size != BPF_DW) { in check_mem_access()
|