Home
last modified time | relevance | path

Searched refs:gms (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/misc/sgi-gru/
H A Dgrutlbpurge.c143 void gru_flush_tlb_range(struct gru_mm_struct *gms, unsigned long start, in gru_flush_tlb_range() argument
159 gru_dbg(grudev, "gms %p, start 0x%lx, len 0x%lx, asidmap 0x%lx\n", gms, in gru_flush_tlb_range()
160 start, len, gms->ms_asidmap[0]); in gru_flush_tlb_range()
162 spin_lock(&gms->ms_asid_lock); in gru_flush_tlb_range()
163 for_each_gru_in_bitmap(gid, gms->ms_asidmap) { in gru_flush_tlb_range()
166 asids = gms->ms_asids + gid; in gru_flush_tlb_range()
181 __clear_bit(gru->gs_gid, gms->ms_asidmap); in gru_flush_tlb_range()
185 gms->ms_asidmap[0]); in gru_flush_tlb_range()
188 spin_unlock(&gms->ms_asid_lock); in gru_flush_tlb_range()
210 struct gru_mm_struct *gms = container_of(mn, struct gru_mm_struct, in gru_invalidate_range_start() local
[all …]
H A Dgrumain.c223 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()
[all …]
H A Dgrufault.c617 struct gru_mm_struct *gms = gts->ts_gms; in gru_user_dropin() local
622 wait_event(gms->ms_wait_queue, in gru_user_dropin()
623 atomic_read(&gms->ms_range_active) == 0); in gru_user_dropin()
800 struct gru_mm_struct *gms; in gru_user_flush_tlb() local
813 gms = gts->ts_gms; in gru_user_flush_tlb()
815 gru_flush_tlb_range(gms, req.vaddr, req.len); in gru_user_flush_tlb()
H A Dgrutables.h651 extern void gru_drop_mmu_notifier(struct gru_mm_struct *gms);
654 extern void gru_flush_tlb_range(struct gru_mm_struct *gms, unsigned long start,
/linux/drivers/gpu/drm/xe/
H A Dxe_ttm_stolen_mgr.c120 u32 ggc, gms; in detect_bar2_integrated() local
142 gms = REG_FIELD_GET(GMS_MASK, ggc); in detect_bar2_integrated()
143 switch (gms) { in detect_bar2_integrated()
145 stolen_size = gms * 32 * SZ_1M; in detect_bar2_integrated()
148 stolen_size = (gms - 0xf0 + 1) * 4 * SZ_1M; in detect_bar2_integrated()