Searched refs:IOMMU_PAGE_SHIFT (Results 1 – 10 of 10) sorted by relevance
119 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 …]
83 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()
1073 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()
33 #define IOMMU_PAGE_SHIFT 12 macro34 #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()
34 #define IOMMU_PAGE_SHIFT 13 macro
187 (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()
330 (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()
434 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()
72 unsigned long CMO_PageSize = (ASM_CONST(1) << IOMMU_PAGE_SHIFT);414 int page_order = IOMMU_PAGE_SHIFT; in pSeries_cmo_feature_init()
448 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()