/arch/powerpc/net/ |
D | bpf_jit_comp.c | 28 struct codegen_context *ctx, u32 *addrs) in bpf_jit_fixup_addresses() argument 61 ctx->idx = addrs[i] / 4; in bpf_jit_fixup_addresses() 71 ctx->idx = addrs[i] / 4; in bpf_jit_fixup_addresses() 75 for (j = ctx->idx - addrs[i] / 4; j < 4; j++) in bpf_jit_fixup_addresses() 81 for (j = ctx->idx - addrs[i] / 4; j < 5; j++) in bpf_jit_fixup_addresses() 94 u32 *addrs; member 111 u32 *addrs; in bpf_int_jit_compile() local 145 addrs = jit_data->addrs; in bpf_int_jit_compile() 146 if (addrs) { in bpf_int_jit_compile() 156 addrs = kcalloc(flen + 1, sizeof(*addrs), GFP_KERNEL); in bpf_int_jit_compile() [all …]
|
D | bpf_jit_comp64.c | 300 u32 *addrs, bool extra_pass) in bpf_jit_build_body() argument 308 u32 exit_addr = addrs[flen]; in bpf_jit_build_body() 327 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 528 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 537 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 546 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 554 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 592 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 661 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 788 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() [all …]
|
D | bpf_jit_comp32.c | 274 u32 *addrs, bool extra_pass) in bpf_jit_build_body() argument 281 u32 exit_addr = addrs[flen]; in bpf_jit_build_body() 302 addrs[i] = ctx->idx * 4; in bpf_jit_build_body() 851 addrs[++i] = ctx->idx * 4; in bpf_jit_build_body() 894 PPC_JMP(addrs[i + 1 + off]); in bpf_jit_build_body() 1096 PPC_BCC(true_cond, addrs[i + 1 + off]); in bpf_jit_build_body() 1104 ret = bpf_jit_emit_tail_call(image, ctx, addrs[i + 1]); in bpf_jit_build_body() 1124 addrs[i] = ctx->idx * 4; in bpf_jit_build_body()
|
D | bpf_jit.h | 179 u32 *addrs, bool extra_pass);
|
/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/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 | 38 u32 *addrs; /* Array with relative instruction addresses */ member 251 int rel = (addrs[(i) + (off) + 1] - jit->prg) / 2; \ 700 u32 *addrs = jit->addrs; in bpf_jit_insn() local 1577 can_use_rel(jit, addrs[i + off + 1])) { in bpf_jit_insn() 1580 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn() 1584 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn() 1595 can_use_rel(jit, addrs[i + off + 1])) { in bpf_jit_insn() 1607 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn() 1613 can_use_rel(jit, addrs[i + off + 1])) { in bpf_jit_insn() 1625 mask >> 12, addrs[i + off + 1]); in bpf_jit_insn() [all …]
|
/arch/x86/net/ |
D | bpf_jit_comp.c | 883 #define INSN_SZ_DIFF (((addrs[i] - addrs[i - 1]) - (prog - temp))) 885 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, in do_jit() argument 915 addrs[0] = proglen; in do_jit() 1429 if (!imm32 || emit_call(&prog, func, image + addrs[i - 1] + 7)) in do_jit() 1432 if (!imm32 || emit_call(&prog, func, image + addrs[i - 1])) in do_jit() 1440 &prog, image + addrs[i - 1], in do_jit() 1448 image + addrs[i - 1], in do_jit() 1576 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 1622 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 1684 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit() [all …]
|
D | bpf_jit_comp32.c | 1659 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, in do_jit() argument 2098 image + addrs[i], in do_jit() 2107 jmp_offset = func - (image + addrs[i]); in do_jit() 2141 emit_bpf_tail_call(&prog, image + addrs[i - 1]); in do_jit() 2365 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2414 jmp_offset = addrs[i + insn->off] - addrs[i] + 8; in do_jit() 2427 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2446 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2466 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit() 2503 proglen + ilen != addrs[i])) { in do_jit() [all …]
|
/arch/arm64/include/asm/ |
D | patching.h | 12 int aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt);
|
/arch/arm64/kernel/ |
D | patching.c | 143 int __kprobes aarch64_insn_patch_text(void *addrs[], u32 insns[], int cnt) in aarch64_insn_patch_text() argument 146 .text_addrs = addrs, in aarch64_insn_patch_text()
|
/arch/x86/mm/pat/ |
D | cpa-test.c | 114 static unsigned long addrs[NPAGES]; variable 172 addrs[k] = addr[i] + k*PAGE_SIZE; in pageattr_test() 186 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/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/kernel/probes/ |
D | kprobes.c | 47 void *addrs[] = {addr, addr + 1}; in arch_prepare_ss_slot() local 51 aarch64_insn_patch_text(addrs, insns, 2); in arch_prepare_ss_slot()
|