Lines Matching refs:opcode
119 static int get_opcode(unsigned char *addr, unsigned int *opcode) in get_opcode() argument
125 *opcode = *(unsigned short *)addr; in get_opcode()
128 *opcode = *addr; in get_opcode()
135 #define CHECK_OP_TYPE(opcode, array, type) \ argument
137 if (array[i] == opcode) { \
145 unsigned int opcode; in get_ins_type() local
153 p += get_opcode(p, &opcode); in get_ins_type()
155 CHECK_OP_TYPE(opcode, reg_rop, REG_READ); in get_ins_type()
156 CHECK_OP_TYPE(opcode, reg_wop, REG_WRITE); in get_ins_type()
157 CHECK_OP_TYPE(opcode, imm_wop, IMM_WRITE); in get_ins_type()
166 unsigned int opcode; in get_ins_reg_width() local
173 p += get_opcode(p, &opcode); in get_ins_reg_width()
176 if (rw8[i] == opcode) in get_ins_reg_width()
180 if (rw32[i] == opcode) in get_ins_reg_width()
183 printk(KERN_ERR "mmiotrace: Unknown opcode 0x%02x\n", opcode); in get_ins_reg_width()
189 unsigned int opcode; in get_ins_mem_width() local
196 p += get_opcode(p, &opcode); in get_ins_mem_width()
199 if (mw8[i] == opcode) in get_ins_mem_width()
203 if (mw16[i] == opcode) in get_ins_mem_width()
207 if (mw32[i] == opcode) in get_ins_mem_width()
211 if (mw64[i] == opcode) in get_ins_mem_width()
214 printk(KERN_ERR "mmiotrace: Unknown opcode 0x%02x\n", opcode); in get_ins_mem_width()
412 unsigned int opcode; in get_ins_reg_val() local
420 p += get_opcode(p, &opcode); in get_ins_reg_val()
422 if (reg_rop[i] == opcode) in get_ins_reg_val()
426 if (reg_wop[i] == opcode) in get_ins_reg_val()
430 "0x%02x\n", opcode); in get_ins_reg_val()
435 if (opcode == 0xAA || opcode == 0xAB) { in get_ins_reg_val()
466 unsigned int opcode; in get_ins_imm_val() local
475 p += get_opcode(p, &opcode); in get_ins_imm_val()
477 if (imm_wop[i] == opcode) in get_ins_imm_val()
481 "0x%02x\n", opcode); in get_ins_imm_val()