Lines Matching refs:blade
781 struct gru_blade_state *blade; in gru_steal_context() local
793 blade = gru_base[blade_id]; in gru_steal_context()
794 spin_lock(&blade->bs_lock); in gru_steal_context()
796 ctxnum = next_ctxnum(blade->bs_lru_ctxnum); in gru_steal_context()
797 gru = blade->bs_lru_gru; in gru_steal_context()
799 gru = next_gru(blade, gru); in gru_steal_context()
800 blade->bs_lru_gru = gru; in gru_steal_context()
801 blade->bs_lru_ctxnum = ctxnum; in gru_steal_context()
819 if (ngts && is_gts_stealable(ngts, blade)) in gru_steal_context()
831 gru = next_gru(blade, gru); in gru_steal_context()
833 spin_unlock(&blade->bs_lock); in gru_steal_context()
839 gts_stolen(ngts, blade); in gru_steal_context()