Searched refs:pages_needed (Results 1 – 2 of 2) sorted by relevance
/arch/parisc/kernel/ |
D | pci-dma.c | 249 unsigned int pages_needed = size >> PAGE_SHIFT; in pcxl_alloc_range() local 252 mask >>= BITS_PER_LONG - pages_needed; in pcxl_alloc_range() 255 size, pages_needed, mask); in pcxl_alloc_range() 259 if(pages_needed <= 8) { in pcxl_alloc_range() 261 } else if(pages_needed <= 16) { in pcxl_alloc_range() 263 } else if(pages_needed <= 32) { in pcxl_alloc_range() 279 pcxl_used_pages += pages_needed; in pcxl_alloc_range() 280 pcxl_used_bytes += ((pages_needed >> 3) ? (pages_needed >> 3) : 1); in pcxl_alloc_range()
|
/arch/ia64/hp/common/ |
D | sba_iommu.c | 625 unsigned int pages_needed = size >> iovp_shift; in sba_alloc_range() local 631 ASSERT(pages_needed); in sba_alloc_range() 640 pide = sba_search_bitmap(ioc, dev, pages_needed, 1); in sba_alloc_range() 642 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); in sba_alloc_range() 671 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); in sba_alloc_range() 676 pages_needed, dma_get_seg_boundary(dev)); in sba_alloc_range() 683 pages_needed, dma_get_seg_boundary(dev)); in sba_alloc_range() 690 ioc->avg_search[ioc->avg_idx++] = (ia64_get_itc() - itc_start) / pages_needed; in sba_alloc_range() 704 __func__, size, pages_needed, pide, in sba_alloc_range()
|