Searched refs:bpf_size (Results 1 – 6 of 6) 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 | 344 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local 351 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops() 352 if (bpf_size != nla_len(tb[TCA_BPF_OPS])) in cls_bpf_prog_from_ops() 355 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL_ACCOUNT); in cls_bpf_prog_from_ops()
|
| /linux/include/linux/ |
| H A D | filter.h | 583 int bpf_size = -EINVAL; \ 586 bpf_size = BPF_B; \ 588 bpf_size = BPF_H; \ 590 bpf_size = BPF_W; \ 592 bpf_size = BPF_DW; \ 594 bpf_size; \ 597 #define bpf_size_to_bytes(bpf_size) \ argument 601 if (bpf_size == BPF_B) \ 603 else if (bpf_size == BPF_H) \ 605 else if (bpf_size == BPF_W) \ [all …]
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 139 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument 141 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes() 143 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes() 145 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes() 147 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes() 1335 u32 dst_reg, u32 src_reg, s16 off, u8 bpf_size) in emit_atomic_rmw() argument 1342 maybe_emit_mod(&prog, dst_reg, src_reg, bpf_size == BPF_DW); in emit_atomic_rmw() 1428 u32 src_reg, s16 off, u8 bpf_size) in emit_atomic_ld_st() argument 1433 emit_ldx(pprog, bpf_size, dst_reg, src_reg, off); in emit_atomic_ld_st() 1437 emit_stx(pprog, bpf_size, dst_re in emit_atomic_ld_st() [all...] |
| /linux/tools/perf/util/ |
| H A D | dso.c | 920 static int bpf_size(struct dso *dso) in __dso_cache__find() 1203 return bpf_size(dso); in dso__data_read_offset() 878 static int bpf_size(struct dso *dso) bpf_size() function
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 6336 int bpf_size, int value_regno, bool is_ldsx) in check_map_mem_read() argument 6339 int size = bpf_size_to_bytes(bpf_size); in check_map_mem_read() 6344 if (bpf_size != BPF_DW) { in check_map_mem_read() 6387 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument 6393 size = bpf_size_to_bytes(bpf_size); in check_mem_access() 6434 err = check_map_mem_read(env, reg, off, bpf_size, value_regno, is_ldsx); in check_mem_access()
|