Lines Matching refs:addr_t
150 addr_t addr) in __peek_user_per()
154 if (addr == (addr_t) &dummy->cr9) in __peek_user_per()
158 else if (addr == (addr_t) &dummy->cr10) in __peek_user_per()
162 else if (addr == (addr_t) &dummy->cr11) in __peek_user_per()
166 else if (addr == (addr_t) &dummy->bits) in __peek_user_per()
170 else if (addr == (addr_t) &dummy->starting_addr) in __peek_user_per()
173 else if (addr == (addr_t) &dummy->ending_addr) in __peek_user_per()
176 else if (addr == (addr_t) &dummy->perc_atmid) in __peek_user_per()
180 else if (addr == (addr_t) &dummy->address) in __peek_user_per()
183 else if (addr == (addr_t) &dummy->access_id) in __peek_user_per()
199 static unsigned long __peek_user(struct task_struct *child, addr_t addr) in __peek_user()
202 addr_t offset, tmp; in __peek_user()
204 if (addr < (addr_t) &dummy->regs.acrs) { in __peek_user()
208 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
209 if (addr == (addr_t) &dummy->regs.psw.mask) { in __peek_user()
215 } else if (addr < (addr_t) &dummy->regs.orig_gpr2) { in __peek_user()
219 offset = addr - (addr_t) &dummy->regs.acrs; in __peek_user()
225 if (addr == (addr_t) &dummy->regs.acrs[15]) in __peek_user()
228 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); in __peek_user()
230 } else if (addr == (addr_t) &dummy->regs.orig_gpr2) { in __peek_user()
234 tmp = (addr_t) task_pt_regs(child)->orig_gpr2; in __peek_user()
236 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __peek_user()
243 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user()
250 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __peek_user()
255 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __peek_user()
257 tmp = *(addr_t *) in __peek_user()
258 ((addr_t) child->thread.fpu.vxrs + 2*offset); in __peek_user()
260 tmp = *(addr_t *) in __peek_user()
261 ((addr_t) child->thread.fpu.fprs + offset); in __peek_user()
263 } else if (addr < (addr_t) (&dummy->regs.per_info + 1)) { in __peek_user()
267 addr -= (addr_t) &dummy->regs.per_info; in __peek_user()
277 peek_user(struct task_struct *child, addr_t addr, addr_t data) in peek_user()
279 addr_t tmp, mask; in peek_user()
286 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in peek_user()
287 addr < (addr_t) &((struct user *) NULL)->regs.orig_gpr2) in peek_user()
293 return put_user(tmp, (addr_t __user *) data); in peek_user()
297 addr_t addr, addr_t data) in __poke_user_per()
313 if (addr == (addr_t) &dummy->cr9) in __poke_user_per()
317 else if (addr == (addr_t) &dummy->starting_addr) in __poke_user_per()
320 else if (addr == (addr_t) &dummy->ending_addr) in __poke_user_per()
325 static void fixup_int_code(struct task_struct *child, addr_t data) in fixup_int_code()
350 static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) in __poke_user()
353 addr_t offset; in __poke_user()
356 if (addr < (addr_t) &dummy->regs.acrs) { in __poke_user()
361 if (addr == (addr_t) &dummy->regs.psw.mask) { in __poke_user()
379 *(addr_t *)((addr_t) ®s->psw + addr) = data; in __poke_user()
381 } else if (addr < (addr_t) (&dummy->regs.orig_gpr2)) { in __poke_user()
385 offset = addr - (addr_t) &dummy->regs.acrs; in __poke_user()
392 if (addr == (addr_t) &dummy->regs.acrs[15]) in __poke_user()
395 *(addr_t *)((addr_t) &child->thread.acrs + offset) = data; in __poke_user()
397 } else if (addr == (addr_t) &dummy->regs.orig_gpr2) { in __poke_user()
403 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __poke_user()
410 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user()
419 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __poke_user()
424 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __poke_user()
426 *(addr_t *)((addr_t) in __poke_user()
429 *(addr_t *)((addr_t) in __poke_user()
432 } else if (addr < (addr_t) (&dummy->regs.per_info + 1)) { in __poke_user()
436 addr -= (addr_t) &dummy->regs.per_info; in __poke_user()
444 static int poke_user(struct task_struct *child, addr_t addr, addr_t data) in poke_user()
446 addr_t mask; in poke_user()
453 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in poke_user()
454 addr < (addr_t) &((struct user *) NULL)->regs.orig_gpr2) in poke_user()
489 addr_t utmp; in arch_ptrace()
491 (addr_t __force __user *) data)) in arch_ptrace()
560 addr_t addr) in __peek_user_per_compat()
564 if (addr == (addr_t) &dummy32->cr9) in __peek_user_per_compat()
568 else if (addr == (addr_t) &dummy32->cr10) in __peek_user_per_compat()
572 else if (addr == (addr_t) &dummy32->cr11) in __peek_user_per_compat()
576 else if (addr == (addr_t) &dummy32->bits) in __peek_user_per_compat()
580 else if (addr == (addr_t) &dummy32->starting_addr) in __peek_user_per_compat()
583 else if (addr == (addr_t) &dummy32->ending_addr) in __peek_user_per_compat()
586 else if (addr == (addr_t) &dummy32->perc_atmid) in __peek_user_per_compat()
589 else if (addr == (addr_t) &dummy32->address) in __peek_user_per_compat()
592 else if (addr == (addr_t) &dummy32->access_id) in __peek_user_per_compat()
601 static u32 __peek_user_compat(struct task_struct *child, addr_t addr) in __peek_user_compat()
604 addr_t offset; in __peek_user_compat()
607 if (addr < (addr_t) &dummy32->regs.acrs) { in __peek_user_compat()
612 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __peek_user_compat()
617 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __peek_user_compat()
623 tmp = *(__u32 *)((addr_t) ®s->psw + addr*2 + 4); in __peek_user_compat()
625 } else if (addr < (addr_t) (&dummy32->regs.orig_gpr2)) { in __peek_user_compat()
629 offset = addr - (addr_t) &dummy32->regs.acrs; in __peek_user_compat()
630 tmp = *(__u32*)((addr_t) &child->thread.acrs + offset); in __peek_user_compat()
632 } else if (addr == (addr_t) (&dummy32->regs.orig_gpr2)) { in __peek_user_compat()
636 tmp = *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4); in __peek_user_compat()
638 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat()
645 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat()
651 } else if (addr < (addr_t) (&dummy32->regs.fp_regs + 1)) { in __peek_user_compat()
656 offset = addr - (addr_t) &dummy32->regs.fp_regs.fprs; in __peek_user_compat()
659 ((addr_t) child->thread.fpu.vxrs + 2*offset); in __peek_user_compat()
662 ((addr_t) child->thread.fpu.fprs + offset); in __peek_user_compat()
664 } else if (addr < (addr_t) (&dummy32->regs.per_info + 1)) { in __peek_user_compat()
668 addr -= (addr_t) &dummy32->regs.per_info; in __peek_user_compat()
678 addr_t addr, addr_t data) in peek_user_compat()
693 addr_t addr, __u32 data) in __poke_user_per_compat()
697 if (addr == (addr_t) &dummy32->cr9) in __poke_user_per_compat()
701 else if (addr == (addr_t) &dummy32->starting_addr) in __poke_user_per_compat()
704 else if (addr == (addr_t) &dummy32->ending_addr) in __poke_user_per_compat()
713 addr_t addr, addr_t data) in __poke_user_compat()
717 addr_t offset; in __poke_user_compat()
719 if (addr < (addr_t) &dummy32->regs.acrs) { in __poke_user_compat()
724 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __poke_user_compat()
738 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __poke_user_compat()
750 *(__u32*)((addr_t) ®s->psw + addr*2 + 4) = tmp; in __poke_user_compat()
752 } else if (addr < (addr_t) (&dummy32->regs.orig_gpr2)) { in __poke_user_compat()
756 offset = addr - (addr_t) &dummy32->regs.acrs; in __poke_user_compat()
757 *(__u32*)((addr_t) &child->thread.acrs + offset) = tmp; in __poke_user_compat()
759 } else if (addr == (addr_t) (&dummy32->regs.orig_gpr2)) { in __poke_user_compat()
763 *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4) = tmp; in __poke_user_compat()
765 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __poke_user_compat()
772 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __poke_user_compat()
780 } else if (addr < (addr_t) (&dummy32->regs.fp_regs + 1)) { in __poke_user_compat()
785 offset = addr - (addr_t) &dummy32->regs.fp_regs.fprs; in __poke_user_compat()
787 *(__u32 *)((addr_t) in __poke_user_compat()
790 *(__u32 *)((addr_t) in __poke_user_compat()
793 } else if (addr < (addr_t) (&dummy32->regs.per_info + 1)) { in __poke_user_compat()
797 addr -= (addr_t) &dummy32->regs.per_info; in __poke_user_compat()
805 addr_t addr, addr_t data) in poke_user_compat()