Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/misc/sgi-gru/
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 …]
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 …]
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()
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-6.12.1/arch/x86/kernel/
Dearly-quirks.c357 u16 gms; in i830_stolen_size() local
360 gms = gmch_ctrl & I830_GMCH_GMS_MASK; in i830_stolen_size()
362 switch (gms) { in i830_stolen_size()
378 u16 gms; in gen3_stolen_size() local
381 gms = gmch_ctrl & I855_GMCH_GMS_MASK; in gen3_stolen_size()
383 switch (gms) { in gen3_stolen_size()
407 u16 gms; in gen6_stolen_size() local
410 gms = (gmch_ctrl >> SNB_GMCH_GMS_SHIFT) & SNB_GMCH_GMS_MASK; in gen6_stolen_size()
412 return gms * MB(32); in gen6_stolen_size()
418 u16 gms; in gen8_stolen_size() local
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
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()
/linux-6.12.1/drivers/gpu/drm/i915/gem/
Di915_gem_stolen.c869 u16 ggc, gms; in mtl_get_gms_size() local
878 gms = REG_FIELD_GET(GMS_MASK, ggc); in mtl_get_gms_size()
879 switch (gms) { in mtl_get_gms_size()
881 return gms * 32; in mtl_get_gms_size()
883 return (gms - 0xf0 + 1) * 4; in mtl_get_gms_size()
885 MISSING_CASE(gms); in mtl_get_gms_size()