Searched refs:gru_base (Results 1 – 5 of 5) sorted by relevance
49 struct gru_blade_state *gru_base[GRU_MAX_BLADES] __read_mostly; variable250 gru->gs_blade = gru_base[blade_id]; in gru_init_chiplet()282 gru_base[bid] = page_address(page); in gru_init_tables()283 memset(gru_base[bid], 0, sizeof(struct gru_blade_state)); in gru_init_tables()284 gru_base[bid]->bs_lru_gru = &gru_base[bid]->bs_grus[0]; in gru_init_tables()285 spin_lock_init(&gru_base[bid]->bs_lock); in gru_init_tables()286 init_rwsem(&gru_base[bid]->bs_kgts_sema); in gru_init_tables()290 for (gru = gru_base[bid]->bs_grus, chip = 0; in gru_init_tables()309 free_pages((unsigned long)gru_base[bid], order); in gru_init_tables()320 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)]206 bs = gru_base[bid]; in gru_free_kernel_contexts()236 bs = gru_base[bid]; in gru_lock_kernel_context()258 bs = gru_base[blade_id]; in gru_unlock_kernel_context()309 bs = gru_base[blade_id]; in gru_reserve_async_resources()413 if (!gru_base[bid]) in gru_get_cb_exception_detail()415 kgts = gru_base[bid]->bs_kgts; in gru_get_cb_exception_detail()
538 gru = &gru_base[blade]->bs_grus[chiplet]; in gru_intr()880 (req.val1 >= 0 && !gru_base[req.val1])) { in gru_set_context_option()
797 blade = gru_base[blade_id]; in gru_steal_context()