Lines Matching defs:gru
26 #include "gru.h"
47 static inline int get_off_blade_tgh(struct gru_state *gru)
51 n = GRU_NUM_TGH - gru->gs_tgh_first_remote;
53 n += gru->gs_tgh_first_remote;
57 static inline int get_on_blade_tgh(struct gru_state *gru)
59 return uv_blade_processor_id() >> gru->gs_tgh_local_shift;
63 *gru)
69 if (uv_numa_blade_id() == gru->gs_blade_id)
70 n = get_on_blade_tgh(gru);
72 n = get_off_blade_tgh(gru);
73 tgh = get_tgh_by_index(gru, n);
135 * - for each gru found:
148 struct gru_state *gru;
167 gru = GID_TO_GRU(gid);
176 tgh = get_lock_tgh_handle(gru);
183 __clear_bit(gru->gs_gid, gms->ms_asidmap);
196 void gru_flush_all_tlb(struct gru_state *gru)
200 gru_dbg(grudev, "gid %d\n", gru->gs_gid);
201 tgh = get_lock_tgh_handle(gru);
295 void gru_tgh_flush_init(struct gru_state *gru)
299 cpus = uv_blade_nr_possible_cpus(gru->gs_blade_id);
313 gru->gs_tgh_local_shift = shift;
316 gru->gs_tgh_first_remote = (cpus + (1 << shift) - 1) >> shift;