Lines Matching refs:iovp_shift

199 static unsigned long iovp_shift;  variable
440 #define PDIR_INDEX(iovp) ((iovp)>>iovp_shift)
459 order = order - iovp_shift - 0xffff + 1; in get_iovp_order()
497 boundary_size = ALIGN(boundary_size, 1ULL << iovp_shift) >> iovp_shift; in sba_search_bitmap()
500 shift = ioc->ibase >> iovp_shift; in sba_search_bitmap()
518 bits_wanted = 1UL << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap()
542 unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap()
633 unsigned int pages_needed = size >> iovp_shift; in sba_alloc_range()
735 int bits_not_wanted = size >> iovp_shift; in sba_free_range()
739 bits_not_wanted = 1UL << get_iovp_order(bits_not_wanted << iovp_shift); in sba_free_range()
868 iovp |= iovp_shift; /* set "size" field for PCOM */ in sba_mark_invalid()
887 u32 t = get_iovp_order(byte_cnt) + iovp_shift; in sba_mark_invalid()
978 iovp = (dma_addr_t) pide << iovp_shift; in sba_map_page()
1258 pdirp = &(ioc->pdir_base[pide >> iovp_shift]); in sba_fill_pdir()
1302 (((((unsigned long) __X) | ((unsigned long) __Y)) << (BITS_PER_LONG - iovp_shift)) == 0UL)
1435 dma_sg->dma_address = (dma_addr_t)(PIDE_FLAG | (idx << iovp_shift) in sba_coalesce_chunks()
1694 WRITE_REG(ioc->ibase | (get_iovp_order(ioc->iov_size) + iovp_shift), ioc->ioc_hpa + IOC_PCOM); in ioc_iova_init()
1829 iovp_size = (1 << iovp_shift); in ioc_init()
2028 if (!iovp_shift) in acpi_sba_ioc_add()
2029 iovp_shift = min(PAGE_SHIFT, 16); in acpi_sba_ioc_add()
2037 if (!iovp_shift) in acpi_sba_ioc_add()
2038 iovp_shift = 12; in acpi_sba_ioc_add()
2191 iovp_shift = ffs(page_size) - 1; in sba_page_override()