Home
last modified time | relevance | path

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

/openbmc/linux/drivers/accel/ivpu/
H A Divpu_mmu_context.c67 u64 *pud_dma_ptr, *pmd_dma_ptr, *pte_dma_ptr; in ivpu_mmu_pgtables_free() local
84 pte_dma_ptr = pgtable->pte_ptrs[pgd_idx][pud_idx][pmd_idx]; in ivpu_mmu_pgtables_free()
87 ivpu_mmu_pgtable_free(vdev, pte_dma_ptr, pte_dma); in ivpu_mmu_pgtables_free()
171 u64 *pte_dma_ptr = pgtable->pte_ptrs[pgd_idx][pud_idx][pmd_idx]; in ivpu_mmu_ensure_pte() local
174 if (pte_dma_ptr) in ivpu_mmu_ensure_pte()
175 return pte_dma_ptr; in ivpu_mmu_ensure_pte()
177 pte_dma_ptr = dma_alloc_wc(vdev->drm.dev, IVPU_MMU_PGTABLE_SIZE, &pte_dma, GFP_KERNEL); in ivpu_mmu_ensure_pte()
178 if (!pte_dma_ptr) in ivpu_mmu_ensure_pte()
181 pgtable->pte_ptrs[pgd_idx][pud_idx][pmd_idx] = pte_dma_ptr; in ivpu_mmu_ensure_pte()
184 return pte_dma_ptr; in ivpu_mmu_ensure_pte()