Lines Matching refs:regnum
451 setreg (unsigned long regnum, unsigned long val, int nat, struct pt_regs *regs) in setreg() argument
461 if (regnum >= IA64_FIRST_STACKED_GR) { in setreg()
462 set_rse_reg(regs, regnum, val, nat); in setreg()
474 if (GR_IN_SW(regnum)) { in setreg()
482 addr, unat==&sw->ar_unat ? "yes":"no", GR_OFFS(regnum)); in setreg()
487 addr += GR_OFFS(regnum); in setreg()
510 fph_index (struct pt_regs *regs, long regnum) in fph_index() argument
513 return rotate_reg(96, rrb_fr, (regnum - IA64_FIRST_ROTATING_FR)); in fph_index()
517 setfpreg (unsigned long regnum, struct ia64_fpreg *fpval, struct pt_regs *regs) in setfpreg() argument
533 if (regnum >= IA64_FIRST_ROTATING_FR) { in setfpreg()
535 current->thread.fph[fph_index(regs, regnum)] = *fpval; in setfpreg()
540 if (FR_IN_SW(regnum)) { in setfpreg()
546 DPRINT("tmp_base=%lx offset=%d\n", addr, FR_OFFS(regnum)); in setfpreg()
548 addr += FR_OFFS(regnum); in setfpreg()
578 getfpreg (unsigned long regnum, struct ia64_fpreg *fpval, struct pt_regs *regs) in getfpreg() argument
592 if (regnum >= IA64_FIRST_ROTATING_FR) { in getfpreg()
594 *fpval = current->thread.fph[fph_index(regs, regnum)]; in getfpreg()
600 switch(regnum) { in getfpreg()
611 addr = FR_IN_SW(regnum) ? (unsigned long)sw in getfpreg()
615 FR_IN_SW(regnum), addr, FR_OFFS(regnum)); in getfpreg()
617 addr += FR_OFFS(regnum); in getfpreg()
625 getreg (unsigned long regnum, unsigned long *val, int *nat, struct pt_regs *regs) in getreg() argument
630 if (regnum >= IA64_FIRST_STACKED_GR) { in getreg()
631 get_rse_reg(regs, regnum, val, nat); in getreg()
638 if (regnum == 0) { in getreg()
648 if (GR_IN_SW(regnum)) { in getreg()
656 DPRINT("addr_base=%lx offset=0x%x\n", addr, GR_OFFS(regnum)); in getreg()
658 addr += GR_OFFS(regnum); in getreg()