Lines Matching refs:ins

159 	struct insn ins;  in arch_decode_instruction()  local
173 ret = insn_decode(&ins, sec->data->d_buf + offset, maxlen, in arch_decode_instruction()
180 insn->len = ins.length; in arch_decode_instruction()
183 if (ins.vex_prefix.nbytes) in arch_decode_instruction()
186 prefix = ins.prefixes.bytes[0]; in arch_decode_instruction()
188 op1 = ins.opcode.bytes[0]; in arch_decode_instruction()
189 op2 = ins.opcode.bytes[1]; in arch_decode_instruction()
190 op3 = ins.opcode.bytes[2]; in arch_decode_instruction()
201 if (ins.rex_prefix.nbytes) { in arch_decode_instruction()
202 rex = ins.rex_prefix.bytes[0]; in arch_decode_instruction()
209 if (ins.modrm.nbytes) { in arch_decode_instruction()
210 modrm = ins.modrm.bytes[0]; in arch_decode_instruction()
216 if (ins.sib.nbytes) { in arch_decode_instruction()
217 sib = ins.sib.bytes[0]; in arch_decode_instruction()
295 imm = ins.immediate.value; in arch_decode_instruction()
326 op->src.offset = ins.immediate.value; in arch_decode_instruction()
373 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
406 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
419 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
436 op->src.offset = ins.displacement.value; in arch_decode_instruction()
449 op->src.offset = ins.displacement.value; in arch_decode_instruction()
483 op->src.offset = ins.displacement.value; in arch_decode_instruction()
529 switch (insn_last_prefix_id(&ins)) { in arch_decode_instruction()
574 if (ins.prefixes.nbytes == 1 && in arch_decode_instruction()
575 ins.prefixes.bytes[0] == 0xf2) { in arch_decode_instruction()
644 if (ins.length == 3+4+4 && !strncmp(sec->name, ".init.text", 10)) { in arch_decode_instruction()
725 if (has_notrack_prefix(&ins)) in arch_decode_instruction()
731 if (has_notrack_prefix(&ins)) in arch_decode_instruction()
754 if (ins.immediate.nbytes) in arch_decode_instruction()
755 insn->immediate = ins.immediate.value; in arch_decode_instruction()
756 else if (ins.displacement.nbytes) in arch_decode_instruction()
757 insn->immediate = ins.displacement.value; in arch_decode_instruction()