Lines Matching refs:gru
39 #include "gru.h"
60 static inline int get_off_blade_tgh(struct gru_state *gru)
64 n = GRU_NUM_TGH - gru->gs_tgh_first_remote;
66 n += gru->gs_tgh_first_remote;
70 static inline int get_on_blade_tgh(struct gru_state *gru)
72 return uv_blade_processor_id() >> gru->gs_tgh_local_shift;
76 *gru)
82 if (uv_numa_blade_id() == gru->gs_blade_id)
83 n = get_on_blade_tgh(gru);
85 n = get_off_blade_tgh(gru);
86 tgh = get_tgh_by_index(gru, n);
148 * - for each gru found:
161 struct gru_state *gru;
180 gru = GID_TO_GRU(gid);
189 tgh = get_lock_tgh_handle(gru);
196 __clear_bit(gru->gs_gid, gms->ms_asidmap);
209 void gru_flush_all_tlb(struct gru_state *gru)
213 gru_dbg(grudev, "gid %d\n", gru->gs_gid);
214 tgh = get_lock_tgh_handle(gru);
355 void gru_tgh_flush_init(struct gru_state *gru)
359 cpus = uv_blade_nr_possible_cpus(gru->gs_blade_id);
373 gru->gs_tgh_local_shift = shift;
376 gru->gs_tgh_first_remote = (cpus + (1 << shift) - 1) >> shift;