/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 294 u32 *addrs, bool extra_pass) in bpf_jit_build_body() argument 301 u32 exit_addr = addrs[flen]; in bpf_jit_build_body() 319 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 505 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 514 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 523 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 531 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 569 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 634 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 717 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() [all …]
|
D | bpf_jit_comp.c | 112 unsigned int *addrs) in bpf_jit_build_body() argument 121 unsigned int exit_addr = addrs[flen]; in bpf_jit_build_body() 131 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 174 PPC_BCC(COND_EQ, addrs[ctx->pc_ret0]); in bpf_jit_build_body() 351 PPC_BCC(COND_EQ, addrs[ctx->pc_ret0]); in bpf_jit_build_body() 460 PPC_JMP(addrs[i + 1 + K]); in bpf_jit_build_body() 483 PPC_JMP(addrs[i + 1 + filter[i].jt]); in bpf_jit_build_body() 526 addrs[i + 1 + filter[i].jf]); in bpf_jit_build_body() 528 PPC_BCC(true_cond, addrs[i + 1 + filter[i].jt]); in bpf_jit_build_body() 530 PPC_JMP(addrs[i + 1 + filter[i].jf]); in bpf_jit_build_body() [all …]
|
/arch/powerpc/kernel/ |
D | pci_of_scan.c | 123 const __be32 *addrs; in of_pci_parse_addrs() local 128 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs() 129 if (!addrs || !proplen) { in of_pci_parse_addrs() 130 addrs = of_get_property(node, "reg", &proplen); in of_pci_parse_addrs() 131 if (!addrs || !proplen) in of_pci_parse_addrs() 136 pr_debug(" parse addresses (%d bytes) @ %p\n", proplen, addrs); in of_pci_parse_addrs() 137 for (; proplen >= 20; proplen -= 20, addrs += 5) { in of_pci_parse_addrs() 138 flags = pci_parse_of_flags(of_read_number(addrs, 1), 0); in of_pci_parse_addrs() 141 base = of_read_number(&addrs[1], 2); in of_pci_parse_addrs() 142 size = of_read_number(&addrs[3], 2); in of_pci_parse_addrs() [all …]
|
/arch/x86/net/ |
D | bpf_jit_comp.c | 380 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, in do_jit() argument 393 addrs[0] = prog - temp; in do_jit() 830 jmp_offset = func - (image + addrs[i]); in do_jit() 967 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 989 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 1007 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit() 1048 addrs[i] = proglen; in do_jit() 1056 int *addrs; member 1072 int *addrs; in bpf_int_jit_compile() local 1100 addrs = jit_data->addrs; in bpf_int_jit_compile() [all …]
|
D | bpf_jit_comp32.c | 1462 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, in do_jit() argument 1890 jmp_offset = func - (image + addrs[i]); in do_jit() 2132 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2181 jmp_offset = addrs[i + insn->off] - addrs[i] + 8; in do_jit() 2194 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2213 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2235 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit() 2270 addrs[i] = proglen; in do_jit() 2289 int *addrs; in bpf_int_jit_compile() local 2308 addrs = kmalloc_array(prog->len, sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() [all …]
|
/arch/sparc/net/ |
D | bpf_jit_comp_32.c | 241 do { void *_here = image + addrs[i] - 8; \ 248 do { unsigned int _here = addrs[i] - 8; \ 332 unsigned int *addrs; in bpf_jit_compile() local 338 addrs = kmalloc_array(flen, sizeof(*addrs), GFP_KERNEL); in bpf_jit_compile() 339 if (addrs == NULL) in bpf_jit_compile() 347 addrs[i] = proglen; in bpf_jit_compile() 464 t_offset = addrs[pc_ret0 - 1]; in bpf_jit_compile() 633 emit_jump(addrs[i + K]); in bpf_jit_compile() 652 cond_branch: f_offset = addrs[i + filter[i].jf]; in bpf_jit_compile() 653 t_offset = addrs[i + filter[i].jt]; in bpf_jit_compile() [all …]
|
/arch/s390/net/ |
D | bpf_jit_comp.c | 37 u32 *addrs; /* Array with relative instruction addresses */ member 248 int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\ 513 u32 *addrs = jit->addrs; in bpf_jit_insn() local 1278 jmp_off = addrs[i + off + 1] - (addrs[i + 1] - 4); in bpf_jit_insn() 1306 jit->addrs[i + insn_count] = jit->prg; in bpf_jit_prog() 1364 if (jit_data->ctx.addrs) { in bpf_int_jit_compile() 1373 jit.addrs = kvcalloc(fp->len + 1, sizeof(*jit.addrs), GFP_KERNEL); in bpf_int_jit_compile() 1374 if (jit.addrs == NULL) { in bpf_int_jit_compile() 1424 bpf_prog_fill_jited_linfo(fp, jit.addrs + 1); in bpf_int_jit_compile() 1426 kvfree(jit.addrs); in bpf_int_jit_compile()
|
/arch/x86/mm/ |
D | pageattr-test.c | 115 static unsigned long addrs[NPAGES]; variable 173 addrs[k] = addr[i] + k*PAGE_SIZE; in pageattr_test() 187 err = change_page_attr_set(addrs, len[1], PAGE_CPA_TEST, 1); in pageattr_test()
|
/arch/sparc/kernel/ |
D | pci.c | 210 const u32 *addrs; in pci_parse_of_addrs() local 213 addrs = of_get_property(node, "assigned-addresses", &proplen); in pci_parse_of_addrs() 214 if (!addrs) in pci_parse_of_addrs() 218 proplen, addrs); in pci_parse_of_addrs() 220 for (; proplen >= 20; proplen -= 20, addrs += 5, op_res++) { in pci_parse_of_addrs() 225 flags = pci_parse_of_flags(addrs[0]); in pci_parse_of_addrs() 228 i = addrs[0] & 0xff; in pci_parse_of_addrs()
|
/arch/arm64/kernel/probes/ |
D | kprobes.c | 41 void *addrs[1]; in patch_text() local 44 addrs[0] = addr; in patch_text() 47 return aarch64_insn_patch_text(addrs, insns, 1); in patch_text()
|
/arch/powerpc/platforms/cell/ |
D | spu_base.c | 256 void *addrs[] = { in spu_setup_kernel_slbs() local 263 for (i = 0; i < ARRAY_SIZE(addrs); i++) { in spu_setup_kernel_slbs() 264 if (__slb_present(slbs, nr_slbs, addrs[i])) in spu_setup_kernel_slbs() 267 __spu_kernel_slb(addrs[i], &slbs[nr_slbs]); in spu_setup_kernel_slbs()
|
/arch/arm64/include/asm/ |
D | insn.h | 461 int aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt);
|
/arch/arm64/kernel/ |
D | insn.c | 212 int __kprobes aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt) in aarch64_insn_patch_text() argument 215 .text_addrs = addrs, in aarch64_insn_patch_text()
|