Home
last modified time | relevance | path

Searched refs:pages_needed (Results 1 – 5 of 5) sorted by relevance

/linux-3.4.99/arch/parisc/kernel/
Dpci-dma.c254 unsigned int pages_needed = size >> PAGE_SHIFT; in pcxl_alloc_range() local
257 mask >>= BITS_PER_LONG - pages_needed; in pcxl_alloc_range()
260 size, pages_needed, mask); in pcxl_alloc_range()
264 if(pages_needed <= 8) { in pcxl_alloc_range()
266 } else if(pages_needed <= 16) { in pcxl_alloc_range()
268 } else if(pages_needed <= 32) { in pcxl_alloc_range()
284 pcxl_used_pages += pages_needed; in pcxl_alloc_range()
285 pcxl_used_bytes += ((pages_needed >> 3) ? (pages_needed >> 3) : 1); in pcxl_alloc_range()
/linux-3.4.99/drivers/parisc/
Dccio-dma.c300 ret = iommu_is_span_boundary(idx << 3, pages_needed, 0, boundary_size);\
342 unsigned int pages_needed = size >> IOVP_SHIFT; in ccio_alloc_range() local
349 BUG_ON(pages_needed == 0); in ccio_alloc_range()
350 BUG_ON((pages_needed * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_alloc_range()
353 __func__, size, pages_needed); in ccio_alloc_range()
363 if (pages_needed <= 8) { in ccio_alloc_range()
374 unsigned long mask = ~(~0UL >> pages_needed); in ccio_alloc_range()
379 } else if (pages_needed <= 16) { in ccio_alloc_range()
381 } else if (pages_needed <= 32) { in ccio_alloc_range()
384 } else if (pages_needed <= 64) { in ccio_alloc_range()
[all …]
Dsba_iommu.c437 unsigned int pages_needed = size >> IOVP_SHIFT; in sba_alloc_range() local
443 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
445 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
459 __func__, size, pages_needed, pide, in sba_alloc_range()
473 ioc->used_pages += pages_needed; in sba_alloc_range()
/linux-3.4.99/drivers/base/
Dfirmware_class.c335 int pages_needed = ALIGN(min_size, PAGE_SIZE) >> PAGE_SHIFT; in fw_realloc_buffer() local
338 if (fw_priv->page_array_size < pages_needed) { in fw_realloc_buffer()
339 int new_array_size = max(pages_needed, in fw_realloc_buffer()
358 while (fw_priv->nr_pages < pages_needed) { in fw_realloc_buffer()
/linux-3.4.99/arch/ia64/hp/common/
Dsba_iommu.c633 unsigned int pages_needed = size >> iovp_shift; in sba_alloc_range() local
639 ASSERT(pages_needed); in sba_alloc_range()
648 pide = sba_search_bitmap(ioc, dev, pages_needed, 1); in sba_alloc_range()
650 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); in sba_alloc_range()
679 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); in sba_alloc_range()
684 pages_needed, dma_get_seg_boundary(dev)); in sba_alloc_range()
691 pages_needed, dma_get_seg_boundary(dev)); in sba_alloc_range()
698 ioc->avg_search[ioc->avg_idx++] = (ia64_get_itc() - itc_start) / pages_needed; in sba_alloc_range()
712 __func__, size, pages_needed, pide, in sba_alloc_range()