Lines Matching refs:wb
56 unsigned long wb = regs->windowbase; in ptrace_getregs() local
73 gregset->a + ((wb * 4 + i) % XCHAL_NUM_AREGS)); in ptrace_getregs()
84 unsigned long wb, ws; in ptrace_setregs() local
95 __get_user(wb, &gregset->windowbase); in ptrace_setregs()
100 if (wb >= XCHAL_NUM_AREGS / 4) in ptrace_setregs()
103 if (wb != regs->windowbase || ws != regs->windowstart) { in ptrace_setregs()
106 rotws = (((ws | (ws << WSBITS)) >> wb) & in ptrace_setregs()
110 regs->windowbase = wb; in ptrace_setregs()
115 if (wb != 0 && __copy_from_user(regs->areg + XCHAL_NUM_AREGS - wb * 4, in ptrace_setregs()
116 gregset->a, wb * 16)) in ptrace_setregs()
119 if (__copy_from_user(regs->areg, gregset->a + wb * 4, in ptrace_setregs()
120 (WSBITS - wb) * 16)) in ptrace_setregs()
211 unsigned long wb = regs->windowbase; in ptrace_peekusr() local
213 tmp = ((ws>>wb) | (ws<<(WSBITS-wb))) & ((1<<WSBITS)-1); in ptrace_peekusr()