msm_iommu.c (05aed9412b0bd0d9a985d94010c42ff0a5c6cc29) | msm_iommu.c (abfd6fe0cd535d31ee83b668be6eb59ce6a8469d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. 3 * 4 * Author: Stepan Moskovchenko <stepanm@codeaurora.org> 5 */ 6 7#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 8#include <linux/kernel.h> --- 178 unchanged lines hidden (view full) --- 187 188static void __flush_iotlb_leaf(unsigned long iova, size_t size, 189 size_t granule, void *cookie) 190{ 191 __flush_iotlb_range(iova, size, granule, true, cookie); 192 __flush_iotlb_sync(cookie); 193} 194 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. 3 * 4 * Author: Stepan Moskovchenko <stepanm@codeaurora.org> 5 */ 6 7#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 8#include <linux/kernel.h> --- 178 unchanged lines hidden (view full) --- 187 188static void __flush_iotlb_leaf(unsigned long iova, size_t size, 189 size_t granule, void *cookie) 190{ 191 __flush_iotlb_range(iova, size, granule, true, cookie); 192 __flush_iotlb_sync(cookie); 193} 194 |
195static void __flush_iotlb_page(unsigned long iova, size_t granule, void *cookie) 196{ 197 __flush_iotlb_range(iova, granule, granule, true, cookie); 198} 199 |
|
195static const struct iommu_flush_ops msm_iommu_flush_ops = { 196 .tlb_flush_all = __flush_iotlb, 197 .tlb_flush_walk = __flush_iotlb_walk, 198 .tlb_flush_leaf = __flush_iotlb_leaf, | 200static const struct iommu_flush_ops msm_iommu_flush_ops = { 201 .tlb_flush_all = __flush_iotlb, 202 .tlb_flush_walk = __flush_iotlb_walk, 203 .tlb_flush_leaf = __flush_iotlb_leaf, |
199 .tlb_add_flush = __flush_iotlb_range, | 204 .tlb_add_page = __flush_iotlb_page, |
200 .tlb_sync = __flush_iotlb_sync, 201}; 202 203static int msm_iommu_alloc_ctx(unsigned long *map, int start, int end) 204{ 205 int idx; 206 207 do { --- 663 unchanged lines hidden --- | 205 .tlb_sync = __flush_iotlb_sync, 206}; 207 208static int msm_iommu_alloc_ctx(unsigned long *map, int start, int end) 209{ 210 int idx; 211 212 do { --- 663 unchanged lines hidden --- |