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()
192 if (ins.rex_prefix.nbytes) { in arch_decode_instruction()
193 rex = ins.rex_prefix.bytes[0]; in arch_decode_instruction()
200 if (ins.modrm.nbytes) { in arch_decode_instruction()
201 modrm = ins.modrm.bytes[0]; in arch_decode_instruction()
207 if (ins.sib.nbytes) { in arch_decode_instruction()
208 sib = ins.sib.bytes[0]; in arch_decode_instruction()
286 imm = ins.immediate.value; in arch_decode_instruction()
317 op->src.offset = ins.immediate.value; in arch_decode_instruction()
364 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
397 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
410 op->dest.offset = ins.displacement.value; in arch_decode_instruction()
427 op->src.offset = ins.displacement.value; in arch_decode_instruction()
440 op->src.offset = ins.displacement.value; in arch_decode_instruction()
472 op->src.offset = ins.displacement.value; in arch_decode_instruction()
518 switch (insn_last_prefix_id(&ins)) { in arch_decode_instruction()
559 if (ins.prefixes.nbytes == 1 && in arch_decode_instruction()
560 ins.prefixes.bytes[0] == 0xf2) { in arch_decode_instruction()
630 if (ins.length == 3+4+4 && !strncmp(sec->name, ".init.text", 10)) { in arch_decode_instruction()
711 if (has_notrack_prefix(&ins)) in arch_decode_instruction()
717 if (has_notrack_prefix(&ins)) in arch_decode_instruction()
740 insn->immediate = ins.immediate.nbytes ? ins.immediate.value : 0; in arch_decode_instruction()