Home
last modified time | relevance | path

Searched refs:pgt (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_pgt.c32 mutex_lock(&mlxsw_sp->pgt->lock); in mlxsw_sp_pgt_mid_alloc()
42 mutex_unlock(&mlxsw_sp->pgt->lock); in mlxsw_sp_pgt_mid_alloc()
52 mutex_lock(&mlxsw_sp->pgt->lock); in mlxsw_sp_pgt_mid_free()
63 mutex_lock(&mlxsw_sp->pgt->lock); in mlxsw_sp_pgt_mid_alloc_range()
323 struct mlxsw_sp_pgt *pgt; in mlxsw_sp_pgt_init() local
328 pgt = kzalloc(sizeof(*mlxsw_sp->pgt), GFP_KERNEL); in mlxsw_sp_pgt_init()
329 if (!pgt) in mlxsw_sp_pgt_init()
332 idr_init(&pgt->pgt_idr); in mlxsw_sp_pgt_init()
334 mutex_init(&pgt->lock); in mlxsw_sp_pgt_init()
336 mlxsw_sp->pgt = pgt; in mlxsw_sp_pgt_init()
[all …]
H A Dspectrum.h213 struct mlxsw_sp_pgt *pgt; member
/openbmc/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c306 if (!pgt->pgd) in _kvm_pgtable_walk()
569 if (!pgt->pgd) in kvm_pgtable_hyp_init()
575 pgt->mmu = NULL; in kvm_pgtable_hyp_init()
604 WARN_ON(kvm_pgtable_walk(pgt, 0, BIT(pgt->ia_bits), &walker)); in kvm_pgtable_hyp_destroy()
605 pgt->mm_ops->put_page(kvm_dereference_pteref(&walker, pgt->pgd)); in kvm_pgtable_hyp_destroy()
606 pgt->pgd = NULL; in kvm_pgtable_hyp_destroy()
924 struct kvm_pgtable *pgt = data->mmu->pgt; in stage2_map_walker_try_leaf() local
1145 .arg = pgt, in kvm_pgtable_stage2_unmap()
1349 .arg = pgt, in kvm_pgtable_stage2_flush()
1528 if (!pgt->pgd) in __kvm_pgtable_stage2_init()
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Dkvm_pgtable.h362 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits,
372 void kvm_pgtable_hyp_destroy(struct kvm_pgtable *pgt);
415 u64 kvm_pgtable_hyp_unmap(struct kvm_pgtable *pgt, u64 addr, u64 size);
457 #define kvm_pgtable_stage2_init(pgt, mmu, mm_ops) \ argument
458 __kvm_pgtable_stage2_init(pgt, mmu, mm_ops, 0, NULL)
467 void kvm_pgtable_stage2_destroy(struct kvm_pgtable *pgt);
501 kvm_pte_t *kvm_pgtable_stage2_create_unlinked(struct kvm_pgtable *pgt,
535 int kvm_pgtable_stage2_map(struct kvm_pgtable *pgt, u64 addr, u64 size,
649 int kvm_pgtable_stage2_relax_perms(struct kvm_pgtable *pgt, u64 addr,
707 int kvm_pgtable_walk(struct kvm_pgtable *pgt, u64 addr, u64 size,
[all …]
H A Dkvm_host.h159 struct kvm_pgtable *pgt; member
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmm.c31 if (pgt) { in nvkm_vmm_pt_del()
32 kvfree(pgt->pde); in nvkm_vmm_pt_del()
33 kfree(pgt); in nvkm_vmm_pt_del()
56 if (!(pgt = kzalloc(sizeof(*pgt) + lpte, GFP_KERNEL))) in nvkm_vmm_pt_new()
62 pgt->pde = kvcalloc(pten, sizeof(*pgt->pde), GFP_KERNEL); in nvkm_vmm_pt_new()
63 if (!pgt->pde) { in nvkm_vmm_pt_new()
64 kfree(pgt); in nvkm_vmm_pt_new()
69 return pgt; in nvkm_vmm_pt_new()
216 if (!pgt->refs[0]) in nvkm_vmm_unref_sptes()
280 if (desc->type == SPT && (pgt->refs[0] || pgt->refs[1])) in nvkm_vmm_unref_ptes()
[all …]
H A Dvmmgp100.c238 struct nvkm_vmm_pt *pgt = pgd->pde[pdei]; in gp100_vmm_pd0_pde() local
242 if (pgt->pt[0] && !gp100_vmm_pde(pgt->pt[0], &data[0])) in gp100_vmm_pd0_pde()
244 if (pgt->pt[1] && !gp100_vmm_pde(pgt->pt[1], &data[1])) in gp100_vmm_pd0_pde()
365 struct nvkm_vmm_pt *pgt = pgd->pde[pdei]; in gp100_vmm_pd1_pde() local
369 if (!gp100_vmm_pde(pgt->pt[0], &data)) in gp100_vmm_pd1_pde()
H A Dvmmnv50.c106 nv50_vmm_pde(struct nvkm_vmm *vmm, struct nvkm_vmm_pt *pgt, u64 *pdata) in nv50_vmm_pde() argument
110 if (pgt && (pt = pgt->pt[0])) { in nv50_vmm_pde()
111 switch (pgt->page) { in nv50_vmm_pde()
H A Dvmmgf100.c108 struct nvkm_vmm_pt *pgt = pgd->pde[pdei]; in gf100_vmm_pgd_pde() local
113 if ((pt = pgt->pt[0])) { in gf100_vmm_pgd_pde()
127 if ((pt = pgt->pt[1])) { in gf100_vmm_pgd_pde()
/openbmc/linux/arch/arm64/kvm/
H A Dmmu.c66 struct kvm_pgtable *pgt = mmu->pgt; in stage2_apply_range() local
67 if (!pgt) in stage2_apply_range()
145 pgt = kvm->arch.mmu.pgt; in kvm_mmu_split_huge_pages()
146 if (!pgt) in kvm_mmu_split_huge_pages()
902 pgt = kzalloc(sizeof(*pgt), GFP_KERNEL_ACCOUNT); in kvm_init_stage2_mmu()
903 if (!pgt) in kvm_init_stage2_mmu()
924 mmu->pgt = pgt; in kvm_init_stage2_mmu()
1015 pgt = mmu->pgt; in kvm_free_stage2_pgd()
1016 if (pgt) { in kvm_free_stage2_pgd()
1070 struct kvm_pgtable *pgt = kvm->arch.mmu.pgt; in kvm_phys_addr_ioremap() local
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/dma/
H A Dusernv04.c52 struct nvkm_memory *pgt = in nv04_dmaobj_bind() local
55 return nvkm_gpuobj_wrap(pgt, pgpuobj); in nv04_dmaobj_bind()
56 nvkm_kmap(pgt); in nv04_dmaobj_bind()
57 offset = nvkm_ro32(pgt, 8 + (offset >> 10)); in nv04_dmaobj_bind()
59 nvkm_done(pgt); in nv04_dmaobj_bind()
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dx86-5lvl.c68 u64 *pgt = (void *)la57_toggle + PAGE_SIZE; in efi_5level_switch() local
81 new_cr3 = memset(pgt, 0, PAGE_SIZE); in efi_5level_switch()
89 new_cr3 = memcpy(pgt, new_cr3, PAGE_SIZE); in efi_5level_switch()
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dmem_protect.c151 ret = __kvm_pgtable_stage2_init(&host_mmu.pgt, mmu, in kvm_host_prepare_stage2()
157 mmu->pgd_phys = __hyp_pa(host_mmu.pgt.pgd); in kvm_host_prepare_stage2()
158 mmu->pgt = &host_mmu.pgt; in kvm_host_prepare_stage2()
258 ret = __kvm_pgtable_stage2_init(mmu->pgt, mmu, &vm->mm_ops, 0, in kvm_guest_prepare_stage2()
264 vm->kvm.arch.mmu.pgd_phys = __hyp_pa(vm->pgt.pgd); in kvm_guest_prepare_stage2()
275 kvm_pgtable_stage2_destroy(&vm->pgt); in reclaim_guest_pages()
328 struct kvm_pgtable *pgt = &host_mmu.pgt; in host_stage2_unmap_dev_all() local
336 ret = kvm_pgtable_stage2_unmap(pgt, addr, reg->base - addr); in host_stage2_unmap_dev_all()
340 return kvm_pgtable_stage2_unmap(pgt, addr, BIT(pgt->ia_bits) - addr); in host_stage2_unmap_dev_all()
598 return kvm_pgtable_walk(pgt, addr, size, &walker); in check_page_state_range()
[all …]
H A Dpkvm.c382 mmu->pgt = &hyp_vm->pgt; in insert_vm_table_entry()
/openbmc/linux/arch/s390/kvm/
H A Dgaccess.c1386 unsigned long *pgt, int *dat_protection, in kvm_s390_shadow_tables() argument
1442 *pgt = ptr + vaddr.rfx * 8; in kvm_s390_shadow_tables()
1470 *pgt = ptr + vaddr.rsx * 8; in kvm_s390_shadow_tables()
1499 *pgt = ptr + vaddr.rtx * 8; in kvm_s390_shadow_tables()
1537 *pgt = ptr + vaddr.sx * 8; in kvm_s390_shadow_tables()
1564 *pgt = ptr; in kvm_s390_shadow_tables()
1587 unsigned long pgt = 0; in kvm_s390_shadow_fault() local
1606 pte.val = pgt + vaddr.px * PAGE_SIZE; in kvm_s390_shadow_fault()
1615 pgt |= PEI_NOT_PTE; in kvm_s390_shadow_fault()
1618 pgt += vaddr.px * 8; in kvm_s390_shadow_fault()
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dgmap.h135 int gmap_shadow_pgt(struct gmap *sg, unsigned long saddr, unsigned long pgt,
138 unsigned long *pgt, int *dat_protection, int *fake);
/openbmc/linux/arch/arm64/kvm/hyp/include/nvhe/
H A Dpkvm.h35 struct kvm_pgtable pgt; member
H A Dmem_protect.h50 struct kvm_pgtable pgt; member
/openbmc/linux/arch/s390/mm/
H A Dgmap.c1331 unsigned long *pgt) in __gmap_unshadow_pgt() argument
1337 pgt[i] = _PAGE_INVALID; in __gmap_unshadow_pgt()
1350 phys_addr_t sto, pgt; in gmap_unshadow_pgt() local
1360 pgt = *ste & _SEGMENT_ENTRY_ORIGIN; in gmap_unshadow_pgt()
1362 __gmap_unshadow_pgt(sg, raddr, __va(pgt)); in gmap_unshadow_pgt()
1364 page = phys_to_page(pgt); in gmap_unshadow_pgt()
1381 phys_addr_t pgt; in __gmap_unshadow_sgt() local
1388 pgt = sgt[i] & _REGION_ENTRY_ORIGIN; in __gmap_unshadow_sgt()
1390 __gmap_unshadow_pgt(sg, raddr, __va(pgt)); in __gmap_unshadow_sgt()
1392 page = phys_to_page(pgt); in __gmap_unshadow_sgt()
[all …]
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_64_mmu_radix.c1304 pgd_t *pgt; in debugfs_radix_read() local
1342 pgt = NULL; in debugfs_radix_read()
1346 pgt = NULL; in debugfs_radix_read()
1356 if (!pgt) { in debugfs_radix_read()
1358 pgt = kvm->arch.pgtable; in debugfs_radix_read()
1365 pgt = nested->shadow_pgtable; in debugfs_radix_read()
1374 "pgdir: %lx\n", (unsigned long)pgt); in debugfs_radix_read()
1379 pgdp = pgt + pgd_index(gpa); in debugfs_radix_read()
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbootmap.h78 BootMapPointer pgt; member
H A Dbootmap.c450 return gen_eckd_block_num(&br->pgt.xeckd, 1); in eckd_find_bmt()
/openbmc/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c946 u64 hl_mmu_hr_pte_phys_to_virt(struct hl_ctx *ctx, struct pgt_info *pgt, in hl_mmu_hr_pte_phys_to_virt() argument
952 return pgt->virt_addr + pte_offset; in hl_mmu_hr_pte_phys_to_virt()
/openbmc/linux/arch/x86/events/intel/
H A Duncore_nhmex.c877 DEFINE_UNCORE_FORMAT_ATTR(pgt, pgt, "config1:0-31");
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_self_test.c78 static int pgt(struct st_pred_args *args) in pgt() function
395 NA, 1, 0, pgt,

12