Searched refs:gru_base (Results 1 – 5 of 5) sorted by relevance
49 struct gru_blade_state *gru_base[GRU_MAX_BLADES] __read_mostly; variable245 gru->gs_blade = gru_base[blade_id]; in gru_init_chiplet()277 gru_base[bid] = page_address(page); in gru_init_tables()278 memset(gru_base[bid], 0, sizeof(struct gru_blade_state)); in gru_init_tables()279 gru_base[bid]->bs_lru_gru = &gru_base[bid]->bs_grus[0]; in gru_init_tables()280 spin_lock_init(&gru_base[bid]->bs_lock); in gru_init_tables()281 init_rwsem(&gru_base[bid]->bs_kgts_sema); in gru_init_tables()285 for (gru = gru_base[bid]->bs_grus, chip = 0; in gru_init_tables()304 free_pages((unsigned long)gru_base[bid], order); in gru_init_tables()315 free_pages((unsigned long)gru_base[bid], order); in gru_free_tables()[all …]
155 extern struct gru_blade_state *gru_base[];500 #define get_gru(b, c) (&gru_base[b]->bs_grus[c])512 (gru_base[(gid) / GRU_CHIPLETS_PER_BLADE] ? \513 (&gru_base[(gid) / GRU_CHIPLETS_PER_BLADE]-> \523 for ((gru) = gru_base[nid]->bs_grus, (i) = 0; \
101 #define ASYNC_HAN_TO_BS(h) gru_base[ASYNC_HAN_TO_BID(h)]201 bs = gru_base[bid]; in gru_free_kernel_contexts()231 bs = gru_base[bid]; in gru_lock_kernel_context()253 bs = gru_base[blade_id]; in gru_unlock_kernel_context()304 bs = gru_base[blade_id]; in gru_reserve_async_resources()408 if (!gru_base[bid]) in gru_get_cb_exception_detail()410 kgts = gru_base[bid]->bs_kgts; in gru_get_cb_exception_detail()
539 gru = &gru_base[blade]->bs_grus[chiplet]; in gru_intr()879 if (req.val1 < -1 || req.val1 >= GRU_MAX_BLADES || !gru_base[req.val1] || in gru_set_context_option()
797 blade = gru_base[blade_id]; in gru_steal_context()