Lines Matching refs:blade
772 struct gru_blade_state *blade; in gru_steal_context() local
784 blade = gru_base[blade_id]; in gru_steal_context()
785 spin_lock(&blade->bs_lock); in gru_steal_context()
787 ctxnum = next_ctxnum(blade->bs_lru_ctxnum); in gru_steal_context()
788 gru = blade->bs_lru_gru; in gru_steal_context()
790 gru = next_gru(blade, gru); in gru_steal_context()
791 blade->bs_lru_gru = gru; in gru_steal_context()
792 blade->bs_lru_ctxnum = ctxnum; in gru_steal_context()
810 if (ngts && is_gts_stealable(ngts, blade)) in gru_steal_context()
822 gru = next_gru(blade, gru); in gru_steal_context()
824 spin_unlock(&blade->bs_lock); in gru_steal_context()
830 gts_stolen(ngts, blade); in gru_steal_context()