Lines Matching refs:pt

63 in_syscall (struct pt_regs *pt)  in in_syscall()  argument
65 return (long) pt->cr_ifs >= 0; in in_syscall()
73 ia64_get_scratch_nat_bits (struct pt_regs *pt, unsigned long scratch_unat) in ia64_get_scratch_nat_bits() argument
77 unsigned long bit = ia64_unat_pos(&pt->r##first); \ in ia64_get_scratch_nat_bits()
112 ia64_put_scratch_nat_bits (struct pt_regs *pt, unsigned long nat) in ia64_put_scratch_nat_bits() argument
116 unsigned long bit = ia64_unat_pos(&pt->r##first); \ in ia64_put_scratch_nat_bits()
256 struct pt_regs *pt; in get_rnat() local
258 pt = task_pt_regs(task); in get_rnat()
260 ubspstore = (unsigned long *) pt->ar_bspstore; in get_rnat()
282 urnat = (pt->ar_rnat & umask); in get_rnat()
315 struct pt_regs *pt; in put_rnat() local
318 pt = task_pt_regs(task); in put_rnat()
320 ubspstore = (unsigned long *) pt->ar_bspstore; in put_rnat()
323 if (in_syscall(pt)) { in put_rnat()
328 cfm = pt->cr_ifs; in put_rnat()
356 pt->ar_rnat = (pt->ar_rnat & ~umask) | (urnat & umask); in put_rnat()
507 ia64_get_user_rbs_end (struct task_struct *child, struct pt_regs *pt, in ia64_get_user_rbs_end() argument
510 unsigned long *krbs, *bspstore, cfm = pt->cr_ifs; in ia64_get_user_rbs_end()
514 bspstore = (unsigned long *) pt->ar_bspstore; in ia64_get_user_rbs_end()
515 ndirty = ia64_rse_num_regs(krbs, krbs + (pt->loadrs >> 19)); in ia64_get_user_rbs_end()
517 if (in_syscall(pt)) in ia64_get_user_rbs_end()
580 struct pt_regs *pt; in do_sync_rbs() local
586 pt = task_pt_regs(info->task); in do_sync_rbs()
587 urbs_end = ia64_get_user_rbs_end(info->task, pt, NULL); in do_sync_rbs()
589 fn(info->task, info->sw, pt->ar_bspstore, urbs_end); in do_sync_rbs()
725 convert_to_non_syscall (struct task_struct *child, struct pt_regs *pt, in convert_to_non_syscall() argument
767 pt->cr_ifs = (1UL << 63) | cfm; in convert_to_non_syscall()
773 pt->r2 = 0; in convert_to_non_syscall()
774 pt->r3 = 0; in convert_to_non_syscall()
775 pt->r14 = 0; in convert_to_non_syscall()
776 memset(&pt->r16, 0, 16*8); /* clear r16-r31 */ in convert_to_non_syscall()
777 memset(&pt->f6, 0, 6*16); /* clear f6-f11 */ in convert_to_non_syscall()
778 pt->b7 = 0; in convert_to_non_syscall()
779 pt->ar_ccv = 0; in convert_to_non_syscall()
780 pt->ar_csd = 0; in convert_to_non_syscall()
781 pt->ar_ssd = 0; in convert_to_non_syscall()
785 access_nat_bits (struct task_struct *child, struct pt_regs *pt, in access_nat_bits() argument
794 scratch_unat = ia64_put_scratch_nat_bits(pt, nat_bits); in access_nat_bits()
809 nat_bits = ia64_get_scratch_nat_bits(pt, scratch_unat); in access_nat_bits()
830 struct pt_regs *pt; in ptrace_getregs() local
838 pt = task_pt_regs(child); in ptrace_getregs()
861 retval |= __put_user(pt->cr_iip, &ppr->cr_iip); in ptrace_getregs()
866 retval |= __put_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_getregs()
867 retval |= __put_user(pt->ar_rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_getregs()
868 retval |= __put_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_getregs()
869 retval |= __put_user(pt->ar_unat, &ppr->ar[PT_AUR_UNAT]); in ptrace_getregs()
870 retval |= __put_user(pt->ar_ccv, &ppr->ar[PT_AUR_CCV]); in ptrace_getregs()
871 retval |= __put_user(pt->ar_fpsr, &ppr->ar[PT_AUR_FPSR]); in ptrace_getregs()
881 retval |= __copy_to_user(&ppr->gr[1], &pt->r1, sizeof(long)); in ptrace_getregs()
882 retval |= __copy_to_user(&ppr->gr[2], &pt->r2, sizeof(long) *2); in ptrace_getregs()
894 retval |= __copy_to_user(&ppr->gr[8], &pt->r8, sizeof(long) * 4); in ptrace_getregs()
898 retval |= __copy_to_user(&ppr->gr[12], &pt->r12, sizeof(long) * 2); in ptrace_getregs()
899 retval |= __copy_to_user(&ppr->gr[14], &pt->r14, sizeof(long)); in ptrace_getregs()
900 retval |= __copy_to_user(&ppr->gr[15], &pt->r15, sizeof(long)); in ptrace_getregs()
904 retval |= __copy_to_user(&ppr->gr[16], &pt->r16, sizeof(long) * 16); in ptrace_getregs()
908 retval |= __put_user(pt->b0, &ppr->br[0]); in ptrace_getregs()
920 retval |= __put_user(pt->b6, &ppr->br[6]); in ptrace_getregs()
921 retval |= __put_user(pt->b7, &ppr->br[7]); in ptrace_getregs()
933 retval |= __copy_to_user(&ppr->fr[6], &pt->f6, in ptrace_getregs()
957 retval |= __put_user(pt->pr, &ppr->pr); in ptrace_getregs()
974 struct pt_regs *pt; in ptrace_setregs() local
983 pt = task_pt_regs(child); in ptrace_setregs()
997 retval |= __get_user(pt->cr_iip, &ppr->cr_iip); in ptrace_setregs()
1002 retval |= __get_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_setregs()
1004 retval |= __get_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_setregs()
1005 retval |= __get_user(pt->ar_unat, &ppr->ar[PT_AUR_UNAT]); in ptrace_setregs()
1006 retval |= __get_user(pt->ar_ccv, &ppr->ar[PT_AUR_CCV]); in ptrace_setregs()
1007 retval |= __get_user(pt->ar_fpsr, &ppr->ar[PT_AUR_FPSR]); in ptrace_setregs()
1017 retval |= __copy_from_user(&pt->r1, &ppr->gr[1], sizeof(long)); in ptrace_setregs()
1018 retval |= __copy_from_user(&pt->r2, &ppr->gr[2], sizeof(long) * 2); in ptrace_setregs()
1031 retval |= __copy_from_user(&pt->r8, &ppr->gr[8], sizeof(long) * 4); in ptrace_setregs()
1035 retval |= __copy_from_user(&pt->r12, &ppr->gr[12], sizeof(long) * 2); in ptrace_setregs()
1036 retval |= __copy_from_user(&pt->r14, &ppr->gr[14], sizeof(long)); in ptrace_setregs()
1037 retval |= __copy_from_user(&pt->r15, &ppr->gr[15], sizeof(long)); in ptrace_setregs()
1041 retval |= __copy_from_user(&pt->r16, &ppr->gr[16], sizeof(long) * 16); in ptrace_setregs()
1045 retval |= __get_user(pt->b0, &ppr->br[0]); in ptrace_setregs()
1056 retval |= __get_user(pt->b6, &ppr->br[6]); in ptrace_setregs()
1057 retval |= __get_user(pt->b7, &ppr->br[7]); in ptrace_setregs()
1069 retval |= __copy_from_user(&pt->f6, &ppr->fr[6], in ptrace_setregs()
1094 retval |= __get_user(pt->pr, &ppr->pr); in ptrace_setregs()
1291 struct pt_regs *pt = task_pt_regs(target); in access_elf_gpreg() local
1296 unsigned long *ptr = (void *)pt + d; in access_elf_gpreg()
1319 struct pt_regs *pt; in access_elf_breg() local
1322 pt = task_pt_regs(target); in access_elf_breg()
1325 ptr = &pt->b0; in access_elf_breg()
1331 ptr = &pt->b6; in access_elf_breg()
1334 ptr = &pt->b7; in access_elf_breg()
1347 struct pt_regs *pt; in access_elf_areg() local
1351 pt = task_pt_regs(target); in access_elf_areg()
1357 pt->ar_rsc = *data | (3 << 2); in access_elf_areg()
1359 *data = pt->ar_rsc; in access_elf_areg()
1386 urbs_end = ia64_get_user_rbs_end(target, pt, &cfm); in access_elf_areg()
1389 if (in_syscall(pt)) in access_elf_areg()
1391 pt, in access_elf_areg()
1397 pt->loadrs = 0; in access_elf_areg()
1398 pt->ar_bspstore = *data; in access_elf_areg()
1404 ptr = &pt->ar_bspstore; in access_elf_areg()
1407 ptr = &pt->ar_rnat; in access_elf_areg()
1410 ptr = &pt->ar_ccv; in access_elf_areg()
1413 ptr = &pt->ar_unat; in access_elf_areg()
1416 ptr = &pt->ar_fpsr; in access_elf_areg()
1419 ptr = &pt->ar_pfs; in access_elf_areg()
1428 ptr = &pt->ar_csd; in access_elf_areg()
1431 ptr = &pt->ar_ssd; in access_elf_areg()
1436 ptr = &pt->cr_iip; in access_elf_areg()
1439 urbs_end = ia64_get_user_rbs_end(target, pt, &cfm); in access_elf_areg()
1442 if (in_syscall(pt)) in access_elf_areg()
1444 pt, in access_elf_areg()
1446 pt->cr_ifs = ((pt->cr_ifs & ~PFM_MASK) in access_elf_areg()
1458 pt->cr_ipsr = ((tmp & IPSR_MASK) in access_elf_areg()
1459 | (pt->cr_ipsr & ~IPSR_MASK)); in access_elf_areg()
1461 *data = (pt->cr_ipsr & IPSR_MASK); in access_elf_areg()
1465 return access_nat_bits(target, pt, info, in access_elf_areg()
1468 ptr = &pt->pr; in access_elf_areg()
2014 struct pt_regs *pt = args->regs; in syscall_get_args_cb() local
2031 cfm = pt->cr_ifs; in syscall_get_args_cb()
2035 ndirty = ia64_rse_num_regs(krbs, krbs + (pt->loadrs >> 19)); in syscall_get_args_cb()
2038 if (in_syscall(pt)) in syscall_get_args_cb()