Lines Matching refs:page
35 #define RK_MMU_PAGE_FAULT_ADDR 0x0C /* IOVA of last page fault */
64 #define RK_MMU_CMD_PAGE_FAULT_DONE 5 /* Clear page fault */
68 #define RK_MMU_IRQ_PAGE_FAULT 0x01 /* page fault */
79 * Support mapping any size that fits in one page table:
86 u32 *dt; /* page directory table */
89 spinlock_t dt_lock; /* lock for modifying page directory table */
102 u32 (*mk_ptentries)(phys_addr_t page, int prot);
143 * The Rockchip rk3288 iommu uses a 2-level page table.
149 * a 4 KB page of physical memory.
151 * The DT and each PT fits in a single 4 KB page (4-bytes * 1024 entries).
153 * address of the start of the DT page.
155 * The structure of the page table is as follows:
269 static u32 rk_mk_pte(phys_addr_t page, int prot)
274 page &= RK_PTE_PAGE_ADDRESS_MASK;
275 return page | flags | RK_PTE_PAGE_VALID;
289 static u32 rk_mk_pte_v2(phys_addr_t page, int prot)
296 return rk_mk_dte_v2(page) | flags;
312 * 11: 0 - Page offset - offset into page @ PTE.page_address
575 dev_err(iommu->dev, "mmu_dte_addr: %pa dte@%pa: %#08x valid: %u pte@%pa: %#08x valid: %u page@%pa flags: %#03x\n",
619 * Report page fault to any installed handlers.
621 * and clear the page fault anyway.
738 dev_err(dma_dev, "DMA mapping error while allocating page table\n");
834 * pgsize_bitmap specifies iova sizes that fit in one page table
875 * pgsize_bitmap specifies iova sizes that fit in one page table
1064 * Allocate one 4 KiB page for each table.