Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/powerpc/kernel/
A Diommu.c260 if (limit + tbl->it_offset > mask) { in iommu_range_alloc()
261 limit = mask - tbl->it_offset + 1; in iommu_range_alloc()
382 free_entry = entry - tbl->it_offset; in iommu_free_check()
385 (entry < tbl->it_offset)) { in iommu_free_check()
431 free_entry = entry - tbl->it_offset; in __iommu_free()
518 entry += tbl->it_offset; in ppc_iommu_map_sg()
685 if (tbl->it_offset == 0) in iommu_table_reserve_pages()
688 if (res_start < tbl->it_offset) in iommu_table_reserve_pages()
689 res_start = tbl->it_offset; in iommu_table_reserve_pages()
697 tbl->it_reserved_end = tbl->it_offset; in iommu_table_reserve_pages()
[all …]
A Ddma-iommu.c170 if (tbl->it_offset > (mask >> tbl->it_page_shift)) { in dma_iommu_dma_supported()
173 mask, tbl->it_offset << tbl->it_page_shift); in dma_iommu_dma_supported()
199 mask = 1ULL << (fls_long(tbl->it_offset + tbl->it_size) + in dma_iommu_get_required_mask()
/linux-6.3-rc2/arch/powerpc/platforms/powernv/
A Dpci-ioda-tce.c55 tbl->it_offset = dma_offset >> tbl->it_page_shift; in pnv_pci_setup_iommu_table()
138 unsigned long idx = index - tbl->it_offset + i; in pnv_tce_build()
152 unsigned long idx = index - tbl->it_offset; in pnv_tce_xchg()
186 return pnv_tce(tbl, true, index - tbl->it_offset, alloc); in pnv_tce_useraddrptr()
195 unsigned long idx = index - tbl->it_offset + i; in pnv_tce_free()
208 __be64 *ptce = pnv_tce(tbl, false, index - tbl->it_offset, false); in pnv_tce_get()
A Dpci-ioda.c1287 start = __pa(((__be64 *)tbl->it_base) + index - tbl->it_offset); in pnv_pci_p7ioc_tce_invalidate()
1288 end = __pa(((__be64 *)tbl->it_base) + index - tbl->it_offset + in pnv_pci_p7ioc_tce_invalidate()
1610 pe->table_group.tce32_start = tbl->it_offset << tbl->it_page_shift; in pnv_pci_ioda1_setup_dma_pe()
1637 const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; in pnv_pci_ioda2_set_window()
2735 pnv_pci_p7ioc_tce_invalidate(tbl, tbl->it_offset, tbl->it_size); in pnv_pci_ioda1_release_pe_dma()
/linux-6.3-rc2/arch/powerpc/platforms/pasemi/
A Diommu.c88 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build()
114 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free()
135 iommu_table_iobmap.it_offset = 0; in iommu_table_iobmap_setup()
/linux-6.3-rc2/arch/powerpc/include/asm/
A Diommu.h97 unsigned long it_offset; /* Offset into global table */ member
297 (tbl)->it_offset, (tbl)->it_size, \
301 (tbl)->it_offset, (tbl)->it_size, \
/linux-6.3-rc2/arch/powerpc/platforms/cell/
A Diommu.c188 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_build_cell()
222 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_free_cell()
486 window->table.it_offset = in cell_iommu_setup_window()
497 pr_debug("\toffset 0x%lx\n", window->table.it_offset); in cell_iommu_setup_window()
518 tce_build_cell(&window->table, window->table.it_offset, 1, in cell_iommu_setup_window()
/linux-6.3-rc2/drivers/vfio/
A Dvfio_iommu_spapr_tce.c213 unsigned long start = tbl->it_offset; in tce_iommu_find_table()
367 tce_iommu_clear(container, tbl, tbl->it_offset, tbl->it_size); in tce_iommu_release()
695 *start_addr = tbl->it_offset << tbl->it_page_shift; in tce_iommu_create_window()
741 tce_iommu_clear(container, tbl, tbl->it_offset, tbl->it_size); in tce_iommu_remove_window()
1201 tce_iommu_clear(container, tbl, tbl->it_offset, tbl->it_size); in tce_iommu_release_ownership()
/linux-6.3-rc2/arch/powerpc/sysdev/
A Ddart_iommu.c337 iommu_table_dart.it_offset = 0; in iommu_table_dart_setup()
/linux-6.3-rc2/arch/powerpc/kvm/
A Dbook3s_64_vio.c148 (tbltmp->it_offset << tbltmp->it_page_shift == in kvm_spapr_tce_attach_iommu_group()
/linux-6.3-rc2/arch/powerpc/platforms/pseries/
A Diommu.c512 tbl->it_offset = win_addr >> page_shift; in iommu_table_setparms_common()
A Dvio.c1194 tbl->it_offset = offset >> tbl->it_page_shift; in vio_build_iommu_table()

Completed in 42 milliseconds