• Home
  • Raw
  • Download

Lines Matching refs:opcode

118 static int get_opcode(unsigned char *addr, unsigned int *opcode)  in get_opcode()  argument
124 *opcode = *(unsigned short *)addr; in get_opcode()
127 *opcode = *addr; in get_opcode()
134 #define CHECK_OP_TYPE(opcode, array, type) \ argument
136 if (array[i] == opcode) { \
144 unsigned int opcode; in get_ins_type() local
152 p += get_opcode(p, &opcode); in get_ins_type()
154 CHECK_OP_TYPE(opcode, reg_rop, REG_READ); in get_ins_type()
155 CHECK_OP_TYPE(opcode, reg_wop, REG_WRITE); in get_ins_type()
156 CHECK_OP_TYPE(opcode, imm_wop, IMM_WRITE); in get_ins_type()
165 unsigned int opcode; in get_ins_reg_width() local
172 p += get_opcode(p, &opcode); in get_ins_reg_width()
175 if (rw8[i] == opcode) in get_ins_reg_width()
179 if (rw32[i] == opcode) in get_ins_reg_width()
182 printk(KERN_ERR "mmiotrace: Unknown opcode 0x%02x\n", opcode); in get_ins_reg_width()
188 unsigned int opcode; in get_ins_mem_width() local
195 p += get_opcode(p, &opcode); in get_ins_mem_width()
198 if (mw8[i] == opcode) in get_ins_mem_width()
202 if (mw16[i] == opcode) in get_ins_mem_width()
206 if (mw32[i] == opcode) in get_ins_mem_width()
210 if (mw64[i] == opcode) in get_ins_mem_width()
213 printk(KERN_ERR "mmiotrace: Unknown opcode 0x%02x\n", opcode); in get_ins_mem_width()
411 unsigned int opcode; in get_ins_reg_val() local
419 p += get_opcode(p, &opcode); in get_ins_reg_val()
421 if (reg_rop[i] == opcode) in get_ins_reg_val()
425 if (reg_wop[i] == opcode) in get_ins_reg_val()
429 "0x%02x\n", opcode); in get_ins_reg_val()
434 if (opcode == 0xAA || opcode == 0xAB) { in get_ins_reg_val()
465 unsigned int opcode; in get_ins_imm_val() local
474 p += get_opcode(p, &opcode); in get_ins_imm_val()
476 if (imm_wop[i] == opcode) in get_ins_imm_val()
480 "0x%02x\n", opcode); in get_ins_imm_val()