Lines Matching refs:pos
338 unsigned int pos, unsigned int count, in gpr_get() argument
352 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
357 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, in gpr_get()
367 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in gpr_get()
372 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr_get()
379 unsigned int pos, unsigned int count, in gpr_set() argument
390 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
395 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set()
406 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
413 &pos, &count, &kbuf, &ubuf, in gpr_set()
418 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in gpr_set()
427 &pos, &count, &kbuf, &ubuf, in gpr_set()
446 unsigned int pos, unsigned int count, in fpr_get() argument
459 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in fpr_get()
466 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in fpr_get()
485 unsigned int pos, unsigned int count, in fpr_set() argument
499 i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in fpr_set()
513 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in fpr_set()
554 unsigned int pos, unsigned int count, in vr_get() argument
564 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in vr_get()
582 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, in vr_get()
604 unsigned int pos, unsigned int count, in vr_set() argument
614 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in vr_set()
632 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, in vr_set()
669 unsigned int pos, unsigned int count, in vsr_get() argument
683 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in vsr_get()
702 unsigned int pos, unsigned int count, in vsr_set() argument
716 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in vsr_set()
746 unsigned int pos, unsigned int count, in evr_get() argument
753 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in evr_get()
761 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in evr_get()
769 unsigned int pos, unsigned int count, in evr_set() argument
776 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in evr_set()
784 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in evr_set()
835 unsigned int pos, unsigned int count, in tm_cgpr_get() argument
850 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_cgpr_get()
856 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, in tm_cgpr_get()
866 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_cgpr_get()
871 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in tm_cgpr_get()
899 unsigned int pos, unsigned int count, in tm_cgpr_set() argument
915 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set()
920 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set()
931 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cgpr_set()
938 &pos, &count, &kbuf, &ubuf, in tm_cgpr_set()
943 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, in tm_cgpr_set()
952 &pos, &count, &kbuf, &ubuf, in tm_cgpr_set()
1001 unsigned int pos, unsigned int count, in tm_cfpr_get() argument
1021 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in tm_cfpr_get()
1047 unsigned int pos, unsigned int count, in tm_cfpr_set() argument
1068 i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); in tm_cfpr_set()
1121 unsigned int pos, unsigned int count, in tm_cvmx_get() argument
1139 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_cvmx_get()
1152 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, in tm_cvmx_get()
1183 unsigned int pos, unsigned int count, in tm_cvmx_set() argument
1200 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cvmx_set()
1213 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, in tm_cvmx_set()
1265 unsigned int pos, unsigned int count, in tm_cvsx_get() argument
1285 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_cvsx_get()
1313 unsigned int pos, unsigned int count, in tm_cvsx_set() argument
1334 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_cvsx_set()
1380 unsigned int pos, unsigned int count, in tm_spr_get() argument
1399 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_spr_get()
1404 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_spr_get()
1410 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_spr_get()
1436 unsigned int pos, unsigned int count, in tm_spr_set() argument
1455 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_spr_set()
1460 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_spr_set()
1466 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_spr_set()
1486 unsigned int pos, unsigned int count, in tm_tar_get() argument
1497 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_tar_get()
1504 unsigned int pos, unsigned int count, in tm_tar_set() argument
1515 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_tar_set()
1535 unsigned int pos, unsigned int count, in tm_ppr_get() argument
1546 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_ppr_get()
1553 unsigned int pos, unsigned int count, in tm_ppr_set() argument
1564 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_ppr_set()
1583 unsigned int pos, unsigned int count, in tm_dscr_get() argument
1594 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tm_dscr_get()
1601 unsigned int pos, unsigned int count, in tm_dscr_set() argument
1612 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tm_dscr_set()
1621 unsigned int pos, unsigned int count, in ppr_get() argument
1624 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in ppr_get()
1630 unsigned int pos, unsigned int count, in ppr_set() argument
1633 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ppr_set()
1639 unsigned int pos, unsigned int count, in dscr_get() argument
1642 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in dscr_get()
1647 unsigned int pos, unsigned int count, in dscr_set() argument
1650 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in dscr_set()
1657 unsigned int pos, unsigned int count, in tar_get() argument
1660 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in tar_get()
1665 unsigned int pos, unsigned int count, in tar_set() argument
1668 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, in tar_set()
1686 unsigned int pos, unsigned int count, in ebb_get() argument
1699 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in ebb_get()
1705 unsigned int pos, unsigned int count, in ebb_set() argument
1720 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ebb_set()
1724 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ebb_set()
1729 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in ebb_set()
1746 unsigned int pos, unsigned int count, in pmu_get() argument
1758 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in pmu_get()
1765 unsigned int pos, unsigned int count, in pmu_set() argument
1779 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in pmu_set()
1784 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in pmu_set()
1789 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in pmu_set()
1794 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in pmu_set()
1799 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in pmu_set()
1818 unsigned int pos, unsigned int count, in pkey_get() argument
1827 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, in pkey_get()
1834 unsigned int pos, unsigned int count, in pkey_set() argument
1844 if (pos != 0 || count != sizeof(new_amr)) in pkey_set()
1847 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in pkey_set()
2021 unsigned int pos, unsigned int count, in gpr32_get_common() argument
2029 pos /= sizeof(reg); in gpr32_get_common()
2033 for (; count > 0 && pos < PT_MSR; --count) in gpr32_get_common()
2034 *k++ = regs[pos++]; in gpr32_get_common()
2036 for (; count > 0 && pos < PT_MSR; --count) in gpr32_get_common()
2037 if (__put_user((compat_ulong_t) regs[pos++], u++)) in gpr32_get_common()
2040 if (count > 0 && pos == PT_MSR) { in gpr32_get_common()
2046 ++pos; in gpr32_get_common()
2051 for (; count > 0 && pos < PT_REGS_COUNT; --count) in gpr32_get_common()
2052 *k++ = regs[pos++]; in gpr32_get_common()
2054 for (; count > 0 && pos < PT_REGS_COUNT; --count) in gpr32_get_common()
2055 if (__put_user((compat_ulong_t) regs[pos++], u++)) in gpr32_get_common()
2060 pos *= sizeof(reg); in gpr32_get_common()
2062 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr32_get_common()
2068 unsigned int pos, unsigned int count, in gpr32_set_common() argument
2076 pos /= sizeof(reg); in gpr32_set_common()
2080 for (; count > 0 && pos < PT_MSR; --count) in gpr32_set_common()
2081 regs[pos++] = *k++; in gpr32_set_common()
2083 for (; count > 0 && pos < PT_MSR; --count) { in gpr32_set_common()
2086 regs[pos++] = reg; in gpr32_set_common()
2090 if (count > 0 && pos == PT_MSR) { in gpr32_set_common()
2096 ++pos; in gpr32_set_common()
2101 for (; count > 0 && pos <= PT_MAX_PUT_REG; --count) in gpr32_set_common()
2102 regs[pos++] = *k++; in gpr32_set_common()
2103 for (; count > 0 && pos < PT_TRAP; --count, ++pos) in gpr32_set_common()
2106 for (; count > 0 && pos <= PT_MAX_PUT_REG; --count) { in gpr32_set_common()
2109 regs[pos++] = reg; in gpr32_set_common()
2111 for (; count > 0 && pos < PT_TRAP; --count, ++pos) in gpr32_set_common()
2116 if (count > 0 && pos == PT_TRAP) { in gpr32_set_common()
2122 ++pos; in gpr32_set_common()
2128 pos *= sizeof(reg); in gpr32_set_common()
2130 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr32_set_common()
2137 unsigned int pos, unsigned int count, in tm_cgpr32_get() argument
2140 return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, in tm_cgpr32_get()
2146 unsigned int pos, unsigned int count, in tm_cgpr32_set() argument
2149 return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, in tm_cgpr32_set()
2156 unsigned int pos, unsigned int count, in gpr32_get() argument
2172 return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, in gpr32_get()
2178 unsigned int pos, unsigned int count, in gpr32_set() argument
2185 return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, in gpr32_set()