Searched refs:gmap (Results 1 - 25 of 25) sorted by relevance

/linux-master/arch/s390/include/asm/
H A Dgmap.h25 * @list: list head for the mm->context gmap list
31 * @ref_count: reference counter for the gmap structure
33 * @asce: address space control element for gmap page table
37 * @children: list of shadow gmap structures
39 * @shadow_lock: spinlock to protect the shadow gmap list
40 * @parent: pointer to the parent gmap for shadow guest address spaces
46 struct gmap { struct
66 struct gmap *parent;
96 void (*notifier_call)(struct gmap *gmap, unsigne
100 gmap_is_shadow(struct gmap *gmap) argument
[all...]
H A Duv.h19 #include <asm/gmap.h>
484 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb);
485 int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr);
489 int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr);
H A Dkvm_host.h749 struct gmap *gmap; member in struct:kvm_vcpu_arch
750 /* backup location for the currently enabled gmap when scheduled out */
751 struct gmap *enabled_gmap;
967 struct gmap *gmap; member in struct:kvm_arch
H A Dlowcore.h164 __u64 gmap; /* 0x03d0 */ member in struct:lowcore
/linux-master/arch/s390/mm/
H A Dgmap.c23 #include <asm/gmap.h>
42 * @limit: maximum address of the gmap address space
46 static struct gmap *gmap_alloc(unsigned long limit)
48 struct gmap *gmap; local
70 gmap = kzalloc(sizeof(struct gmap), GFP_KERNEL_ACCOUNT);
71 if (!gmap)
73 INIT_LIST_HEAD(&gmap->crst_list);
74 INIT_LIST_HEAD(&gmap
110 struct gmap *gmap; local
129 gmap_flush_tlb(struct gmap *gmap) argument
194 gmap_free(struct gmap *gmap) argument
228 gmap_get(struct gmap *gmap) argument
241 gmap_put(struct gmap *gmap) argument
252 gmap_remove(struct gmap *gmap) argument
288 gmap_enable(struct gmap *gmap) argument
298 gmap_disable(struct gmap *gmap) argument
318 gmap_alloc_table(struct gmap *gmap, unsigned long *table, unsigned long init, unsigned long gaddr) argument
368 __gmap_unlink_by_vmaddr(struct gmap *gmap, unsigned long vmaddr) argument
391 __gmap_unmap_by_gaddr(struct gmap *gmap, unsigned long gaddr) argument
408 gmap_unmap_segment(struct gmap *gmap, unsigned long to, unsigned long len) argument
439 gmap_map_segment(struct gmap *gmap, unsigned long from, unsigned long to, unsigned long len) argument
486 __gmap_translate(struct gmap *gmap, unsigned long gaddr) argument
506 gmap_translate(struct gmap *gmap, unsigned long gaddr) argument
526 struct gmap *gmap; local
552 __gmap_link(struct gmap *gmap, unsigned long gaddr, unsigned long vmaddr) argument
648 gmap_fault(struct gmap *gmap, unsigned long gaddr, unsigned int fault_flags) argument
686 __gmap_zap(struct gmap *gmap, unsigned long gaddr) argument
713 gmap_discard(struct gmap *gmap, unsigned long from, unsigned long to) argument
779 gmap_call_notifier(struct gmap *gmap, unsigned long start, unsigned long end) argument
806 gmap_table_walk(struct gmap *gmap, unsigned long gaddr, int level) argument
868 gmap_pte_op_walk(struct gmap *gmap, unsigned long gaddr, spinlock_t **ptl) argument
892 gmap_pte_op_fixup(struct gmap *gmap, unsigned long gaddr, unsigned long vmaddr, int prot) argument
928 gmap_pmd_op_walk(struct gmap *gmap, unsigned long gaddr) argument
958 gmap_pmd_op_end(struct gmap *gmap, pmd_t *pmdp) argument
978 gmap_protect_pmd(struct gmap *gmap, unsigned long gaddr, pmd_t *pmdp, int prot, unsigned long bits) argument
1023 gmap_protect_pte(struct gmap *gmap, unsigned long gaddr, pmd_t *pmdp, int prot, unsigned long bits) argument
1059 gmap_protect_range(struct gmap *gmap, unsigned long gaddr, unsigned long len, int prot, unsigned long bits) argument
1119 gmap_mprotect_notify(struct gmap *gmap, unsigned long gaddr, unsigned long len, int prot) argument
1148 gmap_read_table(struct gmap *gmap, unsigned long gaddr, unsigned long *val) argument
2272 struct gmap *gmap, *sg, *next; local
2301 pmdp_notify_gmap(struct gmap *gmap, pmd_t *pmdp, unsigned long gaddr) argument
2318 gmap_pmdp_xchg(struct gmap *gmap, pmd_t *pmdp, pmd_t new, unsigned long gaddr) argument
2338 struct gmap *gmap; local
2391 struct gmap *gmap; local
2426 struct gmap *gmap; local
2464 gmap_test_and_clear_dirty_pmd(struct gmap *gmap, pmd_t *pmdp, unsigned long gaddr) argument
2491 gmap_sync_dirty_log_pmd(struct gmap *gmap, unsigned long bitmap[4], unsigned long gaddr, unsigned long vmaddr) argument
2822 s390_unlist_old_asce(struct gmap *gmap) argument
2861 s390_replace_asce(struct gmap *gmap) argument
[all...]
H A Dfault.c42 #include <asm/gmap.h>
70 struct gmap *gmap; local
77 gmap = (struct gmap *)S390_lowcore.gmap;
78 if (gmap && gmap->asce == regs->cr1)
189 asce = ((struct gmap *)S390_lowcore.gmap)
289 struct gmap *gmap; local
495 struct gmap *gmap; local
563 struct gmap *gmap = (struct gmap *)S390_lowcore.gmap; local
575 struct gmap *gmap = (struct gmap *)S390_lowcore.gmap; local
[all...]
H A DMakefile13 obj-$(CONFIG_PGSTE) += gmap.o
H A Dpgalloc.c15 #include <asm/gmap.h>
174 /* pt_list is used by gmap only */
222 * Turn to the generic pte_free_defer() version once gmap is removed.
/linux-master/arch/s390/kernel/
H A Duv.c274 int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb) argument
286 mmap_read_lock(gmap->mm);
288 uaddr = __gmap_translate(gmap, gaddr);
291 vma = vma_lookup(gmap->mm, uaddr);
305 ptep = get_locked_pte(gmap->mm, uaddr, &ptelock);
312 if (should_export_before_import(uvcb, gmap->mm))
320 mmap_read_unlock(gmap->mm);
352 if (gmap_fault(gmap, gaddr, FAULT_FLAG_WRITE))
360 int gmap_convert_to_secure(struct gmap *gma argument
382 gmap_destroy_page(struct gmap *gmap, unsigned long gaddr) argument
[all...]
H A Dasm-offsets.c17 #include <asm/gmap.h>
141 OFFSET(__LC_GMAP, lowcore, gmap);
163 /* gmap/sie offsets */
164 OFFSET(__GMAP_ASCE, gmap, asce);
H A Dentry.S192 lg %r14,__LC_GMAP # get gmap pointer
/linux-master/arch/s390/kvm/
H A Dvsie.c16 #include <asm/gmap.h>
38 /* the shadow gmap in use by the vsie_page */
39 struct gmap *gmap; /* 0x0220 */ member in struct:vsie_page
85 /* test if the prefix is mapped into the gmap shadow */
579 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start, argument
582 struct kvm *kvm = gmap->private;
588 if (!gmap_is_shadow(gmap))
599 if (READ_ONCE(cur->gmap) !
1212 struct gmap *gmap; local
[all...]
H A Ddiag.c13 #include <asm/gmap.h>
40 gmap_discard(vcpu->arch.gmap, start, end);
48 gmap_discard(vcpu->arch.gmap, start, prefix);
50 gmap_discard(vcpu->arch.gmap, 0, PAGE_SIZE);
52 gmap_discard(vcpu->arch.gmap, PAGE_SIZE, 2 * PAGE_SIZE);
53 gmap_discard(vcpu->arch.gmap, prefix + 2 * PAGE_SIZE, end);
H A Dpv.c13 #include <asm/gmap.h>
40 * @old_gmap_table: the gmap table of the leftover protected VM
285 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0);
334 if ((kvm->arch.gmap->asce & _ASCE_TYPE_MASK) == _ASCE_TYPE_SEGMENT)
347 priv->old_gmap_table = (unsigned long)kvm->arch.gmap->table;
348 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0);
349 if (s390_replace_asce(kvm->arch.gmap))
392 WRITE_ONCE(kvm->arch.gmap->guest_handle, 0);
398 s390_replace_asce(kvm->arch.gmap);
574 uvcb.guest_asce = kvm->arch.gmap
[all...]
H A Dkvm-s390.c40 #include <asm/gmap.h>
267 static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start,
674 struct gmap *gmap = kvm->arch.gmap; local
687 gmap_sync_dirty_log_pmd(gmap, bitmap, gaddr, vmaddr);
949 s390_reset_cmma(kvm->arch.gmap->mm);
978 struct gmap *new = gmap_create(current->mm, new_limit);
983 gmap_remove(kvm->arch.gmap);
4055 kvm_gmap_notifier(struct gmap *gmap, unsigned long start, unsigned long end) argument
[all...]
H A Dintercept.c547 rc = gmap_make_secure(vcpu->arch.gmap, uvcb.gaddr, &uvcb);
655 gmap_convert_to_secure(vcpu->arch.gmap,
657 gmap_convert_to_secure(vcpu->arch.gmap,
H A Dkvm-s390.h107 if (kvm->arch.gmap)
366 void kvm_s390_vsie_gmap_notifier(struct gmap *gmap, unsigned long start,
H A Dpriv.c24 #include <asm/gmap.h>
1224 struct gmap *gmap; local
1228 gmap = vcpu->arch.gmap;
1284 mmap_read_lock(gmap->mm);
1286 __gmap_zap(gmap, cbrlo[i]);
1287 mmap_read_unlock(gmap->mm);
H A Dgaccess.h455 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
H A Dgaccess.c16 #include <asm/gmap.h>
1358 * @saddr: faulting address in the shadow gmap
1365 static int kvm_s390_shadow_tables(struct gmap *sg, unsigned long saddr,
1370 struct gmap *parent;
1552 * @saddr: faulting address in the shadow gmap
1562 int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *sg,
H A Dinterrupt.c28 #include <asm/gmap.h>
2690 dev->kvm->arch.gmap->pfault_enabled = 1;
2693 dev->kvm->arch.gmap->pfault_enabled = 0;
2907 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.summary_addr);
2911 uaddr = gmap_translate(kvm->arch.gmap, ue->u.adapter.ind_addr);
/linux-master/include/video/
H A Dgbe.h60 volatile uint32_t gmap[256]; /* gamma map */ member in struct:sgi_gbe
/linux-master/drivers/s390/crypto/
H A Dvfio_ap_ops.c363 static int ensure_nib_shared(unsigned long addr, struct gmap *gmap) argument
380 gmap_convert_to_secure(gmap, addr);
450 ensure_nib_shared(h_nib & PAGE_MASK, kvm->arch.gmap)) {
/linux-master/drivers/net/dsa/
H A Dlantiq_gswip.c298 u8 gmap; member in struct:gswip_pce_table_entry
583 tbl->gmap = (crtl & GSWIP_PCE_TBL_CTRL_GMAP_MASK) >> 7;
634 crtl |= (tbl->gmap << 7) & GSWIP_PCE_TBL_CTRL_GMAP_MASK;
/linux-master/drivers/video/fbdev/
H A Dgbefb.c805 gbe->gmap[i] = (i << 24) | (i << 16) | (i << 8);

Completed in 265 milliseconds