Lines Matching refs:ngts
394 struct gru_thread_state *gts, *ngts; in gru_alloc_thread_state() local
404 ngts = gru_find_current_gts_nolock(vdata, tsid); in gru_alloc_thread_state()
405 if (ngts) { in gru_alloc_thread_state()
407 gts = ngts; in gru_alloc_thread_state()
779 struct gru_thread_state *ngts = NULL; in gru_steal_context() local
808 ngts = gru->gs_gts[ctxnum]; in gru_steal_context()
815 if (ngts && is_gts_stealable(ngts, blade)) in gru_steal_context()
817 ngts = NULL; in gru_steal_context()
820 if (ngts || (flag && gru == gru0 && ctxnum == ctxnum0)) in gru_steal_context()
831 if (ngts) { in gru_steal_context()
833 ngts->ts_steal_jiffies = jiffies; in gru_steal_context()
834 gru_unload_context(ngts, is_kernel_context(ngts) ? 0 : 1); in gru_steal_context()
835 gts_stolen(ngts, blade); in gru_steal_context()
842 gru->gs_gid, ctxnum, ngts, cbr, dsr, hweight64(gru->gs_cbr_map), in gru_steal_context()