Lines Matching refs:p
109 int copy_thread(struct task_struct *p, const struct kernel_clone_args *args) in copy_thread() argument
120 frame = container_of(task_pt_regs(p), struct fake_frame, childregs); in copy_thread()
121 p->thread.ksp = (unsigned long) frame; in copy_thread()
123 save_access_regs(&p->thread.acrs[0]); in copy_thread()
126 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user)); in copy_thread()
127 memset(&p->thread.per_event, 0, sizeof(p->thread.per_event)); in copy_thread()
128 clear_tsk_thread_flag(p, TIF_SINGLE_STEP); in copy_thread()
129 p->thread.per_flags = 0; in copy_thread()
131 p->thread.user_timer = 0; in copy_thread()
132 p->thread.guest_timer = 0; in copy_thread()
133 p->thread.system_timer = 0; in copy_thread()
134 p->thread.hardirq_timer = 0; in copy_thread()
135 p->thread.softirq_timer = 0; in copy_thread()
136 p->thread.last_break = 1; in copy_thread()
140 frame->sf.gprs[12 - 6] = (unsigned long)p; in copy_thread()
172 p->thread.acrs[0] = (unsigned int)tls; in copy_thread()
174 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread()
175 p->thread.acrs[1] = (unsigned int)tls; in copy_thread()
183 p->restart_block.arch_data = 1; in copy_thread()
193 unsigned long __get_wchan(struct task_struct *p) in __get_wchan() argument
198 if (!task_stack_page(p)) in __get_wchan()
201 if (!try_get_task_stack(p)) in __get_wchan()
204 unwind_for_each_frame(&state, p, NULL, 0) { in __get_wchan()
218 put_task_stack(p); in __get_wchan()