Lines Matching refs:gru
154 static void get_clear_fault_map(struct gru_state *gru, in get_clear_fault_map() argument
161 tfm = get_tfm_for_cpu(gru, gru_cpu_fault_map_id()); in get_clear_fault_map()
318 static void gru_preload_tlb(struct gru_state *gru, in gru_preload_tlb() argument
347 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, in gru_preload_tlb()
364 static int gru_try_dropin(struct gru_state *gru, in gru_try_dropin() argument
437 gru_preload_tlb(gru, gts, atomic, vaddr, asid, write, tlb_preload_count, tfh, cbe); in gru_try_dropin()
448 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, vaddr, asid, in gru_try_dropin()
530 struct gru_state *gru; in gru_intr() local
539 gru = &gru_base[blade]->bs_grus[chiplet]; in gru_intr()
540 if (!gru) { in gru_intr()
545 get_clear_fault_map(gru, &imap, &dmap); in gru_intr()
548 smp_processor_id(), chiplet, gru->gs_gid, in gru_intr()
554 cmp = gru->gs_blade->bs_async_wq; in gru_intr()
558 gru->gs_gid, cbrnum, cmp ? cmp->done : -1); in gru_intr()
563 tfh = get_tfh_by_index(gru, cbrnum); in gru_intr()
573 gts = gru->gs_gts[ctxnum]; in gru_intr()
588 gru_try_dropin(gru, gts, tfh, NULL); in gru_intr()
749 struct gru_state *gru; in gru_unload_all_contexts() local
755 gru = GID_TO_GRU(gid); in gru_unload_all_contexts()
756 spin_lock(&gru->gs_lock); in gru_unload_all_contexts()
758 gts = gru->gs_gts[ctxnum]; in gru_unload_all_contexts()
760 spin_unlock(&gru->gs_lock); in gru_unload_all_contexts()
763 spin_lock(&gru->gs_lock); in gru_unload_all_contexts()
766 spin_unlock(&gru->gs_lock); in gru_unload_all_contexts()