Lines Matching refs:pos
377 unsigned int pos, unsigned int count, in fpr_get() argument
385 pos /= sizeof(reg); in fpr_get()
389 for (; count > 0 && pos < ELF_NFPREG; --count) in fpr_get()
390 *k++ = regs->fr[pos++]; in fpr_get()
392 for (; count > 0 && pos < ELF_NFPREG; --count) in fpr_get()
393 if (__put_user(regs->fr[pos++], u++)) in fpr_get()
398 pos *= sizeof(reg); in fpr_get()
400 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in fpr_get()
406 unsigned int pos, unsigned int count, in fpr_set() argument
414 pos /= sizeof(reg); in fpr_set()
418 for (; count > 0 && pos < ELF_NFPREG; --count) in fpr_set()
419 regs->fr[pos++] = *k++; in fpr_set()
421 for (; count > 0 && pos < ELF_NFPREG; --count) { in fpr_set()
424 regs->fr[pos++] = reg; in fpr_set()
429 pos *= sizeof(reg); in fpr_set()
431 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in fpr_set()
512 unsigned int pos, unsigned int count, in gpr_get() argument
520 pos /= sizeof(reg); in gpr_get()
524 for (; count > 0 && pos < ELF_NGREG; --count) in gpr_get()
525 *k++ = get_reg(regs, pos++); in gpr_get()
527 for (; count > 0 && pos < ELF_NGREG; --count) in gpr_get()
528 if (__put_user(get_reg(regs, pos++), u++)) in gpr_get()
532 pos *= sizeof(reg); in gpr_get()
534 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr_get()
540 unsigned int pos, unsigned int count, in gpr_set() argument
548 pos /= sizeof(reg); in gpr_set()
552 for (; count > 0 && pos < ELF_NGREG; --count) in gpr_set()
553 set_reg(regs, pos++, *k++); in gpr_set()
555 for (; count > 0 && pos < ELF_NGREG; --count) { in gpr_set()
558 set_reg(regs, pos++, reg); in gpr_set()
563 pos *= sizeof(reg); in gpr_set()
565 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
592 unsigned int pos, unsigned int count, in gpr32_get() argument
600 pos /= sizeof(reg); in gpr32_get()
604 for (; count > 0 && pos < ELF_NGREG; --count) in gpr32_get()
605 *k++ = get_reg(regs, pos++); in gpr32_get()
607 for (; count > 0 && pos < ELF_NGREG; --count) in gpr32_get()
608 if (__put_user((compat_ulong_t) get_reg(regs, pos++), u++)) in gpr32_get()
613 pos *= sizeof(reg); in gpr32_get()
615 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in gpr32_get()
621 unsigned int pos, unsigned int count, in gpr32_set() argument
629 pos /= sizeof(reg); in gpr32_set()
633 for (; count > 0 && pos < ELF_NGREG; --count) in gpr32_set()
634 set_reg(regs, pos++, *k++); in gpr32_set()
636 for (; count > 0 && pos < ELF_NGREG; --count) { in gpr32_set()
639 set_reg(regs, pos++, reg); in gpr32_set()
644 pos *= sizeof(reg); in gpr32_set()
646 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr32_set()