Lines Matching refs:ins
153 struct insn ins; in arch_decode_instruction() local
167 ret = insn_decode(&ins, sec->data->d_buf + offset, maxlen, in arch_decode_instruction()
174 insn->len = ins.length; in arch_decode_instruction()
177 if (ins.vex_prefix.nbytes) in arch_decode_instruction()
180 prefix = ins.prefixes.bytes[0]; in arch_decode_instruction()
182 op1 = ins.opcode.bytes[0]; in arch_decode_instruction()
183 op2 = ins.opcode.bytes[1]; in arch_decode_instruction()
184 op3 = ins.opcode.bytes[2]; in arch_decode_instruction()
186 if (ins.rex_prefix.nbytes) { in arch_decode_instruction()
187 rex = ins.rex_prefix.bytes[0]; in arch_decode_instruction()
194 if (ins.modrm.nbytes) { in arch_decode_instruction()
195 modrm = ins.modrm.bytes[0]; in arch_decode_instruction()
201 if (ins.sib.nbytes) { in arch_decode_instruction()
202 sib = ins.sib.bytes[0]; in arch_decode_instruction()
280 imm = ins.immediate.value; in arch_decode_instruction()
311 op->src.offset = ins.immediate.value; in arch_decode_instruction()
358 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
391 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
404 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
421 op->src.offset = ins.displacement.value; in arch_decode_instruction()
434 op->src.offset = ins.displacement.value; in arch_decode_instruction()
466 op->src.offset = ins.displacement.value; in arch_decode_instruction()
544 if (ins.prefixes.nbytes == 1 && in arch_decode_instruction()
545 ins.prefixes.bytes[0] == 0xf2) { in arch_decode_instruction()
615 if (ins.length == 3+4+4 && !strncmp(sec->name, ".init.text", 10)) { in arch_decode_instruction()
696 if (has_notrack_prefix(&ins)) in arch_decode_instruction()
702 if (has_notrack_prefix(&ins)) in arch_decode_instruction()
725 insn->immediate = ins.immediate.nbytes ? ins.immediate.value : 0; in arch_decode_instruction()