Lines Matching defs: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,
76 if (WARN_ON_ONCE(!window->mm || !window->user_win))
95 pid = window->pid;
98 * Process closes send window after all pending NX requests are
100 * open a window and can exit without closing it. May be some
101 * requests are pending or this window can be used by other
105 * invalid, send SEGV signal to pid saved in window. If the
107 * Parent thread (tgid) will close this window upon its exit.
109 * pid and mm references are taken when window is opened by
111 * a window and exits without closing it.
114 pid = window->tgid;
117 * Parent thread (tgid) will be closing window when it
130 kthread_use_mm(window->mm);
142 kthread_unuse_mm(window->mm);
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;
228 * pswid NX assigns window ID. Set pswid to -1 after
267 * Return credit for the fault window.
276 window = vas_pswid_to_window(vinst,
279 if (IS_ERR(window)) {
282 * window but we can't find that window and we can't
284 * window).
296 update_csb(window, crb);
298 * Return credit for send window after processing
301 vas_return_credit(window, true);
333 * Fault window is opened per VAS instance. NX pastes fault CRB in fault