Searched refs:it_offset (Results 1 – 10 of 10) sorted by relevance
/arch/powerpc/kernel/ |
D | iommu.c | 236 if (limit + tbl->it_offset > mask) { in iommu_range_alloc() 237 limit = mask - tbl->it_offset + 1; in iommu_range_alloc() 259 n = iommu_area_alloc(tbl->it_map, limit, start, npages, tbl->it_offset, in iommu_range_alloc() 321 entry += tbl->it_offset; /* Offset into real TCE table */ in iommu_alloc() 355 free_entry = entry - tbl->it_offset; in iommu_free_check() 358 (entry < tbl->it_offset)) { in iommu_free_check() 366 printk(KERN_INFO "\tstartOff = 0x%llx\n", (u64)tbl->it_offset); in iommu_free_check() 404 free_entry = entry - tbl->it_offset; in __iommu_free() 490 entry += tbl->it_offset; in iommu_map_sg() 616 ppc_md.tce_free(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear() [all …]
|
D | dma-iommu.c | 86 if (tbl->it_offset > (mask >> tbl->it_page_shift)) { in dma_iommu_dma_supported() 89 mask, tbl->it_offset << tbl->it_page_shift); in dma_iommu_dma_supported() 102 mask = 1ULL < (fls_long(tbl->it_offset + tbl->it_size) - 1); in dma_iommu_get_required_mask()
|
D | vio.c | 1194 tbl->it_offset = offset >> tbl->it_page_shift; in vio_build_iommu_table()
|
/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 97 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build() 123 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free() 140 iommu_table_iobmap.it_offset = 0; in iommu_table_iobmap_setup()
|
/arch/powerpc/platforms/cell/ |
D | iommu.c | 198 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_build_cell() 232 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_free_cell() 491 window->table.it_offset = in cell_iommu_setup_window() 500 pr_debug("\toffset 0x%lx\n", window->table.it_offset); in cell_iommu_setup_window() 521 tce_build_cell(&window->table, window->table.it_offset, 1, in cell_iommu_setup_window()
|
/arch/powerpc/include/asm/ |
D | iommu.h | 66 unsigned long it_offset; /* Offset into global table */ member
|
/arch/powerpc/platforms/powernv/ |
D | pci.c | 607 tces = tcep = ((__be64 *)tbl->it_base) + index - tbl->it_offset; in pnv_tce_build() 638 tces = tcep = ((__be64 *)tbl->it_base) + index - tbl->it_offset; in pnv_tce_free() 654 return ((u64 *)tbl->it_base)[index - tbl->it_offset]; in pnv_tce_get() 677 tbl->it_offset = dma_offset >> tbl->it_page_shift; in pnv_pci_setup_iommu_table()
|
D | pci-ioda.c | 999 inc = tbl->it_offset + (((u64)startp - tbl->it_base) / sizeof(u64)); in pnv_pci_ioda2_tce_invalidate() 1001 inc = tbl->it_offset + (((u64)endp - tbl->it_base) / sizeof(u64)); in pnv_pci_ioda2_tce_invalidate()
|
/arch/powerpc/sysdev/ |
D | dart_iommu.c | 292 iommu_table_dart.it_offset = 0; in iommu_table_dart_setup()
|
/arch/powerpc/platforms/pseries/ |
D | iommu.c | 491 tbl->it_offset = phb->dma_window_base_cur >> tbl->it_page_shift; in iommu_table_setparms() 544 tbl->it_offset = offset >> tbl->it_page_shift; in iommu_table_setparms_lpar()
|