Lines Matching refs:gms
121 gru_dbg(grudev, "gid %d, gts %p, gms %p, inuse 0x%x, cxt %d\n",
239 struct gru_mm_struct *gms = gts->ts_gms;
240 struct gru_mm_tracker *asids = &gms->ms_asids[gru->gs_gid];
244 spin_lock(&gms->ms_asid_lock);
261 if (!test_bit(gru->gs_gid, gms->ms_asidmap))
262 __set_bit(gru->gs_gid, gms->ms_asidmap);
263 spin_unlock(&gms->ms_asid_lock);
266 "gid %d, gts %p, gms %p, ctxnum %d, asid 0x%x, asidmap 0x%lx\n",
267 gru->gs_gid, gts, gms, gts->ts_ctxnum, asid,
268 gms->ms_asidmap[0]);
275 struct gru_mm_struct *gms = gts->ts_gms;
279 asids = &gms->ms_asids[gru->gs_gid];
281 spin_lock(&gms->ms_asid_lock);
285 gru_dbg(grudev, "gid %d, gts %p, gms %p, ctxnum 0x%d, asidmap 0x%lx\n",
286 gru->gs_gid, gts, gms, gts->ts_ctxnum, gms->ms_asidmap[0]);
288 spin_unlock(&gms->ms_asid_lock);
327 struct gru_mm_struct *gms;
354 gms = gru_register_mmu_notifier();
355 if (IS_ERR(gms))
357 gts->ts_gms = gms;
365 return ERR_CAST(gms);