Home
last modified time | relevance | path

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

/linux-2.6.39/arch/powerpc/kernel/
Diommu.c119 1 << IOMMU_PAGE_SHIFT); in iommu_range_alloc()
121 boundary_size = ALIGN(1UL << 32, 1 << IOMMU_PAGE_SHIFT); in iommu_range_alloc()
125 tbl->it_offset, boundary_size >> IOMMU_PAGE_SHIFT, in iommu_range_alloc()
181 ret = entry << IOMMU_PAGE_SHIFT; /* Set the return dma address */ in iommu_alloc()
217 entry = dma_addr >> IOMMU_PAGE_SHIFT; in __iommu_free()
303 if (IOMMU_PAGE_SHIFT < PAGE_SHIFT && slen >= PAGE_SIZE && in iommu_map_sg()
305 align = PAGE_SHIFT - IOMMU_PAGE_SHIFT; in iommu_map_sg()
307 mask >> IOMMU_PAGE_SHIFT, align); in iommu_map_sg()
322 dma_addr = entry << IOMMU_PAGE_SHIFT; in iommu_map_sg()
574 if (IOMMU_PAGE_SHIFT < PAGE_SHIFT && size >= PAGE_SIZE && in iommu_map_page()
[all …]
Ddma-iommu.c83 if ((tbl->it_offset + tbl->it_size) > (mask >> IOMMU_PAGE_SHIFT)) { in dma_iommu_dma_supported()
87 IOMMU_PAGE_SHIFT); in dma_iommu_dma_supported()
Dvio.c1073 tbl->it_size = size >> IOMMU_PAGE_SHIFT; in vio_build_iommu_table()
1075 tbl->it_offset = offset >> IOMMU_PAGE_SHIFT; in vio_build_iommu_table()
/linux-2.6.39/arch/powerpc/include/asm/
Diommu.h33 #define IOMMU_PAGE_SHIFT 12 macro
34 #define IOMMU_PAGE_SIZE (ASM_CONST(1) << IOMMU_PAGE_SHIFT)
35 #define IOMMU_PAGE_MASK (~((1 << IOMMU_PAGE_SHIFT) - 1))
45 return __ilog2((size - 1) >> IOMMU_PAGE_SHIFT) + 1; in get_iommu_order()
/linux-2.6.39/arch/sparc/kernel/
Diommu_common.h34 #define IOMMU_PAGE_SHIFT 13 macro
Dpsycho_common.c187 (tag_val & PSYCHO_IOMMU_TAG_VPAGE) << IOMMU_PAGE_SHIFT); in psycho_dump_iommu_tags_and_data()
193 (data_val & PSYCHO_IOMMU_DATA_PPAGE) << IOMMU_PAGE_SHIFT); in psycho_dump_iommu_tags_and_data()
Dpci_schizo.c330 (tag & SCHIZO_IOMMU_TAG_VPAGE) << IOMMU_PAGE_SHIFT); in schizo_check_iommu_error_pbm()
335 (data & SCHIZO_IOMMU_DATA_PPAGE) << IOMMU_PAGE_SHIFT); in schizo_check_iommu_error_pbm()
/linux-2.6.39/arch/powerpc/platforms/cell/
Diommu.c434 IOMMU_PAGE_SHIFT); in cell_iommu_setup_hardware()
491 window->table.it_offset = (offset >> IOMMU_PAGE_SHIFT) + pte_offset; in cell_iommu_setup_window()
492 window->table.it_size = size >> IOMMU_PAGE_SHIFT; in cell_iommu_setup_window()
777 offset >> IOMMU_PAGE_SHIFT); in cell_iommu_init_one()
1124 IOMMU_PAGE_SHIFT); in cell_iommu_fixed_mapping_init()
/linux-2.6.39/arch/powerpc/platforms/pseries/
Dsetup.c72 unsigned long CMO_PageSize = (ASM_CONST(1) << IOMMU_PAGE_SHIFT);
414 int page_order = IOMMU_PAGE_SHIFT; in pSeries_cmo_feature_init()
Diommu.c448 tbl->it_offset = phb->dma_window_base_cur >> IOMMU_PAGE_SHIFT; in iommu_table_setparms()
459 tbl->it_size = phb->dma_window_size >> IOMMU_PAGE_SHIFT; in iommu_table_setparms()
484 tbl->it_offset = offset >> IOMMU_PAGE_SHIFT; in iommu_table_setparms_lpar()
485 tbl->it_size = size >> IOMMU_PAGE_SHIFT; in iommu_table_setparms_lpar()