Searched refs:bpf_size (Results 1 – 7 of 7) sorted by relevance
381 int bpf_size = -EINVAL; \384 bpf_size = BPF_B; \386 bpf_size = BPF_H; \388 bpf_size = BPF_W; \390 bpf_size = BPF_DW; \392 bpf_size; \395 #define bpf_size_to_bytes(bpf_size) \ argument399 if (bpf_size == BPF_B) \401 else if (bpf_size == BPF_H) \403 else if (bpf_size == BPF_W) \[all …]
188 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local195 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()196 if (bpf_size != nla_len(tb[TCA_ACT_BPF_OPS])) in tcf_bpf_init_from_ops()199 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
343 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local350 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()
68 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument70 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()72 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()74 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()76 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
1171 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument1173 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()1175 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()1177 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()1179 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
739 static int bpf_size(struct dso *dso) in bpf_size() function993 return bpf_size(dso); in dso__data_file_size()
2749 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument2757 size = bpf_size_to_bytes(bpf_size); in check_mem_access()