Lines Matching refs:addr_t

152 					    addr_t addr)  in __peek_user_per()
156 if (addr == (addr_t) &dummy->cr9) in __peek_user_per()
160 else if (addr == (addr_t) &dummy->cr10) in __peek_user_per()
164 else if (addr == (addr_t) &dummy->cr11) in __peek_user_per()
168 else if (addr == (addr_t) &dummy->bits) in __peek_user_per()
172 else if (addr == (addr_t) &dummy->starting_addr) in __peek_user_per()
175 else if (addr == (addr_t) &dummy->ending_addr) in __peek_user_per()
178 else if (addr == (addr_t) &dummy->perc_atmid) in __peek_user_per()
182 else if (addr == (addr_t) &dummy->address) in __peek_user_per()
185 else if (addr == (addr_t) &dummy->access_id) in __peek_user_per()
201 static unsigned long __peek_user(struct task_struct *child, addr_t addr) in __peek_user()
204 addr_t offset, tmp; in __peek_user()
206 if (addr < (addr_t) &dummy->regs.acrs) { in __peek_user()
210 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); in __peek_user()
211 if (addr == (addr_t) &dummy->regs.psw.mask) { in __peek_user()
217 } else if (addr < (addr_t) &dummy->regs.orig_gpr2) { in __peek_user()
221 offset = addr - (addr_t) &dummy->regs.acrs; in __peek_user()
227 if (addr == (addr_t) &dummy->regs.acrs[15]) in __peek_user()
230 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); in __peek_user()
232 } else if (addr == (addr_t) &dummy->regs.orig_gpr2) { in __peek_user()
236 tmp = (addr_t) task_pt_regs(child)->orig_gpr2; in __peek_user()
238 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __peek_user()
245 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user()
252 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __peek_user()
257 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __peek_user()
259 tmp = *(addr_t *) in __peek_user()
260 ((addr_t) child->thread.fpu.vxrs + 2*offset); in __peek_user()
262 tmp = *(addr_t *) in __peek_user()
263 ((addr_t) child->thread.fpu.fprs + offset); in __peek_user()
265 } else if (addr < (addr_t) (&dummy->regs.per_info + 1)) { in __peek_user()
269 addr -= (addr_t) &dummy->regs.per_info; in __peek_user()
279 peek_user(struct task_struct *child, addr_t addr, addr_t data) in peek_user()
281 addr_t tmp, mask; in peek_user()
288 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in peek_user()
289 addr < (addr_t) &((struct user *) NULL)->regs.orig_gpr2) in peek_user()
295 return put_user(tmp, (addr_t __user *) data); in peek_user()
299 addr_t addr, addr_t data) in __poke_user_per()
315 if (addr == (addr_t) &dummy->cr9) in __poke_user_per()
319 else if (addr == (addr_t) &dummy->starting_addr) in __poke_user_per()
322 else if (addr == (addr_t) &dummy->ending_addr) in __poke_user_per()
333 static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) in __poke_user()
336 addr_t offset; in __poke_user()
338 if (addr < (addr_t) &dummy->regs.acrs) { in __poke_user()
342 if (addr == (addr_t) &dummy->regs.psw.mask) { in __poke_user()
356 *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr) = data; in __poke_user()
358 } else if (addr < (addr_t) (&dummy->regs.orig_gpr2)) { in __poke_user()
362 offset = addr - (addr_t) &dummy->regs.acrs; in __poke_user()
369 if (addr == (addr_t) &dummy->regs.acrs[15]) in __poke_user()
372 *(addr_t *)((addr_t) &child->thread.acrs + offset) = data; in __poke_user()
374 } else if (addr == (addr_t) &dummy->regs.orig_gpr2) { in __poke_user()
380 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __poke_user()
387 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user()
396 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __poke_user()
401 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __poke_user()
403 *(addr_t *)((addr_t) in __poke_user()
406 *(addr_t *)((addr_t) in __poke_user()
409 } else if (addr < (addr_t) (&dummy->regs.per_info + 1)) { in __poke_user()
413 addr -= (addr_t) &dummy->regs.per_info; in __poke_user()
421 static int poke_user(struct task_struct *child, addr_t addr, addr_t data) in poke_user()
423 addr_t mask; in poke_user()
430 if (addr >= (addr_t) &((struct user *) NULL)->regs.acrs && in poke_user()
431 addr < (addr_t) &((struct user *) NULL)->regs.orig_gpr2) in poke_user()
466 addr_t utmp; in arch_ptrace()
468 (addr_t __force __user *) data)) in arch_ptrace()
537 addr_t addr) in __peek_user_per_compat()
541 if (addr == (addr_t) &dummy32->cr9) in __peek_user_per_compat()
545 else if (addr == (addr_t) &dummy32->cr10) in __peek_user_per_compat()
549 else if (addr == (addr_t) &dummy32->cr11) in __peek_user_per_compat()
553 else if (addr == (addr_t) &dummy32->bits) in __peek_user_per_compat()
557 else if (addr == (addr_t) &dummy32->starting_addr) in __peek_user_per_compat()
560 else if (addr == (addr_t) &dummy32->ending_addr) in __peek_user_per_compat()
563 else if (addr == (addr_t) &dummy32->perc_atmid) in __peek_user_per_compat()
566 else if (addr == (addr_t) &dummy32->address) in __peek_user_per_compat()
569 else if (addr == (addr_t) &dummy32->access_id) in __peek_user_per_compat()
578 static u32 __peek_user_compat(struct task_struct *child, addr_t addr) in __peek_user_compat()
581 addr_t offset; in __peek_user_compat()
584 if (addr < (addr_t) &dummy32->regs.acrs) { in __peek_user_compat()
589 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __peek_user_compat()
594 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __peek_user_compat()
600 tmp = *(__u32 *)((addr_t) &regs->psw + addr*2 + 4); in __peek_user_compat()
602 } else if (addr < (addr_t) (&dummy32->regs.orig_gpr2)) { in __peek_user_compat()
606 offset = addr - (addr_t) &dummy32->regs.acrs; in __peek_user_compat()
607 tmp = *(__u32*)((addr_t) &child->thread.acrs + offset); in __peek_user_compat()
609 } else if (addr == (addr_t) (&dummy32->regs.orig_gpr2)) { in __peek_user_compat()
613 tmp = *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4); in __peek_user_compat()
615 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat()
622 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat()
628 } else if (addr < (addr_t) (&dummy32->regs.fp_regs + 1)) { in __peek_user_compat()
633 offset = addr - (addr_t) &dummy32->regs.fp_regs.fprs; in __peek_user_compat()
636 ((addr_t) child->thread.fpu.vxrs + 2*offset); in __peek_user_compat()
639 ((addr_t) child->thread.fpu.fprs + offset); in __peek_user_compat()
641 } else if (addr < (addr_t) (&dummy32->regs.per_info + 1)) { in __peek_user_compat()
645 addr -= (addr_t) &dummy32->regs.per_info; in __peek_user_compat()
655 addr_t addr, addr_t data) in peek_user_compat()
670 addr_t addr, __u32 data) in __poke_user_per_compat()
674 if (addr == (addr_t) &dummy32->cr9) in __poke_user_per_compat()
678 else if (addr == (addr_t) &dummy32->starting_addr) in __poke_user_per_compat()
681 else if (addr == (addr_t) &dummy32->ending_addr) in __poke_user_per_compat()
690 addr_t addr, addr_t data) in __poke_user_compat()
694 addr_t offset; in __poke_user_compat()
696 if (addr < (addr_t) &dummy32->regs.acrs) { in __poke_user_compat()
701 if (addr == (addr_t) &dummy32->regs.psw.mask) { in __poke_user_compat()
715 } else if (addr == (addr_t) &dummy32->regs.psw.addr) { in __poke_user_compat()
723 *(__u32*)((addr_t) &regs->psw + addr*2 + 4) = tmp; in __poke_user_compat()
725 } else if (addr < (addr_t) (&dummy32->regs.orig_gpr2)) { in __poke_user_compat()
729 offset = addr - (addr_t) &dummy32->regs.acrs; in __poke_user_compat()
730 *(__u32*)((addr_t) &child->thread.acrs + offset) = tmp; in __poke_user_compat()
732 } else if (addr == (addr_t) (&dummy32->regs.orig_gpr2)) { in __poke_user_compat()
736 *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4) = tmp; in __poke_user_compat()
738 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __poke_user_compat()
745 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __poke_user_compat()
753 } else if (addr < (addr_t) (&dummy32->regs.fp_regs + 1)) { in __poke_user_compat()
758 offset = addr - (addr_t) &dummy32->regs.fp_regs.fprs; in __poke_user_compat()
760 *(__u32 *)((addr_t) in __poke_user_compat()
763 *(__u32 *)((addr_t) in __poke_user_compat()
766 } else if (addr < (addr_t) (&dummy32->regs.per_info + 1)) { in __poke_user_compat()
770 addr -= (addr_t) &dummy32->regs.per_info; in __poke_user_compat()
778 addr_t addr, addr_t data) in poke_user_compat()