Searched refs:it_offset (Results 1 – 13 of 13) sorted by relevance
/Linux-v5.4/arch/powerpc/kernel/ |
D | iommu.c | 223 if (limit + tbl->it_offset > mask) { in iommu_range_alloc() 224 limit = mask - tbl->it_offset + 1; in iommu_range_alloc() 246 n = iommu_area_alloc(tbl->it_map, limit, start, npages, tbl->it_offset, in iommu_range_alloc() 308 entry += tbl->it_offset; /* Offset into real TCE table */ in iommu_alloc() 342 free_entry = entry - tbl->it_offset; in iommu_free_check() 345 (entry < tbl->it_offset)) { in iommu_free_check() 353 printk(KERN_INFO "\tstartOff = 0x%llx\n", (u64)tbl->it_offset); in iommu_free_check() 391 free_entry = entry - tbl->it_offset; in __iommu_free() 478 entry += tbl->it_offset; in ppc_iommu_map_sg() 604 tbl->it_ops->clear(tbl, tbl->it_offset, tbl->it_size); in iommu_table_clear() [all …]
|
D | dma-iommu.c | 136 if (tbl->it_offset > (mask >> tbl->it_page_shift)) { in dma_iommu_dma_supported() 139 mask, tbl->it_offset << tbl->it_page_shift); in dma_iommu_dma_supported() 163 mask = 1ULL < (fls_long(tbl->it_offset + tbl->it_size) - 1); in dma_iommu_get_required_mask()
|
/Linux-v5.4/arch/powerpc/platforms/powernv/ |
D | pci-ioda-tce.c | 27 tbl->it_offset = dma_offset >> tbl->it_page_shift; in pnv_pci_setup_iommu_table() 110 unsigned long idx = index - tbl->it_offset + i; in pnv_tce_build() 125 unsigned long idx = index - tbl->it_offset; in pnv_tce_xchg() 159 return pnv_tce(tbl, true, index - tbl->it_offset, alloc); in pnv_tce_useraddrptr() 168 unsigned long idx = index - tbl->it_offset + i; in pnv_tce_free() 181 __be64 *ptce = pnv_tce(tbl, false, index - tbl->it_offset, false); in pnv_tce_get()
|
D | npu-dma.c | 136 const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; in pnv_npu_set_window()
|
D | pci-ioda.c | 1901 start = __pa(((__be64 *)tbl->it_base) + index - tbl->it_offset); in pnv_pci_p7ioc_tce_invalidate() 1902 end = __pa(((__be64 *)tbl->it_base) + index - tbl->it_offset + in pnv_pci_p7ioc_tce_invalidate() 2266 pe->table_group.tce32_start = tbl->it_offset << tbl->it_page_shift; in pnv_pci_ioda1_setup_dma_pe() 2293 const __u64 start_addr = tbl->it_offset << tbl->it_page_shift; in pnv_pci_ioda2_set_window() 3428 pnv_pci_p7ioc_tce_invalidate(tbl, tbl->it_offset, tbl->it_size, false); in pnv_pci_ioda1_release_pe_dma()
|
/Linux-v5.4/arch/powerpc/platforms/pasemi/ |
D | iommu.c | 87 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_build() 113 bus_addr = (tbl->it_offset + index) << IOBMAP_PAGE_SHIFT; in iobmap_free() 134 iommu_table_iobmap.it_offset = 0; in iommu_table_iobmap_setup()
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | iommu.h | 99 unsigned long it_offset; /* Offset into global table */ member 304 (tbl)->it_offset, (tbl)->it_size, \ 308 (tbl)->it_offset, (tbl)->it_size, \
|
/Linux-v5.4/arch/powerpc/platforms/cell/ |
D | iommu.c | 186 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_build_cell() 220 io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); in tce_free_cell() 484 window->table.it_offset = in cell_iommu_setup_window() 494 pr_debug("\toffset 0x%lx\n", window->table.it_offset); in cell_iommu_setup_window() 515 tce_build_cell(&window->table, window->table.it_offset, 1, in cell_iommu_setup_window()
|
/Linux-v5.4/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 211 unsigned long start = tbl->it_offset; in tce_iommu_find_table() 365 tce_iommu_clear(container, tbl, tbl->it_offset, tbl->it_size); in tce_iommu_release() 694 *start_addr = tbl->it_offset << tbl->it_page_shift; in tce_iommu_create_window() 740 tce_iommu_clear(container, tbl, tbl->it_offset, tbl->it_size); in tce_iommu_remove_window() 1152 tce_iommu_clear(container, tbl, tbl->it_offset, tbl->it_size); in tce_iommu_release_ownership()
|
/Linux-v5.4/arch/powerpc/sysdev/ |
D | dart_iommu.c | 337 iommu_table_dart.it_offset = 0; in iommu_table_dart_setup()
|
/Linux-v5.4/arch/powerpc/platforms/pseries/ |
D | iommu.c | 493 tbl->it_offset = phb->dma_window_base_cur >> tbl->it_page_shift; in iommu_table_setparms() 531 tbl->it_offset = offset >> tbl->it_page_shift; in iommu_table_setparms_lpar()
|
D | vio.c | 1186 tbl->it_offset = offset >> tbl->it_page_shift; in vio_build_iommu_table()
|
/Linux-v5.4/arch/powerpc/kvm/ |
D | book3s_64_vio.c | 132 (tbltmp->it_offset << tbltmp->it_page_shift == in kvm_spapr_tce_attach_iommu_group()
|