Lines Matching refs:task
50 static inline unsigned long get_reg(struct task_struct *task, int regno) in get_reg() argument
53 && task->thread.regs != NULL) in get_reg()
54 return ((unsigned long *)task->thread.regs)[regno]; in get_reg()
61 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument
64 if (regno <= PT_MQ && task->thread.regs != NULL) { in put_reg()
67 | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg()
68 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg()
78 static inline int get_vrregs(unsigned long *data, struct task_struct *task) in get_vrregs() argument
88 if (__put_user(task->thread.vr[i].u[j], data)) in get_vrregs()
93 if (__put_user(task->thread.vscr.u[i], data)) in get_vrregs()
97 if (__put_user(task->thread.vrsave, data)) in get_vrregs()
106 static inline int set_vrregs(struct task_struct *task, unsigned long *data) in set_vrregs() argument
116 if (__get_user(task->thread.vr[i].u[j], data)) in set_vrregs()
121 if (__get_user(task->thread.vscr.u[i], data)) in set_vrregs()
125 if (__get_user(task->thread.vrsave, data)) in set_vrregs()
133 set_single_step(struct task_struct *task) in set_single_step() argument
135 struct pt_regs *regs = task->thread.regs; in set_single_step()
138 task->thread.dbcr0 |= (DBCR0_IDM | DBCR0_IC); in set_single_step()
147 clear_single_step(struct task_struct *task) in clear_single_step() argument
149 struct pt_regs *regs = task->thread.regs; in clear_single_step()
152 task->thread.dbcr0 &= ~DBCR0_IC; in clear_single_step()