/arch/powerpc/net/ |
D | bpf_jit_comp.c | 117 unsigned int *addrs) in bpf_jit_build_body() argument 126 unsigned int exit_addr = addrs[flen]; in bpf_jit_build_body() 136 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 179 PPC_BCC(COND_EQ, addrs[ctx->pc_ret0]); in bpf_jit_build_body() 353 PPC_BCC(COND_EQ, addrs[ctx->pc_ret0]); in bpf_jit_build_body() 463 PPC_JMP(addrs[i + 1 + K]); in bpf_jit_build_body() 486 PPC_JMP(addrs[i + 1 + filter[i].jt]); in bpf_jit_build_body() 529 addrs[i + 1 + filter[i].jf]); in bpf_jit_build_body() 531 PPC_BCC(true_cond, addrs[i + 1 + filter[i].jt]); in bpf_jit_build_body() 533 PPC_JMP(addrs[i + 1 + filter[i].jf]); in bpf_jit_build_body() [all …]
|
D | bpf_jit_comp64.c | 299 u32 *addrs) in bpf_jit_build_body() argument 306 u32 exit_addr = addrs[flen]; in bpf_jit_build_body() 322 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 744 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 790 PPC_JMP(addrs[i + 1 + off]); in bpf_jit_build_body() 877 PPC_BCC(true_cond, addrs[i + 1 + off]); in bpf_jit_build_body() 944 bpf_jit_emit_tail_call(image, ctx, addrs[i + 1]); in bpf_jit_build_body() 960 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 973 u32 *addrs; in bpf_int_jit_compile() local 995 addrs = kzalloc((flen+1) * sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() [all …]
|
/arch/powerpc/kernel/ |
D | pci_of_scan.c | 80 const __be32 *addrs; in of_pci_parse_addrs() local 84 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs() 85 if (!addrs) in of_pci_parse_addrs() 87 pr_debug(" parse addresses (%d bytes) @ %p\n", proplen, addrs); in of_pci_parse_addrs() 88 for (; proplen >= 20; proplen -= 20, addrs += 5) { in of_pci_parse_addrs() 89 flags = pci_parse_of_flags(of_read_number(addrs, 1), 0); in of_pci_parse_addrs() 92 base = of_read_number(&addrs[1], 2); in of_pci_parse_addrs() 93 size = of_read_number(&addrs[3], 2); in of_pci_parse_addrs() 96 i = of_read_number(addrs, 1) & 0xff; in of_pci_parse_addrs()
|
/arch/x86/net/ |
D | bpf_jit_comp.c | 350 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, in do_jit() argument 566 jmp_offset = ctx->cleanup_addr - (addrs[i] - 11); in do_jit() 854 jmp_offset = func - (image + addrs[i]); in do_jit() 956 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 969 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 991 jmp_offset = func - (image + addrs[i]); in do_jit() 1039 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit() 1082 addrs[i] = proglen; in do_jit() 1100 int *addrs; in bpf_int_jit_compile() local 1118 addrs = kmalloc(prog->len * sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() [all …]
|
/arch/sparc/net/ |
D | bpf_jit_comp.c | 278 do { void *_here = image + addrs[i] - 8; \ 285 do { unsigned int _here = addrs[i] - 8; \ 369 unsigned int *addrs; in bpf_jit_compile() local 375 addrs = kmalloc(flen * sizeof(*addrs), GFP_KERNEL); in bpf_jit_compile() 376 if (addrs == NULL) in bpf_jit_compile() 384 addrs[i] = proglen; in bpf_jit_compile() 503 t_offset = addrs[pc_ret0 - 1]; in bpf_jit_compile() 683 emit_jump(addrs[i + K]); in bpf_jit_compile() 702 cond_branch: f_offset = addrs[i + filter[i].jf]; in bpf_jit_compile() 703 t_offset = addrs[i + filter[i].jt]; in bpf_jit_compile() [all …]
|
/arch/s390/net/ |
D | bpf_jit_comp.c | 34 u32 *addrs; /* Array with relative instruction addresses */ member 248 int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\ 490 u32 *addrs = jit->addrs; in bpf_jit_insn() local 1163 jmp_off = addrs[i + off + 1] - (addrs[i + 1] - 4); in bpf_jit_insn() 1256 jit->addrs[i + insn_count] = jit->prg; in bpf_jit_prog() 1301 jit.addrs = kcalloc(fp->len + 1, sizeof(*jit.addrs), GFP_KERNEL); in bpf_int_jit_compile() 1302 if (jit.addrs == NULL) { in bpf_int_jit_compile() 1344 kfree(jit.addrs); in bpf_int_jit_compile()
|
/arch/sparc/kernel/ |
D | pci.c | 209 const u32 *addrs; in pci_parse_of_addrs() local 212 addrs = of_get_property(node, "assigned-addresses", &proplen); in pci_parse_of_addrs() 213 if (!addrs) in pci_parse_of_addrs() 217 proplen, addrs); in pci_parse_of_addrs() 219 for (; proplen >= 20; proplen -= 20, addrs += 5, op_res++) { in pci_parse_of_addrs() 224 flags = pci_parse_of_flags(addrs[0]); in pci_parse_of_addrs() 227 i = addrs[0] & 0xff; in pci_parse_of_addrs()
|
/arch/arm64/kernel/ |
D | insn.c | 258 int __kprobes aarch64_insn_patch_text_sync(void *addrs[], u32 insns[], int cnt) in aarch64_insn_patch_text_sync() argument 261 .text_addrs = addrs, in aarch64_insn_patch_text_sync() 274 int __kprobes aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt) in aarch64_insn_patch_text() argument 281 ret = aarch64_insn_read(addrs[0], &insn); in aarch64_insn_patch_text() 293 ret = aarch64_insn_patch_text_nosync(addrs[0], insns[0]); in aarch64_insn_patch_text() 299 return aarch64_insn_patch_text_sync(addrs, insns, cnt); in aarch64_insn_patch_text()
|
/arch/arm64/kernel/probes/ |
D | kprobes.c | 122 void *addrs[1]; in patch_text() local 125 addrs[0] = (void *)addr; in patch_text() 128 return aarch64_insn_patch_text(addrs, insns, 1); in patch_text()
|
/arch/powerpc/platforms/cell/ |
D | spu_base.c | 269 void *addrs[] = { in spu_setup_kernel_slbs() local 276 for (i = 0; i < ARRAY_SIZE(addrs); i++) { in spu_setup_kernel_slbs() 277 if (__slb_present(slbs, nr_slbs, addrs[i])) in spu_setup_kernel_slbs() 280 __spu_kernel_slb(addrs[i], &slbs[nr_slbs]); in spu_setup_kernel_slbs()
|
/arch/arm64/include/asm/ |
D | insn.h | 404 int aarch64_insn_patch_text_sync(void *addrs[], u32 insns[], int cnt); 405 int aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt);
|