Home
last modified time | relevance | path

Searched refs:it_offset (Results 1 – 10 of 10) sorted by relevance

/arch/powerpc/kernel/
Diommu.c106 if (limit + tbl->it_offset > mask) { in iommu_range_alloc()
107 limit = mask - tbl->it_offset + 1; in iommu_range_alloc()
126 tbl->it_offset, boundary_size >> IOMMU_PAGE_SHIFT, in iommu_range_alloc()
181 entry += tbl->it_offset; /* Offset into real TCE table */ in iommu_alloc()
219 free_entry = entry - tbl->it_offset; in __iommu_free()
222 (entry < tbl->it_offset)) { in __iommu_free()
230 printk(KERN_INFO "\tstartOff = 0x%llx\n", (u64)tbl->it_offset); in __iommu_free()
322 entry += tbl->it_offset; in iommu_map_sg()
456 ppc_md.tce_free(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear()
466 tceval = ppc_md.tce_get(tbl, index + tbl->it_offset); in iommu_table_clear()
[all …]
Ddma-iommu.c86 if ((tbl->it_offset + tbl->it_size) > (mask >> IOMMU_PAGE_SHIFT)) { in dma_iommu_dma_supported()
89 mask, (tbl->it_offset + tbl->it_size) << in dma_iommu_dma_supported()
103 mask = 1ULL < (fls_long(tbl->it_offset + tbl->it_size) - 1); in dma_iommu_get_required_mask()
Dvio.c1074 tbl->it_offset = offset >> IOMMU_PAGE_SHIFT; in vio_build_iommu_table()
/arch/powerpc/platforms/pasemi/
Diommu.c97 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/include/asm/
Diommu.h59 unsigned long it_offset; /* Offset into global table */ member
/arch/powerpc/platforms/cell/
Diommu.c198 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()
490 window->table.it_offset = (offset >> IOMMU_PAGE_SHIFT) + pte_offset; in cell_iommu_setup_window()
498 pr_debug("\toffset 0x%lx\n", window->table.it_offset); in cell_iommu_setup_window()
519 tce_build_cell(&window->table, window->table.it_offset, 1, in cell_iommu_setup_window()
/arch/powerpc/platforms/powernv/
Dpci.c421 tces = tcep = ((u64 *)tbl->it_base) + index - tbl->it_offset; in pnv_tce_build()
441 tces = tcep = ((u64 *)tbl->it_base) + index - tbl->it_offset; in pnv_tce_free()
456 tbl->it_offset = dma_offset >> IOMMU_PAGE_SHIFT; in pnv_pci_setup_iommu_table()
/arch/powerpc/platforms/wsp/
Dwsp_pci.c263 tcep, *tcep, (tbl->it_offset + index) << IOMMU_PAGE_SHIFT); in tce_build_wsp()
384 tbl->table.it_offset = addr >> IOMMU_PAGE_SHIFT; in wsp_pci_create_dma32_table()
452 table->table.it_offset << IOMMU_PAGE_SHIFT, in wsp_pci_dma_dev_setup()
453 (table->table.it_offset << IOMMU_PAGE_SHIFT) in wsp_pci_dma_dev_setup()
/arch/powerpc/sysdev/
Ddart_iommu.c281 iommu_table_dart.it_offset = 0; in iommu_table_dart_setup()
/arch/powerpc/platforms/pseries/
Diommu.c484 tbl->it_offset = phb->dma_window_base_cur >> IOMMU_PAGE_SHIFT; in iommu_table_setparms()
536 tbl->it_offset = offset >> IOMMU_PAGE_SHIFT; in iommu_table_setparms_lpar()