Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 25 of 1903) sorted by relevance

12345678910>>...77

/linux/arch/powerpc/net/
A Dbpf_jit_comp32.c288 s32 imm = insn[i].imm; in bpf_jit_build_body() local
339 imm = -imm; in bpf_jit_build_body()
348 imm = -imm; in bpf_jit_build_body()
450 imm = -imm; in bpf_jit_build_body()
468 imm = -imm; in bpf_jit_build_body()
472 imm = ilog2(imm); in bpf_jit_build_body()
1003 if (imm >= 0 && imm < 32768) { in bpf_jit_build_body()
1022 if (imm >= 0 && imm < 65536) { in bpf_jit_build_body()
1034 if (imm >= 0 && imm < 65536) { in bpf_jit_build_body()
1064 if (imm >= 0 && imm < 32768) { in bpf_jit_build_body()
[all …]
A Dbpf_jit_comp64.c315 s32 imm = insn[i].imm; in bpf_jit_build_body() local
358 if (!imm) { in bpf_jit_build_body()
360 } else if (imm >= -32768 && imm < 32768) { in bpf_jit_build_body()
369 if (!imm) { in bpf_jit_build_body()
371 } else if (imm > -32768 && imm <= 32768) { in bpf_jit_build_body()
387 if (imm >= -32768 && imm < 32768) in bpf_jit_build_body()
423 if (imm == 0) in bpf_jit_build_body()
588 if (imm < 0) in bpf_jit_build_body()
979 if (imm >= 0 && imm < 32768) { in bpf_jit_build_body()
1012 if (imm >= -32768 && imm < 32768) { in bpf_jit_build_body()
[all …]
/linux/arch/arm/net/
A Dbpf_jit_32.h170 #define ARM_ADD_I(rd, rn, imm) _AL3_I(ARM_INST_ADD, rd, rn, imm) argument
173 #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm) argument
177 #define ARM_AND_I(rd, rn, imm) _AL3_I(ARM_INST_AND, rd, rn, imm) argument
180 #define ARM_BIC_I(rd, rn, imm) _AL3_I(ARM_INST_BIC, rd, rn, imm) argument
187 #define ARM_CMP_I(rn, imm) _AL3_I(ARM_INST_CMP, 0, rn, imm) argument
190 #define ARM_EOR_I(rd, rn, imm) _AL3_I(ARM_INST_EOR, rd, rn, imm) argument
219 #define ARM_MOV_I(rd, imm) _AL3_I(ARM_INST_MOV, rd, 0, imm) argument
237 #define ARM_ORR_I(rd, rn, imm) _AL3_I(ARM_INST_ORR, rd, rn, imm) argument
251 #define ARM_RSB_I(rd, rn, imm) _AL3_I(ARM_INST_RSB, rd, rn, imm) argument
253 #define ARM_RSC_I(rd, rn, imm) _AL3_I(ARM_INST_RSC, rd, rn, imm) argument
[all …]
/linux/arch/mips/net/
A Dbpf_jit_comp.c194 if (imm >= -0x8000 && imm <= 0x7fff) { in emit_mov_i()
222 return imm >= -0x8000 && imm <= 0x7fff; in valid_alu_i()
225 return imm >= -0x7fff && imm <= 0x8000; in valid_alu_i()
230 return imm >= 0 && imm <= 0xffff; in valid_alu_i()
233 return imm == 0 || (imm > 0 && is_power_of_2(imm)); in valid_alu_i()
268 imm = ilog2(abs(imm)); in rewrite_alu_i()
278 imm = ilog2(imm); in rewrite_alu_i()
284 imm--; in rewrite_alu_i()
511 return imm >= 0 && imm <= 0xffff; in valid_jmp_i()
517 return imm >= -0x8000 && imm <= 0x7fff; in valid_jmp_i()
[all …]
A Dbpf_jit_comp32.c177 if (imm < 0) in emit_mov_se_i64()
210 if (imm > S32_MIN && imm < 0) in emit_alu_i64()
214 imm = -imm; in emit_alu_i64()
218 imm = -imm; in emit_alu_i64()
231 if (imm < 0) in emit_alu_i64()
239 if (imm < 0) in emit_alu_i64()
245 if (imm < 0) in emit_alu_i64()
1105 if (imm >= -0x7fff && imm <= 0x8000) { in emit_jmp_i64()
1464 s32 imm = insn->imm; in build_insn() local
1570 if (imm) in build_insn()
[all …]
A Dbpf_jit_comp64.c187 emit(ctx, daddiu, dst, dst, imm); in emit_alu_i64()
195 emit_alu_i(ctx, dst, imm, op); in emit_alu_i64()
631 s32 imm = insn->imm; in build_insn() local
639 emit_mov_i(ctx, dst, imm); in build_insn()
644 if (imm == 1) { in build_insn()
730 emit_mov_i(ctx, dst, imm); in build_insn()
810 emit_mov_i64(ctx, dst, (u32)imm | ((u64)insn[1].imm << 32)); in build_insn()
840 switch (imm) { in build_insn()
852 } else if (imm & BPF_FETCH) { in build_insn()
944 if (valid_jmp_i(jmp, imm)) { in build_insn()
[all …]
A Dbpf_jit_comp.h160 void emit_mov_i(struct jit_context *ctx, u8 dst, s32 imm);
166 bool valid_alu_i(u8 op, s32 imm);
169 bool rewrite_alu_i(u8 op, s32 imm, u8 *alu, s32 *val);
172 void emit_alu_i(struct jit_context *ctx, u8 dst, s32 imm, u8 op);
187 bool valid_jmp_i(u8 op, s32 imm);
190 void setup_jmp_i(struct jit_context *ctx, s32 imm, u8 width,
201 void emit_jmp_i(struct jit_context *ctx, u8 dst, s32 imm, s32 off, u8 op);
/linux/tools/include/linux/
A Dfilter.h40 .imm = 0 })
48 .imm = 0 })
58 .imm = IMM })
66 .imm = IMM })
76 .imm = LEN })
86 .imm = 0 })
94 .imm = 0 })
160 .imm = 0 })
170 .imm = 0 })
216 .imm = 0 })
[all …]
/linux/arch/nds32/mm/
A Dalignment.c204 imm = 1; in do_16()
212 imm = 1; in do_16()
220 imm = 1; in do_16()
228 imm = 0; in do_16()
236 imm = 1; in do_16()
244 imm = 1; in do_16()
252 imm = 1; in do_16()
260 imm = 0; in do_16()
285 if (imm) in do_16()
323 imm = 1; in do_32()
[all …]
/linux/samples/bpf/
A Dbpf_insn.h16 .imm = 0 })
24 .imm = 0 })
34 .imm = IMM })
42 .imm = IMM })
52 .imm = 0 })
60 .imm = 0 })
70 .imm = IMM })
125 .imm = 0 })
135 .imm = 0 })
181 .imm = 0 })
[all …]
/linux/kernel/bpf/
A Ddisasm.c23 insn->imm >= 0 && insn->imm < __BPF_FUNC_MAX_ID && in __func_get_name()
24 func_id_str[insn->imm]) in __func_get_name()
128 insn->imm, insn->dst_reg); in print_bpf_end_insn()
161 insn->imm); in print_bpf_insn()
171 (insn->imm == BPF_ADD || insn->imm == BPF_AND || in print_bpf_insn()
172 insn->imm == BPF_OR || insn->imm == BPF_XOR)) { in print_bpf_insn()
214 insn->off, insn->imm); in print_bpf_insn()
234 insn->imm); in print_bpf_insn()
245 u64 imm = ((u64)(insn + 1)->imm << 32) | (u32)insn->imm; in print_bpf_insn() local
251 imm = 0; in print_bpf_insn()
[all …]
/linux/arch/riscv/net/
A Dbpf_jit.h262 u32 imm; in rv_j_insn() local
287 u32 imm; in rv_ci_insn() local
325 u32 imm; in rv_cb_insn() local
542 u32 imm; in rvc_addi4spn() local
579 u32 imm; in rvc_addi16sp() local
633 u32 imm; in rvc_lwsp() local
661 u32 imm; in rvc_swsp() local
788 u32 imm; in rvc_ldsp() local
796 u32 imm; in rvc_sdsp() local
834 if (rvc_enabled() && rd == RV_REG_SP && rd == rs && is_10b_int(imm) && imm && !(imm & 0xf)) in emit_addi()
[all …]
A Dbpf_jit_comp32.c130 if (imm >= 0) in emit_imm32()
260 if (imm >= 0) in emit_alu_i64()
270 if (imm < 0) in emit_alu_i64()
280 if (imm < 0) in emit_alu_i64()
284 if (imm >= 32) { in emit_alu_i64()
297 if (imm >= 32) { in emit_alu_i64()
310 if (imm >= 32) { in emit_alu_i64()
964 s32 imm = insn->imm; in bpf_jit_emit_insn() local
1078 switch (imm) { in bpf_jit_emit_insn()
1103 switch (imm) { in bpf_jit_emit_insn()
[all …]
A Dbpf_jit_comp64.c533 s32 imm = insn->imm; in bpf_jit_emit_insn() local
541 if (imm == 1) { in bpf_jit_emit_insn()
633 switch (imm) { in bpf_jit_emit_insn()
655 if (imm == 16) in bpf_jit_emit_insn()
667 if (imm == 32) in bpf_jit_emit_insn()
707 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
729 if (is_12b_int(imm)) { in bpf_jit_emit_insn()
890 if (imm) { in bpf_jit_emit_insn()
924 if (!is64 && imm < 0) in bpf_jit_emit_insn()
970 imm64 = (u64)insn1.imm << 32 | (u32)imm; in bpf_jit_emit_insn()
[all …]
/linux/arch/s390/net/
A Dbpf_jit_comp.c701 s32 imm = insn->imm; in bpf_jit_insn() local
763 if (imm != 0) { in bpf_jit_insn()
770 if (!imm) in bpf_jit_insn()
788 if (imm != 0) { in bpf_jit_insn()
795 if (!imm) in bpf_jit_insn()
825 if (imm == 1) in bpf_jit_insn()
1049 if (imm == 0) in bpf_jit_insn()
1074 if (imm == 0) in bpf_jit_insn()
1099 if (imm == 0) in bpf_jit_insn()
1121 switch (imm) { in bpf_jit_insn()
[all …]
/linux/arch/arm64/net/
A Dbpf_jit_comp.c180 return !(imm & ~0xfff) || !(imm & ~0xfff000); in is_addsub_imm()
438 const s32 imm = insn->imm; in build_insn() local
449 if ((((imm) > 0) && ((imm) >> (bits))) || \ in build_insn()
450 (((imm) < 0) && (~(imm) >> (bits)))) { \ in build_insn()
452 i, imm, imm); \ in build_insn()
456 #define check_imm19(imm) check_imm(19, imm) in build_insn() argument
457 #define check_imm26(imm) check_imm(26, imm) in build_insn() argument
526 switch (imm) { in build_insn()
542 switch (imm) { in build_insn()
564 if (is_addsub_imm(imm)) { in build_insn()
[all …]
/linux/arch/arm64/lib/
A Dinsn.c198 u32 insn, u64 imm) in aarch64_insn_encode_immediate() argument
212 imm = immlo | immhi; in aarch64_insn_encode_immediate()
762 imm >>= 12; in aarch64_insn_gen_add_sub_imm()
1200 s32 imm; in aarch64_get_branch_offset() local
1324 if (!imm || imm == mask || imm & ~mask) in aarch64_encode_immediate()
1334 if ((imm & emask) != ((imm >> tmp) & emask)) in aarch64_encode_immediate()
1345 imm &= mask; in aarch64_encode_immediate()
1365 ror = __ffs64(imm); in aarch64_encode_immediate()
1374 imm |= ~mask; in aarch64_encode_immediate()
1382 ror = fls(~imm); in aarch64_encode_immediate()
[all …]
/linux/arch/arm/probes/kprobes/
A Dcheckers-common.c34 int imm = insn & 0xff; in checker_stack_use_imm_0xx() local
35 asi->stack_space = imm; in checker_stack_use_imm_0xx()
47 int imm = insn & 0xff; in checker_stack_use_t32strd() local
48 asi->stack_space = imm << 2; in checker_stack_use_t32strd()
56 int imm = ((insn & 0xf00) >> 4) + (insn & 0xf); in checker_stack_use_imm_x0x() local
57 asi->stack_space = imm; in checker_stack_use_imm_x0x()
66 int imm = insn & 0xfff; in checker_stack_use_imm_xxx() local
67 asi->stack_space = imm; in checker_stack_use_imm_xxx()
/linux/arch/sparc/net/
A Dbpf_jit_comp_64.c675 if (!is_simm5(imm)) in emit_compare_and_branch()
698 emit_cmpi(dst, imm, ctx); in emit_compare_and_branch()
785 dst, imm, ctx); in emit_compare_and_branch()
902 const s32 imm = insn->imm; in build_insn() local
1002 switch (imm) { in build_insn()
1026 switch (imm) { in build_insn()
1100 if (imm == 0) in build_insn()
1107 if (imm == 0) in build_insn()
1117 if (imm == 0) in build_insn()
1126 if (is_simm13(imm)) { in build_insn()
[all …]
/linux/arch/riscv/kernel/probes/
A Dsimulate-insn.c44 u32 imm; in simulate_jal() local
51 imm = ((opcode >> 21) & 0x3ff) << 1; in simulate_jal()
52 imm |= ((opcode >> 20) & 0x1) << 11; in simulate_jal()
53 imm |= ((opcode >> 12) & 0xff) << 12; in simulate_jal()
54 imm |= ((opcode >> 31) & 0x1) << 20; in simulate_jal()
56 instruction_pointer_set(regs, addr + sign_extend32((imm), 20)); in simulate_jal()
70 u32 imm = (opcode >> 20) & 0xfff; in simulate_jalr() local
82 instruction_pointer_set(regs, (base_addr + sign_extend32((imm), 11))&~1); in simulate_jalr()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
A Djit.c1272 if (!imm || !~imm) in wrp_alu_imm()
1278 if (!imm || !~imm) in wrp_alu_imm()
1285 if (!imm || !~imm) in wrp_alu_imm()
1298 u64 imm = insn->imm; /* sign extend */ in wrp_alu64_imm() local
1403 u64 imm = insn->imm; /* sign extend */ in cmp_imm() local
1518 u32 imm = insn->imm; in wrp_mul() local
1568 pre_shift = fls(imm & -imm) - 1; in wrp_div_imm()
1916 u64 imm = insn->imm; /* sign extend */ in add_imm64() local
1941 u64 imm = insn->imm; /* sign extend */ in sub_imm64() local
3138 u64 imm = insn->imm; /* sign extend */ in jeq_imm() local
[all …]
/linux/arch/sh/kernel/
A Ddisassemble.c300 int imm = 0; in print_sh_insn() local
318 if (imm & 0x80) in print_sh_insn()
319 imm |= ~0xff; in print_sh_insn()
320 imm = ((char)imm) * 2 + 4 ; in print_sh_insn()
324 if (imm & 0x800) in print_sh_insn()
325 imm |= ~0xfff; in print_sh_insn()
326 imm = imm * 2 + 4; in print_sh_insn()
329 imm = nibs[3]; in print_sh_insn()
332 imm = nibs[3] <<1; in print_sh_insn()
335 imm = nibs[3] <<2; in print_sh_insn()
[all …]
/linux/tools/bpf/bpftool/
A Dxlated_dumper.c173 unsigned long address = dd->address_call_base + insn->imm; in print_call()
177 (__u32) insn->imm < dd->nr_jited_ksyms && dd->jited_ksyms) in print_call()
178 address = dd->jited_ksyms[insn->imm]; in print_call()
195 "map[id:%u]", insn->imm); in print_imm()
198 "map[id:%u][0]+%u", insn->imm, (insn + 1)->imm); in print_imm()
201 "map[idx:%u]+%u", insn->imm, (insn + 1)->imm); in print_imm()
204 "subprog[%+d]", insn->imm); in print_imm()
284 print_hex_data_json((uint8_t *)(&insn[i].imm), in dump_xlated_json()
287 print_hex_data_json((uint8_t *)(&insn[i].imm), in dump_xlated_json()
/linux/arch/ia64/kernel/
A Dunaligned.c694 unsigned long imm; in emulate_load_updates() local
702 imm = ld.x << 7 | ld.imm; in emulate_load_updates()
713 ifa += imm; in emulate_load_updates()
915 unsigned long imm; in emulate_store_int() local
920 imm = ld.x << 7 | ld.r1; in emulate_store_int()
928 ifa += imm; in emulate_store_int()
1122 invala_fr(ld.imm); in emulate_load_floatpair()
1258 unsigned long imm; in emulate_store_float() local
1263 imm = ld.x << 7 | ld.r1; in emulate_store_float()
1268 imm |= SIGN_EXT9; in emulate_store_float()
[all …]
/linux/include/linux/
A Dfilter.h98 .imm = 0 })
106 .imm = 0 })
116 .imm = IMM })
144 .imm = 0 })
152 .imm = 0 })
179 .imm = 1 })
254 .imm = 0 })
264 .imm = 0 })
311 .imm = 0 })
331 .imm = 0 })
[all …]

Completed in 65 milliseconds

12345678910>>...77