Lines Matching defs:imm
982 insn->imm = 195896080; /* => 0xbad2310 => "bad relo" */
1012 * Expected insn->imm value is determined using relocation kind and local
1013 * spec, and is checked before patching instruction. If actual insn->imm value
1017 * 1. rX = <imm> (assignment with immediate operand);
1018 * 2. rX += <imm> (arithmetic operations with immediate operand);
1022 * 6. *(T *)(rX + <off>) = <imm>, where T is one of {u8, u16, u32, u64}.
1052 if (res->validate && insn->imm != orig_val) {
1055 insn_idx, insn->imm, (unsigned long long)orig_val,
1059 orig_val = insn->imm;
1060 insn->imm = new_val;
1061 pr_debug("prog '%s': relo #%d: patched insn #%d (ALU/ALU64) imm %llu -> %llu\n",
1115 __u64 imm;
1126 imm = (__u32)insn[0].imm | ((__u64)insn[1].imm << 32);
1127 if (res->validate && imm != orig_val) {
1130 insn_idx, (unsigned long long)imm,
1135 insn[0].imm = new_val;
1136 insn[1].imm = new_val >> 32;
1139 (unsigned long long)imm, (unsigned long long)new_val);
1143 pr_warn("prog '%s': relo #%d: trying to relocate unrecognized insn #%d, code:0x%x, src:0x%x, dst:0x%x, off:0x%x, imm:0x%x\n",
1145 insn->src_reg, insn->dst_reg, insn->off, insn->imm);
1321 /* bpf_insn's imm value could get out of sync during linking */