Lines Matching refs:pages_mapped
432 ccio_free_range(struct ioc *ioc, dma_addr_t iova, unsigned long pages_mapped) in ccio_free_range() argument
437 BUG_ON(pages_mapped == 0); in ccio_free_range()
438 BUG_ON((pages_mapped * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_free_range()
439 BUG_ON(pages_mapped > BITS_PER_LONG); in ccio_free_range()
442 __func__, res_idx, pages_mapped); in ccio_free_range()
445 ioc->used_pages -= pages_mapped; in ccio_free_range()
448 if(pages_mapped <= 8) { in ccio_free_range()
451 unsigned long mask = ~(~0UL >> pages_mapped); in ccio_free_range()
456 } else if(pages_mapped <= 16) { in ccio_free_range()
458 } else if(pages_mapped <= 32) { in ccio_free_range()
461 } else if(pages_mapped <= 64) { in ccio_free_range()