Searched refs:iopte (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/iommu/ |
D | omap-iommu.c | 468 static void iopte_free(struct omap_iommu *obj, u32 *iopte, bool dma_valid) in iopte_free() argument 473 if (iopte) { in iopte_free() 475 pt_dma = virt_to_phys(iopte); in iopte_free() 480 kmem_cache_free(iopte_cachep, iopte); in iopte_free() 487 u32 *iopte; in iopte_alloc() local 498 iopte = kmem_cache_zalloc(iopte_cachep, GFP_KERNEL); in iopte_alloc() 502 if (!iopte) in iopte_alloc() 505 *pt_dma = dma_map_single(obj->dev, iopte, IOPTE_TABLE_SIZE, in iopte_alloc() 509 iopte_free(obj, iopte, false); in iopte_alloc() 517 if (WARN_ON(*pt_dma != virt_to_phys(iopte))) { in iopte_alloc() [all …]
|
D | omap-iommu-debug.c | 184 u32 *iopgd, *iopte; in dump_ioptable() local 200 iopte = iopte_offset(iopgd, 0); in dump_ioptable() 201 for (j = 0; j < PTRS_PER_IOPTE; j++, iopte++) { in dump_ioptable() 202 if (!*iopte) in dump_ioptable() 206 seq_printf(s, "2: 0x%08x 0x%08x\n", da, *iopte); in dump_ioptable()
|
/linux-6.12.1/arch/sparc/mm/ |
D | iommu.c | 158 static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte) in iommu_flush_iotlb() argument 163 start = (unsigned long)iopte; in iommu_flush_iotlb() 193 iopte_t *iopte, *iopte0; in __sbus_iommu_map_page() local 221 iopte = iopte0; in __sbus_iommu_map_page() 223 iopte_val(*iopte) = MKIOPTE(pfn, IOPERM); in __sbus_iommu_map_page() 226 iopte++; in __sbus_iommu_map_page() 318 iopte_t *iopte = iommu->page_table; in sbus_iommu_alloc() local 345 iopte += ioptex; in sbus_iommu_alloc() 346 first = iopte; in sbus_iommu_alloc() 366 iopte_val(*iopte++) = in sbus_iommu_alloc() [all …]
|
D | io-unit.c | 101 iopte_t iopte; in iounit_get_area() local 135 iopte = MKIOPTE(__pa(vaddr & PAGE_MASK)); in iounit_get_area() 137 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area() 139 sbus_writel(iopte_val(iopte), &iounit->page_table[scan]); in iounit_get_area() 222 iopte_t __iomem *iopte; in iounit_alloc() local 254 iopte = iounit->page_table + i; in iounit_alloc() 255 sbus_writel(iopte_val(MKIOPTE(__pa(page))), iopte); in iounit_alloc()
|
/linux-6.12.1/arch/sparc/kernel/ |
D | iommu.c | 80 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument 81 ((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa) 83 static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte) in iopte_make_dummy() argument 85 unsigned long val = iopte_val(*iopte); in iopte_make_dummy() 90 iopte_val(*iopte) = val; in iopte_make_dummy() 205 iopte_t *iopte; in dma_4u_alloc_coherent() local 223 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent() 225 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent() 231 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent() 236 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent() [all …]
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | page_32.h | 56 typedef struct { unsigned long iopte; } iopte_t; member 64 #define iopte_val(x) ((x).iopte)
|
D | page_64.h | 69 typedef struct { unsigned long iopte; } iopte_t; member 76 #define iopte_val(x) ((x).iopte)
|