Lines Matching full:window
21 * The maximum FIFO size for fault window can be 8MB
23 * instance will be having fault window.
62 static void update_csb(struct vas_window *window, in update_csb() argument
76 if (WARN_ON_ONCE(!window->mm || !window->user_win)) in update_csb()
95 pid = window->pid; in update_csb()
98 * Process closes send window after all pending NX requests are in update_csb()
100 * open a window and can exit without closing it. May be some in update_csb()
101 * requests are pending or this window can be used by other in update_csb()
105 * invalid, send SEGV signal to pid saved in window. If the in update_csb()
107 * Parent thread (tgid) will close this window upon its exit. in update_csb()
109 * pid and mm references are taken when window is opened by in update_csb()
111 * a window and exits without closing it. in update_csb()
114 pid = window->tgid; in update_csb()
117 * Parent thread (tgid) will be closing window when it in update_csb()
130 kthread_use_mm(window->mm); in update_csb()
142 kthread_unuse_mm(window->mm); in update_csb()
195 * It takes credit on fault window, updates nx_fault_stamp in CRB with
198 * pswid - window ID of the window on which the request is sent.
205 * available on fault window. Otherwise, returns with RMA_reject.
207 * Total credits available on fault window: FIFO_SIZE(4MB)/CRBS_SIZE(128)
215 struct vas_window *window; in vas_fault_thread_fn() local
228 * pswid NX assigns window ID. Set pswid to -1 after in vas_fault_thread_fn()
267 * Return credit for the fault window. in vas_fault_thread_fn()
276 window = vas_pswid_to_window(vinst, in vas_fault_thread_fn()
279 if (IS_ERR(window)) { in vas_fault_thread_fn()
282 * window but we can't find that window and we can't in vas_fault_thread_fn()
284 * window). in vas_fault_thread_fn()
296 update_csb(window, crb); in vas_fault_thread_fn()
298 * Return credit for send window after processing in vas_fault_thread_fn()
301 vas_return_credit(window, true); in vas_fault_thread_fn()
333 * Fault window is opened per VAS instance. NX pastes fault CRB in fault