Lines Matching refs:ngts
398 struct gru_thread_state *gts, *ngts; in gru_alloc_thread_state() local
408 ngts = gru_find_current_gts_nolock(vdata, tsid); in gru_alloc_thread_state()
409 if (ngts) { in gru_alloc_thread_state()
411 gts = ngts; in gru_alloc_thread_state()
774 struct gru_thread_state *ngts = NULL; in gru_steal_context() local
803 ngts = gru->gs_gts[ctxnum]; in gru_steal_context()
810 if (ngts && is_gts_stealable(ngts, blade)) in gru_steal_context()
812 ngts = NULL; in gru_steal_context()
815 if (ngts || (flag && gru == gru0 && ctxnum == ctxnum0)) in gru_steal_context()
826 if (ngts) { in gru_steal_context()
828 ngts->ts_steal_jiffies = jiffies; in gru_steal_context()
829 gru_unload_context(ngts, is_kernel_context(ngts) ? 0 : 1); in gru_steal_context()
830 gts_stolen(ngts, blade); in gru_steal_context()
837 gru->gs_gid, ctxnum, ngts, cbr, dsr, hweight64(gru->gs_cbr_map), in gru_steal_context()