Lines Matching refs:gru
230 static void gru_init_chiplet(struct gru_state *gru, unsigned long paddr, in gru_init_chiplet() argument
233 spin_lock_init(&gru->gs_lock); in gru_init_chiplet()
234 spin_lock_init(&gru->gs_asid_lock); in gru_init_chiplet()
235 gru->gs_gru_base_paddr = paddr; in gru_init_chiplet()
236 gru->gs_gru_base_vaddr = vaddr; in gru_init_chiplet()
237 gru->gs_gid = blade_id * GRU_CHIPLETS_PER_BLADE + chiplet_id; in gru_init_chiplet()
238 gru->gs_blade = gru_base[blade_id]; in gru_init_chiplet()
239 gru->gs_blade_id = blade_id; in gru_init_chiplet()
240 gru->gs_chiplet_id = chiplet_id; in gru_init_chiplet()
241 gru->gs_cbr_map = (GRU_CBR_AU == 64) ? ~0 : (1UL << GRU_CBR_AU) - 1; in gru_init_chiplet()
242 gru->gs_dsr_map = (1UL << GRU_DSR_AU) - 1; in gru_init_chiplet()
243 gru->gs_asid_limit = MAX_ASID; in gru_init_chiplet()
244 gru_tgh_flush_init(gru); in gru_init_chiplet()
245 if (gru->gs_gid >= gru_max_gids) in gru_init_chiplet()
246 gru_max_gids = gru->gs_gid + 1; in gru_init_chiplet()
248 blade_id, gru->gs_gid, gru->gs_gru_base_vaddr, in gru_init_chiplet()
249 gru->gs_gru_base_paddr); in gru_init_chiplet()
258 struct gru_state *gru; in gru_init_tables() local
278 for (gru = gru_base[bid]->bs_grus, chip = 0; in gru_init_tables()
280 chip++, gru++) { in gru_init_tables()
283 gru_init_chiplet(gru, paddr, vaddr, bid, chip); in gru_init_tables()
284 n = hweight64(gru->gs_cbr_map) * GRU_CBR_AU_SIZE; in gru_init_tables()
286 n = hweight64(gru->gs_dsr_map) * GRU_DSR_AU_BYTES; in gru_init_tables()