Lines Matching defs:mmu
88 unsigned int (*get_pd_base)(struct isp_mmu *mmu, phys_addr_t pd_base);
100 void (*tlb_flush_range)(struct isp_mmu *mmu,
102 void (*tlb_flush_all)(struct isp_mmu *mmu);
103 unsigned int (*phys_to_pte)(struct isp_mmu *mmu,
105 phys_addr_t (*pte_to_phys)(struct isp_mmu *mmu,
120 #define ISP_PTE_VALID_MASK(mmu) \
121 ((mmu)->driver->pte_valid_mask)
123 #define ISP_PTE_VALID(mmu, pte) \
124 ((pte) & ISP_PTE_VALID_MASK(mmu))
130 * init mmu with specific mmu driver.
132 int isp_mmu_init(struct isp_mmu *mmu, struct isp_mmu_client *driver);
134 * cleanup all mmu related things.
136 void isp_mmu_exit(struct isp_mmu *mmu);
148 int isp_mmu_map(struct isp_mmu *mmu, unsigned int isp_virt,
151 void isp_mmu_unmap(struct isp_mmu *mmu, unsigned int isp_virt,
154 static inline void isp_mmu_flush_tlb_all(struct isp_mmu *mmu)
156 if (mmu->driver && mmu->driver->tlb_flush_all)
157 mmu->driver->tlb_flush_all(mmu);
162 static inline void isp_mmu_flush_tlb_range(struct isp_mmu *mmu,
165 if (mmu->driver && mmu->driver->tlb_flush_range)
166 mmu->driver->tlb_flush_range(mmu, start, size);