Lines Matching refs:gms
239 struct gru_mm_struct *gms = gts->ts_gms; in gru_load_mm_tracker() local
240 struct gru_mm_tracker *asids = &gms->ms_asids[gru->gs_gid]; in gru_load_mm_tracker()
244 spin_lock(&gms->ms_asid_lock); in gru_load_mm_tracker()
261 if (!test_bit(gru->gs_gid, gms->ms_asidmap)) in gru_load_mm_tracker()
262 __set_bit(gru->gs_gid, gms->ms_asidmap); in gru_load_mm_tracker()
263 spin_unlock(&gms->ms_asid_lock); in gru_load_mm_tracker()
267 gru->gs_gid, gts, gms, gts->ts_ctxnum, asid, in gru_load_mm_tracker()
268 gms->ms_asidmap[0]); in gru_load_mm_tracker()
275 struct gru_mm_struct *gms = gts->ts_gms; in gru_unload_mm_tracker() local
279 asids = &gms->ms_asids[gru->gs_gid]; in gru_unload_mm_tracker()
281 spin_lock(&gms->ms_asid_lock); in gru_unload_mm_tracker()
286 gru->gs_gid, gts, gms, gts->ts_ctxnum, gms->ms_asidmap[0]); in gru_unload_mm_tracker()
288 spin_unlock(&gms->ms_asid_lock); in gru_unload_mm_tracker()
327 struct gru_mm_struct *gms; in gru_alloc_gts() local
354 gms = gru_register_mmu_notifier(); in gru_alloc_gts()
355 if (IS_ERR(gms)) in gru_alloc_gts()
357 gts->ts_gms = gms; in gru_alloc_gts()
365 return ERR_CAST(gms); in gru_alloc_gts()