Lines Matching refs:opcode

103 static int get_opcode(unsigned char *addr, unsigned int *opcode)  in get_opcode()  argument
109 *opcode = *(unsigned short *)addr; in get_opcode()
112 *opcode = *addr; in get_opcode()
119 #define CHECK_OP_TYPE(opcode, array, type) \ argument
121 if (array[i] == opcode) { \
129 unsigned int opcode; in get_ins_type() local
137 p += get_opcode(p, &opcode); in get_ins_type()
139 CHECK_OP_TYPE(opcode, reg_rop, REG_READ); in get_ins_type()
140 CHECK_OP_TYPE(opcode, reg_wop, REG_WRITE); in get_ins_type()
141 CHECK_OP_TYPE(opcode, imm_wop, IMM_WRITE); in get_ins_type()
150 unsigned int opcode; in get_ins_reg_width() local
157 p += get_opcode(p, &opcode); in get_ins_reg_width()
160 if (rw8[i] == opcode) in get_ins_reg_width()
164 if (rw32[i] == opcode) in get_ins_reg_width()
167 printk(KERN_ERR "mmiotrace: Unknown opcode 0x%02x\n", opcode); in get_ins_reg_width()
173 unsigned int opcode; in get_ins_mem_width() local
180 p += get_opcode(p, &opcode); in get_ins_mem_width()
183 if (mw8[i] == opcode) in get_ins_mem_width()
187 if (mw16[i] == opcode) in get_ins_mem_width()
191 if (mw32[i] == opcode) in get_ins_mem_width()
195 if (mw64[i] == opcode) in get_ins_mem_width()
198 printk(KERN_ERR "mmiotrace: Unknown opcode 0x%02x\n", opcode); in get_ins_mem_width()
396 unsigned int opcode; in get_ins_reg_val() local
404 p += get_opcode(p, &opcode); in get_ins_reg_val()
406 if (reg_rop[i] == opcode) in get_ins_reg_val()
410 if (reg_wop[i] == opcode) in get_ins_reg_val()
414 "0x%02x\n", opcode); in get_ins_reg_val()
419 if (opcode == 0xAA || opcode == 0xAB) { in get_ins_reg_val()
450 unsigned int opcode; in get_ins_imm_val() local
459 p += get_opcode(p, &opcode); in get_ins_imm_val()
461 if (imm_wop[i] == opcode) in get_ins_imm_val()
465 "0x%02x\n", opcode); in get_ins_imm_val()