Home
last modified time | relevance | path

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

/arch/powerpc/kernel/
Ddma-iommu.c87 if (tbl->it_offset > (mask >> tbl->it_page_shift)) { in dma_iommu_dma_supported()
90 mask, tbl->it_offset << tbl->it_page_shift); in dma_iommu_dma_supported()
103 mask = 1ULL < (fls_long(tbl->it_offset + tbl->it_size) - 1); in dma_iommu_get_required_mask()
Diommu.c235 if (limit + tbl->it_offset > mask) { in iommu_range_alloc()
236 limit = mask - tbl->it_offset + 1; in iommu_range_alloc()
258 n = iommu_area_alloc(tbl->it_map, limit, start, npages, tbl->it_offset, in iommu_range_alloc()
320 entry += tbl->it_offset; /* Offset into real TCE table */ in iommu_alloc()
354 free_entry = entry - tbl->it_offset; in iommu_free_check()
357 (entry < tbl->it_offset)) { in iommu_free_check()
365 printk(KERN_INFO "\tstartOff = 0x%llx\n", (u64)tbl->it_offset); in iommu_free_check()
403 free_entry = entry - tbl->it_offset; in __iommu_free()
490 entry += tbl->it_offset; in ppc_iommu_map_sg()
616 tbl->it_ops->clear(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear()
[all …]
/arch/powerpc/platforms/pasemi/
Diommu.c99 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build()
125 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free()
146 iommu_table_iobmap.it_offset = 0; in iommu_table_iobmap_setup()
/arch/powerpc/include/asm/
Diommu.h108 unsigned long it_offset; /* Offset into global table */ member
127 &((tbl)->it_userspace[(entry) - (tbl)->it_offset]) : \
311 (tbl)->it_offset, (tbl)->it_size, \
315 (tbl)->it_offset, (tbl)->it_size, \
/arch/powerpc/platforms/cell/
Diommu.c199 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_build_cell()
233 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_free_cell()
497 window->table.it_offset = in cell_iommu_setup_window()
507 pr_debug("\toffset 0x%lx\n", window->table.it_offset); in cell_iommu_setup_window()
528 tce_build_cell(&window->table, window->table.it_offset, 1, in cell_iommu_setup_window()
/arch/powerpc/platforms/powernv/
Dpci.c837 unsigned long idx = index - tbl->it_offset + i; in pnv_tce_build()
851 unsigned long idx = index - tbl->it_offset; in pnv_tce_xchg()
871 unsigned long idx = index - tbl->it_offset + i; in pnv_tce_free()
879 return be64_to_cpu(*(pnv_tce(tbl, index - tbl->it_offset))); in pnv_tce_get()
968 tbl->it_offset = dma_offset >> tbl->it_page_shift; in pnv_pci_setup_iommu_table()
Dnpu-dma.c196 const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; in pnv_npu_set_window()
Dpci-ioda.c1945 start = __pa(((__be64 *)tbl->it_base) + index - tbl->it_offset); in pnv_pci_p7ioc_tce_invalidate()
1946 end = __pa(((__be64 *)tbl->it_base) + index - tbl->it_offset + in pnv_pci_p7ioc_tce_invalidate()
2350 pe->table_group.tce32_start = tbl->it_offset << tbl->it_page_shift; in pnv_pci_ioda1_setup_dma_pe()
2385 const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; in pnv_pci_ioda2_set_window()
3609 pnv_pci_p7ioc_tce_invalidate(tbl, tbl->it_offset, tbl->it_size, false); in pnv_pci_ioda1_release_pe_dma()
/arch/powerpc/sysdev/
Ddart_iommu.c344 iommu_table_dart.it_offset = 0; in iommu_table_dart_setup()
/arch/powerpc/kvm/
Dbook3s_64_vio.c184 (tbltmp->it_offset == stt->offset) && in kvm_spapr_tce_attach_iommu_group()
/arch/powerpc/platforms/pseries/
Diommu.c543 tbl->it_offset = phb->dma_window_base_cur >> tbl->it_page_shift; in iommu_table_setparms()
581 tbl->it_offset = offset >> tbl->it_page_shift; in iommu_table_setparms_lpar()
Dvio.c1207 tbl->it_offset = offset >> tbl->it_page_shift; in vio_build_iommu_table()