Lines Matching refs:asce
78 gmap->asce = atype | _ASCE_TABLE_LENGTH | in gmap_alloc()
108 gmap_asce = gmap->asce; in gmap_create()
120 __tlb_flush_idte(gmap->asce); in gmap_flush_tlb()
259 struct gmap, list)->asce; in gmap_remove()
553 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION1) { in __gmap_link()
561 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION2) { in __gmap_link()
569 if ((gmap->asce & _ASCE_TYPE_MASK) >= _ASCE_TYPE_REGION3) { in __gmap_link()
795 const int asce_type = gmap->asce & _ASCE_TYPE_MASK; in gmap_table_walk()
1284 static inline void gmap_idte_one(unsigned long asce, unsigned long vaddr) in gmap_idte_one() argument
1288 : : "a" (asce), "a" (vaddr) : "cc", "memory"); in gmap_idte_one()
1542 unsigned long asce; in __gmap_unshadow_r1t() local
1548 asce = __pa(r1t) | _ASCE_TYPE_REGION1; in __gmap_unshadow_r1t()
1555 gmap_idte_one(asce, raddr); in __gmap_unshadow_r1t()
1580 table = __va(sg->asce & _ASCE_ORIGIN); in gmap_unshadow()
1581 switch (sg->asce & _ASCE_TYPE_MASK) { in gmap_unshadow()
1607 static struct gmap *gmap_find_shadow(struct gmap *parent, unsigned long asce, in gmap_find_shadow() argument
1613 if (sg->orig_asce != asce || sg->edat_level != edat_level || in gmap_find_shadow()
1636 int gmap_shadow_valid(struct gmap *sg, unsigned long asce, int edat_level) in gmap_shadow_valid() argument
1640 return sg->orig_asce == asce && sg->edat_level == edat_level; in gmap_shadow_valid()
1659 struct gmap *gmap_shadow(struct gmap *parent, unsigned long asce, in gmap_shadow() argument
1669 sg = gmap_find_shadow(parent, asce, edat_level); in gmap_shadow()
1674 limit = -1UL >> (33 - (((asce & _ASCE_TYPE_MASK) >> 2) * 11)); in gmap_shadow()
1675 if (asce & _ASCE_REAL_SPACE) in gmap_shadow()
1682 new->orig_asce = asce; in gmap_shadow()
1687 sg = gmap_find_shadow(parent, asce, edat_level); in gmap_shadow()
1693 if (asce & _ASCE_REAL_SPACE) { in gmap_shadow()
1708 if (asce & _ASCE_REAL_SPACE) { in gmap_shadow()
1717 rc = gmap_protect_range(parent, asce & _ASCE_ORIGIN, in gmap_shadow()
1718 ((asce & _ASCE_TABLE_LENGTH) + 1) * PAGE_SIZE, in gmap_shadow()
2310 __pmdp_idte(gaddr, (pmd_t *)pmdp, IDTE_GUEST_ASCE, gmap->asce, in gmap_pmdp_xchg()
2392 gmap->asce, IDTE_LOCAL); in gmap_pmdp_idte_local()
2427 gmap->asce, IDTE_GLOBAL); in gmap_pmdp_idte_global()
2844 unsigned long asce; in s390_replace_asce() local
2866 asce = (gmap->asce & ~_ASCE_ORIGIN) | __pa(table); in s390_replace_asce()
2867 WRITE_ONCE(gmap->asce, asce); in s390_replace_asce()
2868 WRITE_ONCE(gmap->mm->context.gmap_asce, asce); in s390_replace_asce()