Lines Matching refs:addr_t
112 addr_t addr) in __peek_user_per()
116 if (addr == (addr_t) &dummy->cr9) in __peek_user_per()
120 else if (addr == (addr_t) &dummy->cr10) in __peek_user_per()
124 else if (addr == (addr_t) &dummy->cr11) in __peek_user_per()
128 else if (addr == (addr_t) &dummy->bits) in __peek_user_per()
132 else if (addr == (addr_t) &dummy->starting_addr) in __peek_user_per()
135 else if (addr == (addr_t) &dummy->ending_addr) in __peek_user_per()
138 else if (addr == (addr_t) &dummy->perc_atmid) in __peek_user_per()
142 else if (addr == (addr_t) &dummy->address) in __peek_user_per()
145 else if (addr == (addr_t) &dummy->access_id) in __peek_user_per()
161 static unsigned long __peek_user(struct task_struct *child, addr_t addr) in __peek_user()
164 addr_t offset, tmp; in __peek_user()
166 if (addr < (addr_t) &dummy->regs.acrs) { in __peek_user()
170 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
171 if (addr == (addr_t) &dummy->regs.psw.mask) in __peek_user()
175 } else if (addr < (addr_t) &dummy->regs.orig_gpr2) { in __peek_user()
179 offset = addr - (addr_t) &dummy->regs.acrs; in __peek_user()
186 if (addr == (addr_t) &dummy->regs.acrs[15]) in __peek_user()
190 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); in __peek_user()
192 } else if (addr == (addr_t) &dummy->regs.orig_gpr2) { in __peek_user()
196 tmp = (addr_t) task_pt_regs(child)->orig_gpr2; in __peek_user()
198 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __peek_user()
205 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __peek_user()
209 offset = addr - (addr_t) &dummy->regs.fp_regs; in __peek_user()
210 tmp = *(addr_t *)((addr_t) &child->thread.fp_regs + offset); in __peek_user()
211 if (addr == (addr_t) &dummy->regs.fp_regs.fpc) in __peek_user()
215 } else if (addr < (addr_t) (&dummy->regs.per_info + 1)) { in __peek_user()
219 addr -= (addr_t) &dummy->regs.per_info; in __peek_user()
229 peek_user(struct task_struct *child, addr_t addr, addr_t data) in peek_user()
231 addr_t tmp, mask; in peek_user()
239 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in peek_user()
240 addr < (addr_t) &((struct user *) NULL)->regs.orig_gpr2) in peek_user()
247 return put_user(tmp, (addr_t __user *) data); in peek_user()
251 addr_t addr, addr_t data) in __poke_user_per()
267 if (addr == (addr_t) &dummy->cr9) in __poke_user_per()
271 else if (addr == (addr_t) &dummy->starting_addr) in __poke_user_per()
274 else if (addr == (addr_t) &dummy->ending_addr) in __poke_user_per()
285 static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) in __poke_user()
288 addr_t offset; in __poke_user()
290 if (addr < (addr_t) &dummy->regs.acrs) { in __poke_user()
294 if (addr == (addr_t) &dummy->regs.psw.mask && in __poke_user()
299 *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr) = data; in __poke_user()
301 } else if (addr < (addr_t) (&dummy->regs.orig_gpr2)) { in __poke_user()
305 offset = addr - (addr_t) &dummy->regs.acrs; in __poke_user()
313 if (addr == (addr_t) &dummy->regs.acrs[15]) in __poke_user()
317 *(addr_t *)((addr_t) &child->thread.acrs + offset) = data; in __poke_user()
319 } else if (addr == (addr_t) &dummy->regs.orig_gpr2) { in __poke_user()
325 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __poke_user()
332 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __poke_user()
336 if (addr == (addr_t) &dummy->regs.fp_regs.fpc && in __poke_user()
340 offset = addr - (addr_t) &dummy->regs.fp_regs; in __poke_user()
341 *(addr_t *)((addr_t) &child->thread.fp_regs + offset) = data; in __poke_user()
343 } else if (addr < (addr_t) (&dummy->regs.per_info + 1)) { in __poke_user()
347 addr -= (addr_t) &dummy->regs.per_info; in __poke_user()
355 static int poke_user(struct task_struct *child, addr_t addr, addr_t data) in poke_user()
357 addr_t mask; in poke_user()
365 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in poke_user()
366 addr < (addr_t) &((struct user *) NULL)->regs.orig_gpr2) in poke_user()
402 addr_t utmp; in arch_ptrace()
404 (addr_t __force __user *) data)) in arch_ptrace()
445 addr_t addr) in __peek_user_per_compat()
449 if (addr == (addr_t) &dummy32->cr9) in __peek_user_per_compat()
453 else if (addr == (addr_t) &dummy32->cr10) in __peek_user_per_compat()
457 else if (addr == (addr_t) &dummy32->cr11) in __peek_user_per_compat()
461 else if (addr == (addr_t) &dummy32->bits) in __peek_user_per_compat()
465 else if (addr == (addr_t) &dummy32->starting_addr) in __peek_user_per_compat()
468 else if (addr == (addr_t) &dummy32->ending_addr) in __peek_user_per_compat()
471 else if (addr == (addr_t) &dummy32->perc_atmid) in __peek_user_per_compat()
474 else if (addr == (addr_t) &dummy32->address) in __peek_user_per_compat()
477 else if (addr == (addr_t) &dummy32->access_id) in __peek_user_per_compat()
486 static u32 __peek_user_compat(struct task_struct *child, addr_t addr) in __peek_user_compat()
489 addr_t offset; in __peek_user_compat()
492 if (addr < (addr_t) &dummy32->regs.acrs) { in __peek_user_compat()
497 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __peek_user_compat()
501 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __peek_user_compat()
507 tmp = *(__u32 *)((addr_t) ®s->psw + addr*2 + 4); in __peek_user_compat()
509 } else if (addr < (addr_t) (&dummy32->regs.orig_gpr2)) { in __peek_user_compat()
513 offset = addr - (addr_t) &dummy32->regs.acrs; in __peek_user_compat()
514 tmp = *(__u32*)((addr_t) &child->thread.acrs + offset); in __peek_user_compat()
516 } else if (addr == (addr_t) (&dummy32->regs.orig_gpr2)) { in __peek_user_compat()
520 tmp = *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4); in __peek_user_compat()
522 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat()
529 } else if (addr < (addr_t) (&dummy32->regs.fp_regs + 1)) { in __peek_user_compat()
533 offset = addr - (addr_t) &dummy32->regs.fp_regs; in __peek_user_compat()
534 tmp = *(__u32 *)((addr_t) &child->thread.fp_regs + offset); in __peek_user_compat()
536 } else if (addr < (addr_t) (&dummy32->regs.per_info + 1)) { in __peek_user_compat()
540 addr -= (addr_t) &dummy32->regs.per_info; in __peek_user_compat()
550 addr_t addr, addr_t data) in peek_user_compat()
565 addr_t addr, __u32 data) in __poke_user_per_compat()
569 if (addr == (addr_t) &dummy32->cr9) in __poke_user_per_compat()
573 else if (addr == (addr_t) &dummy32->starting_addr) in __poke_user_per_compat()
576 else if (addr == (addr_t) &dummy32->ending_addr) in __poke_user_per_compat()
585 addr_t addr, addr_t data) in __poke_user_compat()
589 addr_t offset; in __poke_user_compat()
591 if (addr < (addr_t) &dummy32->regs.acrs) { in __poke_user_compat()
596 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __poke_user_compat()
604 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __poke_user_compat()
612 *(__u32*)((addr_t) ®s->psw + addr*2 + 4) = tmp; in __poke_user_compat()
614 } else if (addr < (addr_t) (&dummy32->regs.orig_gpr2)) { in __poke_user_compat()
618 offset = addr - (addr_t) &dummy32->regs.acrs; in __poke_user_compat()
619 *(__u32*)((addr_t) &child->thread.acrs + offset) = tmp; in __poke_user_compat()
621 } else if (addr == (addr_t) (&dummy32->regs.orig_gpr2)) { in __poke_user_compat()
625 *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4) = tmp; in __poke_user_compat()
627 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __poke_user_compat()
634 } else if (addr < (addr_t) (&dummy32->regs.fp_regs + 1)) { in __poke_user_compat()
638 if (addr == (addr_t) &dummy32->regs.fp_regs.fpc && in __poke_user_compat()
642 offset = addr - (addr_t) &dummy32->regs.fp_regs; in __poke_user_compat()
643 *(__u32 *)((addr_t) &child->thread.fp_regs + offset) = tmp; in __poke_user_compat()
645 } else if (addr < (addr_t) (&dummy32->regs.per_info + 1)) { in __poke_user_compat()
649 addr -= (addr_t) &dummy32->regs.per_info; in __poke_user_compat()
657 addr_t addr, addr_t data) in poke_user_compat()