Lines Matching refs:bid
254 int pnode, nid, bid, chip; in gru_init_tables() local
264 for_each_possible_blade(bid) { in gru_init_tables()
265 pnode = uv_blade_to_pnode(bid); in gru_init_tables()
266 nid = uv_blade_to_memory_nid(bid);/* -1 if no memory on blade */ in gru_init_tables()
270 gru_base[bid] = page_address(page); in gru_init_tables()
271 memset(gru_base[bid], 0, sizeof(struct gru_blade_state)); in gru_init_tables()
272 gru_base[bid]->bs_lru_gru = &gru_base[bid]->bs_grus[0]; in gru_init_tables()
273 spin_lock_init(&gru_base[bid]->bs_lock); in gru_init_tables()
274 init_rwsem(&gru_base[bid]->bs_kgts_sema); in gru_init_tables()
278 for (gru = gru_base[bid]->bs_grus, chip = 0; in gru_init_tables()
283 gru_init_chiplet(gru, paddr, vaddr, bid, chip); in gru_init_tables()
296 for (bid--; bid >= 0; bid--) in gru_init_tables()
297 free_pages((unsigned long)gru_base[bid], order); in gru_init_tables()
303 int bid; in gru_free_tables() local
307 for (bid = 0; bid < GRU_MAX_BLADES; bid++) in gru_free_tables()
308 free_pages((unsigned long)gru_base[bid], order); in gru_free_tables()