Lines Matching refs:tp
41 static inline void shift_window_buffer(int first_win, int last_win, struct thread_info *tp) in shift_window_buffer() argument
46 tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; in shift_window_buffer()
47 memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window32)); in shift_window_buffer()
62 struct thread_info *tp = current_thread_info(); in synchronize_user_stack() local
66 if(!tp->w_saved) in synchronize_user_stack()
70 for(window = tp->w_saved - 1; window >= 0; window--) { in synchronize_user_stack()
71 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack()
74 if (copy_to_user((char __user *) sp, &tp->reg_window[window], in synchronize_user_stack()
78 shift_window_buffer(window, tp->w_saved - 1, tp); in synchronize_user_stack()
79 tp->w_saved--; in synchronize_user_stack()
114 struct thread_info *tp = current_thread_info(); in try_to_clear_window_buffer() local
118 for(window = 0; window < tp->w_saved; window++) { in try_to_clear_window_buffer()
119 unsigned long sp = tp->rwbuf_stkptrs[window]; in try_to_clear_window_buffer()
122 copy_to_user((char __user *) sp, &tp->reg_window[window], in try_to_clear_window_buffer()
126 tp->w_saved = 0; in try_to_clear_window_buffer()