Lines Matching refs:gms
223 struct gru_mm_struct *gms = gts->ts_gms; in gru_load_mm_tracker() local
224 struct gru_mm_tracker *asids = &gms->ms_asids[gru->gs_gid]; in gru_load_mm_tracker()
228 spin_lock(&gms->ms_asid_lock); in gru_load_mm_tracker()
245 if (!test_bit(gru->gs_gid, gms->ms_asidmap)) in gru_load_mm_tracker()
246 __set_bit(gru->gs_gid, gms->ms_asidmap); in gru_load_mm_tracker()
247 spin_unlock(&gms->ms_asid_lock); in gru_load_mm_tracker()
251 gru->gs_gid, gts, gms, gts->ts_ctxnum, asid, in gru_load_mm_tracker()
252 gms->ms_asidmap[0]); in gru_load_mm_tracker()
259 struct gru_mm_struct *gms = gts->ts_gms; in gru_unload_mm_tracker() local
263 asids = &gms->ms_asids[gru->gs_gid]; in gru_unload_mm_tracker()
265 spin_lock(&gms->ms_asid_lock); in gru_unload_mm_tracker()
270 gru->gs_gid, gts, gms, gts->ts_ctxnum, gms->ms_asidmap[0]); in gru_unload_mm_tracker()
272 spin_unlock(&gms->ms_asid_lock); in gru_unload_mm_tracker()
311 struct gru_mm_struct *gms; in gru_alloc_gts() local
338 gms = gru_register_mmu_notifier(); in gru_alloc_gts()
339 if (IS_ERR(gms)) in gru_alloc_gts()
341 gts->ts_gms = gms; in gru_alloc_gts()
349 return ERR_CAST(gms); in gru_alloc_gts()