Lines Matching refs:addr
27 * Get byte-value from addr and set it to *valp.
32 static int ldb_asm(uint32_t addr, uint32_t *valp)
51 : "r" (addr)
60 * Put byte-value to addr.
65 static int stb_asm(uint32_t addr, uint32_t val)
83 : "r"(val), "r" (addr)
95 static int ldh_c(struct pt_regs *regs, uint32_t rz, uint32_t addr)
99 if (ldb_asm(addr, &byte0))
101 addr += 1;
102 if (ldb_asm(addr, &byte1))
117 static int sth_c(struct pt_regs *regs, uint32_t rz, uint32_t addr)
125 if (stb_asm(addr, byte0))
128 addr += 1;
130 if (stb_asm(addr, byte1))
142 static int ldw_c(struct pt_regs *regs, uint32_t rz, uint32_t addr)
146 if (ldb_asm(addr, &byte0))
149 addr += 1;
150 if (ldb_asm(addr, &byte1))
153 addr += 1;
154 if (ldb_asm(addr, &byte2))
157 addr += 1;
158 if (ldb_asm(addr, &byte3))
176 static int stw_c(struct pt_regs *regs, uint32_t rz, uint32_t addr)
184 if (stb_asm(addr, byte0))
187 addr += 1;
189 if (stb_asm(addr, byte1))
192 addr += 1;
194 if (stb_asm(addr, byte2))
197 addr += 1;
199 if (stb_asm(addr, byte3))
220 uint32_t addr = 0;
263 addr = get_ptreg(regs, rx) + (imm << 1);
264 ret = ldh_c(regs, rz, addr);
267 addr = get_ptreg(regs, rx) + (imm << 2);
268 ret = ldw_c(regs, rz, addr);
271 addr = get_ptreg(regs, rx) + (imm << 1);
272 ret = sth_c(regs, rz, addr);
275 addr = get_ptreg(regs, rx) + (imm << 2);
276 ret = stw_c(regs, rz, addr);
293 pr_alert("%s opcode: %x, rz: %d, rx: %d, imm: %d, addr: %x.\n",
294 __func__, opcode, rz, rx, imm, addr);
300 force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)addr);