Lines Matching refs:IOVP_SHIFT
184 #define IOVP_SHIFT PAGE_SHIFT macro
460 #define PDIR_INDEX(iovp) ((iovp)>>IOVP_SHIFT)
461 #define MKIOVP(dma_hint,pide) (dma_addr_t)((long)(dma_hint) | ((long)(pide) << IOVP_SHIFT))
562 unsigned int pages_needed = size >> IOVP_SHIFT; in sba_alloc_range()
630 int bits_not_wanted = size >> IOVP_SHIFT; in sba_free_range()
771 iovp |= IOVP_SHIFT; /* set "size" field for PCOM */ in sba_mark_invalid()
859 ioc->msingle_pages += size >> IOVP_SHIFT; in sba_map_single()
862 iovp = (dma_addr_t) pide << IOVP_SHIFT; in sba_map_single()
934 ioc->usingle_pages += size >> IOVP_SHIFT; in sba_unmap_single()
1077 pdirp = &(ioc->pdir_base[pide >> IOVP_SHIFT]); in sba_fill_pdir()
1096 ioc->msg_pages += cnt >> IOVP_SHIFT; in sba_fill_pdir()
1252 | (sba_alloc_range(ioc, dma_len) << IOVP_SHIFT) in sba_coalesce_chunks()
1585 iov_order = get_order(iova_space_size >> (IOVP_SHIFT-PAGE_SHIFT)); in sba_ioc_init()
1586 ASSERT(iov_order <= (30 - IOVP_SHIFT)); /* iova_space_size <= 1GB */ in sba_ioc_init()
1587 ASSERT(iov_order >= (20 - IOVP_SHIFT)); /* iova_space_size >= 1MB */ in sba_ioc_init()
1588 iova_space_size = 1 << (iov_order + IOVP_SHIFT); in sba_ioc_init()