Home
last modified time | relevance | path

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

/linux/drivers/iommu/
H A Drockchip-iommu.c543 u32 *pte_addr = NULL; in log_iova() local
563 pte_addr = phys_to_virt(pte_addr_phys); in log_iova()
564 pte = *pte_addr; in log_iova()
754 u32 *pte_addr, dma_addr_t pte_dma, in rk_iommu_unmap_iova() argument
763 u32 pte = pte_addr[pte_count]; in rk_iommu_unmap_iova()
767 pte_addr[pte_count] = rk_mk_pte_invalid(pte); in rk_iommu_unmap_iova()
775 static int rk_iommu_map_iova(struct rk_iommu_domain *rk_domain, u32 *pte_addr, in rk_iommu_map_iova() argument
786 u32 pte = pte_addr[pte_count]; in rk_iommu_map_iova()
791 pte_addr[pte_count] = rk_ops->mk_ptentries(paddr, prot); in rk_iommu_map_iova()
809 rk_iommu_unmap_iova(rk_domain, pte_addr, pte_dma, in rk_iommu_map_iova()
[all …]
H A Dsun50i-iommu.c602 u32 *page_table, *pte_addr; in sun50i_iommu_map() local
620 pte_addr = &page_table[pte_index]; in sun50i_iommu_map()
621 if (unlikely(sun50i_pte_is_page_valid(*pte_addr))) { in sun50i_iommu_map()
622 phys_addr_t page_phys = sun50i_pte_get_page_address(*pte_addr); in sun50i_iommu_map()
630 *pte_addr = sun50i_mk_pte(paddr, prot); in sun50i_iommu_map()
631 sun50i_table_flush(sun50i_domain, pte_addr, 1); in sun50i_iommu_map()
643 u32 *pte_addr; in sun50i_iommu_unmap() local
651 pte_addr = (u32 *)phys_to_virt(pt_phys) + sun50i_iova_get_pte_index(iova); in sun50i_iommu_unmap()
653 if (!sun50i_pte_is_page_valid(*pte_addr)) in sun50i_iommu_unmap()
656 memset(pte_addr, 0, sizeof(*pte_addr)); in sun50i_iommu_unmap()
[all …]
/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.c88 static uint64_t pte_addr(struct kvm_vm *vm, uint64_t pte) in pte_addr() function
154 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, vaddr) * 8; in _virt_pg_map()
159 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map()
164 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, vaddr) * 8; in _virt_pg_map()
193 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, gva) * 8; in virt_get_pte_hva()
198 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in virt_get_pte_hva()
203 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, gva) * 8; in virt_get_pte_hva()
222 return pte_addr(vm, *ptep) + (gva & (vm->page_size - 1)); in addr_arch_gva2gpa()
239 pte_dump(stream, vm, indent + 1, pte_addr(vm, *ptep), level + 1); in pte_dump()
257 pte_dump(stream, vm, indent + 1, pte_addr(v in virt_arch_dump()
[all...]
/linux/tools/testing/selftests/kvm/lib/riscv/
H A Dprocessor.c34 static uint64_t pte_addr(struct kvm_vm *vm, uint64_t entry) in pte_addr() function
110 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + in virt_arch_pg_map()
140 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + in addr_arch_gva2gpa()
147 return pte_addr(vm, *ptep) + (gva & (vm->page_size - 1)); in addr_arch_gva2gpa()
172 pte_addr(vm, *ptep), level - 1); in pte_dump()
192 pte_addr(vm, *ptep), level - 1); in virt_arch_dump()
/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c1293 void hl_mmu_dr_clear_pte(struct hl_ctx *ctx, u64 pte_addr) in hl_mmu_dr_clear_pte() argument
1295 hl_mmu_dr_write_final_pte(ctx, pte_addr, 0); in hl_mmu_dr_clear_pte()
/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs.h3939 void hl_mmu_dr_clear_pte(struct hl_ctx *ctx, u64 pte_addr);