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()
783 struct gru_thread_state *ngts = NULL; in gru_steal_context() local
812 ngts = gru->gs_gts[ctxnum]; in gru_steal_context()
819 if (ngts && is_gts_stealable(ngts, blade)) in gru_steal_context()
821 ngts = NULL; in gru_steal_context()
824 if (ngts || (flag && gru == gru0 && ctxnum == ctxnum0)) in gru_steal_context()
835 if (ngts) { in gru_steal_context()
837 ngts->ts_steal_jiffies = jiffies; in gru_steal_context()
838 gru_unload_context(ngts, is_kernel_context(ngts) ? 0 : 1); in gru_steal_context()
839 gts_stolen(ngts, blade); in gru_steal_context()
846 gru->gs_gid, ctxnum, ngts, cbr, dsr, hweight64(gru->gs_cbr_map), in gru_steal_context()