Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/misc/sgi-gru/
Dgrutlbpurge.c145 void gru_flush_tlb_range(struct gru_mm_struct *gms, unsigned long start, in gru_flush_tlb_range() argument
161 gru_dbg(grudev, "gms %p, start 0x%lx, len 0x%lx, asidmap 0x%lx\n", gms, in gru_flush_tlb_range()
162 start, len, gms->ms_asidmap[0]); in gru_flush_tlb_range()
164 spin_lock(&gms->ms_asid_lock); in gru_flush_tlb_range()
165 for_each_gru_in_bitmap(gid, gms->ms_asidmap) { in gru_flush_tlb_range()
168 asids = gms->ms_asids + gid; in gru_flush_tlb_range()
183 __clear_bit(gru->gs_gid, gms->ms_asidmap); in gru_flush_tlb_range()
187 gms->ms_asidmap[0]); in gru_flush_tlb_range()
190 spin_unlock(&gms->ms_asid_lock); in gru_flush_tlb_range()
212 struct gru_mm_struct *gms = container_of(mn, struct gru_mm_struct, in gru_invalidate_range_start() local
[all …]
Dgrumain.c227 struct gru_mm_struct *gms = gts->ts_gms; in gru_load_mm_tracker() local
228 struct gru_mm_tracker *asids = &gms->ms_asids[gru->gs_gid]; in gru_load_mm_tracker()
232 spin_lock(&gms->ms_asid_lock); in gru_load_mm_tracker()
249 if (!test_bit(gru->gs_gid, gms->ms_asidmap)) in gru_load_mm_tracker()
250 __set_bit(gru->gs_gid, gms->ms_asidmap); in gru_load_mm_tracker()
251 spin_unlock(&gms->ms_asid_lock); in gru_load_mm_tracker()
255 gru->gs_gid, gts, gms, gts->ts_ctxnum, asid, in gru_load_mm_tracker()
256 gms->ms_asidmap[0]); in gru_load_mm_tracker()
263 struct gru_mm_struct *gms = gts->ts_gms; in gru_unload_mm_tracker() local
267 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.6.21/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.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_stolen.c851 u16 ggc, gms; in mtl_get_gms_size() local
860 gms = REG_FIELD_GET(GMS_MASK, ggc); in mtl_get_gms_size()
861 switch (gms) { in mtl_get_gms_size()
863 return gms * 32; in mtl_get_gms_size()
865 return (gms - 0xf0 + 1) * 4; in mtl_get_gms_size()
867 MISSING_CASE(gms); in mtl_get_gms_size()