Searched refs:iopte (Results 1 – 8 of 8) sorted by relevance
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | pci_iommu.c | 69 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument 70 ((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa) 72 static void inline iopte_make_dummy(struct pci_iommu *iommu, iopte_t *iopte) in iopte_make_dummy() argument 74 unsigned long val = iopte_val(*iopte); in iopte_make_dummy() 79 iopte_val(*iopte) = val; in iopte_make_dummy() 94 iopte_t *iopte, *limit, *first; in alloc_streaming_cluster() local 100 iopte = (iommu->page_table + in alloc_streaming_cluster() 107 limit = (iopte + in alloc_streaming_cluster() 110 iopte += ((ent = iommu->alloc_info[cnum].next) << cnum); in alloc_streaming_cluster() 113 first = iopte; in alloc_streaming_cluster() [all …]
|
D | sbus.c | 136 iopte_t *iopte, *limit, *first, *cluster; in alloc_streaming_cluster() local 147 iopte = iommu->page_table + (cnum * CLUSTER_NPAGES); in alloc_streaming_cluster() 153 limit = (iopte + CLUSTER_NPAGES); in alloc_streaming_cluster() 155 iopte += ((ent = iommu->alloc_info[cnum].next) << cnum); in alloc_streaming_cluster() 158 first = iopte; in alloc_streaming_cluster() 162 if (iopte_val(*iopte) == 0UL) { in alloc_streaming_cluster() 165 cluster = iopte; in alloc_streaming_cluster() 175 iopte += (1 << cnum); in alloc_streaming_cluster() 177 if (iopte >= limit) { in alloc_streaming_cluster() 178 iopte = (iommu->page_table + (cnum * CLUSTER_NPAGES)); in alloc_streaming_cluster() [all …]
|
D | iommu_common.c | 61 iopte_t *iopte = *__iopte; in verify_one_map() local 85 paddr = iopte_val(*iopte) & IOPTE_PAGE; in verify_one_map() 89 iopte_val(*iopte), (sgaddr & IO_PAGE_MASK) - PAGE_OFFSET); in verify_one_map() 107 iopte++; in verify_one_map() 116 iopte++; in verify_one_map() 135 iopte++; in verify_one_map() 140 *__iopte = iopte; in verify_one_map() 144 static int verify_maps(struct scatterlist *sg, int nents, iopte_t *iopte) in verify_maps() argument 151 nents = verify_one_map(dma_sg, &sg, nents, &iopte); in verify_maps() 176 void verify_sglist(struct scatterlist *sg, int nents, iopte_t *iopte, int npages) in verify_sglist() argument [all …]
|
D | iommu_common.h | 38 extern void verify_sglist(struct scatterlist *sg, int nents, iopte_t *iopte, int npages);
|
/linux-2.4.37.9/arch/sparc/mm/ |
D | iommu.c | 41 iopte_t *iopte = iommu->page_table; in iommu_map_dvma_pages_for_iommu() local 43 iopte += ((first - iommu->start) >> PAGE_SHIFT); in iommu_map_dvma_pages_for_iommu() 45 *iopte++ = __iopte(MKIOPTE(__pa(first))); in iommu_map_dvma_pages_for_iommu() 220 iopte_t *iopte = iommu->page_table; in iommu_map_dma_area() local 231 iopte += ((addr - iommu->start) >> PAGE_SHIFT); in iommu_map_dma_area() 232 first = iopte; in iommu_map_dma_area() 254 iopte_val(*iopte++) = MKIOPTE(__pa(page)); in iommu_map_dma_area() 256 iopte_val(*iopte++) = in iommu_map_dma_area() 277 unsigned long end = PAGE_ALIGN(((unsigned long) iopte)); in iommu_map_dma_area() 284 unsigned long end = PAGE_ALIGN(((unsigned long) iopte)); in iommu_map_dma_area() [all …]
|
D | io-unit.c | 71 iopte_t iopte; in iounit_get_area() local 105 iopte = MKIOPTE(__pa(vaddr & PAGE_MASK)); in iounit_get_area() 107 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area() 109 iounit->page_table[scan] = iopte; in iounit_get_area() 178 iopte_t *iopte; in iounit_map_dma_area() local 202 iopte = (iopte_t *)(iounit->page_table + i); in iounit_map_dma_area() 203 *iopte = __iopte(MKIOPTE(__pa(page))); in iounit_map_dma_area() 224 iopte_t *iopte; in iounit_translate_dvma() local 227 iopte = (iopte_t *)(iounit->page_table + i); in iounit_translate_dvma() 228 return (iopte_val(*iopte) & 0xFFFFFFF0) << 4; /* XXX sun4d guru, help */ in iounit_translate_dvma()
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | page.h | 51 typedef struct { unsigned long iopte; } iopte_t; member 59 #define iopte_val(x) ((x).iopte)
|
/linux-2.4.37.9/include/asm-sparc/ |
D | page.h | 94 typedef struct { unsigned long iopte; } iopte_t; member 102 #define iopte_val(x) ((x).iopte)
|