Lines Matching refs:pages_mapped
421 ccio_free_range(struct ioc *ioc, dma_addr_t iova, unsigned long pages_mapped) in ccio_free_range() argument
426 BUG_ON(pages_mapped == 0); in ccio_free_range()
427 BUG_ON((pages_mapped * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_free_range()
428 BUG_ON(pages_mapped > BITS_PER_LONG); in ccio_free_range()
431 __func__, res_idx, pages_mapped); in ccio_free_range()
434 ioc->used_pages -= pages_mapped; in ccio_free_range()
437 if(pages_mapped <= 8) { in ccio_free_range()
440 unsigned long mask = ~(~0UL >> pages_mapped); in ccio_free_range()
445 } else if(pages_mapped <= 16) { in ccio_free_range()
447 } else if(pages_mapped <= 32) { in ccio_free_range()
450 } else if(pages_mapped <= 64) { in ccio_free_range()