Searched refs:bpf_size (Results 1 – 6 of 6) sorted by relevance
190 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local197 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()
342 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local349 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()
527 int bpf_size = -EINVAL; \530 bpf_size = BPF_B; \532 bpf_size = BPF_H; \534 bpf_size = BPF_W; \536 bpf_size = BPF_DW; \538 bpf_size; \541 #define bpf_size_to_bytes(bpf_size) \ argument545 if (bpf_size == BPF_B) \547 else if (bpf_size == BPF_H) \549 else if (bpf_size == BPF_W) \[all …]
1172 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument1174 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()
867 static int bpf_size(struct dso *dso) in bpf_size() function1139 return bpf_size(dso); in dso__data_file_size()
7529 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument7536 size = bpf_size_to_bytes(bpf_size); in check_mem_access()7601 if (bpf_size != BPF_DW) { in check_mem_access()