Searched refs:pages_needed (Results 1 - 6 of 6) sorted by relevance
/linux-4.1.27/arch/parisc/kernel/ |
H A D | pci-dma.c | 254 unsigned int pages_needed = size >> PAGE_SHIFT; pcxl_alloc_range() local 257 mask >>= BITS_PER_LONG - pages_needed; pcxl_alloc_range() 259 DBG_RES("pcxl_alloc_range() size: %d pages_needed %d pages_mask 0x%08lx\n", pcxl_alloc_range() 260 size, pages_needed, mask); pcxl_alloc_range() 264 if(pages_needed <= 8) { pcxl_alloc_range() 266 } else if(pages_needed <= 16) { pcxl_alloc_range() 268 } else if(pages_needed <= 32) { pcxl_alloc_range() 284 pcxl_used_pages += pages_needed; pcxl_alloc_range() 285 pcxl_used_bytes += ((pages_needed >> 3) ? (pages_needed >> 3) : 1); pcxl_alloc_range()
|
/linux-4.1.27/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 139 int pages_needed = PAGE_ALIGN(*page_offset + rs_length) >> PAGE_SHIFT; rdma_read_chunk_lcl() local 147 pages_needed = rdma_read_chunk_lcl() 148 min_t(int, pages_needed, rdma_read_max_sge(xprt, pages_needed)); rdma_read_chunk_lcl() 149 read = min_t(int, (pages_needed << PAGE_SHIFT) - *page_offset, rdma_read_chunk_lcl() 152 for (pno = 0; pno < pages_needed; pno++) { rdma_read_chunk_lcl() 200 read_wr.num_sge = pages_needed; rdma_read_chunk_lcl() 236 int pages_needed = PAGE_ALIGN(*page_offset + rs_length) >> PAGE_SHIFT; rdma_read_chunk_frmr() local 248 pages_needed = min_t(int, pages_needed, xprt->sc_frmr_pg_list_len); rdma_read_chunk_frmr() 249 read = min_t(int, (pages_needed << PAGE_SHIFT) - *page_offset, rdma_read_chunk_frmr() 255 frmr->map_len = pages_needed << PAGE_SHIFT; rdma_read_chunk_frmr() 256 frmr->page_list_len = pages_needed; rdma_read_chunk_frmr() 258 for (pno = 0; pno < pages_needed; pno++) { rdma_read_chunk_frmr()
|
/linux-4.1.27/drivers/parisc/ |
H A D | ccio-dma.c | 300 ret = iommu_is_span_boundary(idx << 3, pages_needed, 0, boundary_size);\ 333 * @pages_needed: The requested number of pages to be mapped into the 342 unsigned int pages_needed = size >> IOVP_SHIFT; ccio_alloc_range() local 349 BUG_ON(pages_needed == 0); ccio_alloc_range() 350 BUG_ON((pages_needed * IOVP_SIZE) > DMA_CHUNK_SIZE); ccio_alloc_range() 352 DBG_RES("%s() size: %d pages_needed %d\n", ccio_alloc_range() 353 __func__, size, pages_needed); ccio_alloc_range() 363 if (pages_needed <= 8) { ccio_alloc_range() 374 unsigned long mask = ~(~0UL >> pages_needed); ccio_alloc_range() 379 } else if (pages_needed <= 16) { ccio_alloc_range() 381 } else if (pages_needed <= 32) { ccio_alloc_range() 384 } else if (pages_needed <= 64) { ccio_alloc_range() 388 panic("%s: %s() Too many pages to map. pages_needed: %u\n", ccio_alloc_range() 389 __FILE__, __func__, pages_needed); ccio_alloc_range() 409 ioc->used_pages += pages_needed; ccio_alloc_range()
|
H A D | sba_iommu.c | 437 unsigned int pages_needed = size >> IOVP_SHIFT; sba_alloc_range() local 443 pide = sba_search_bitmap(ioc, dev, pages_needed); sba_alloc_range() 445 pide = sba_search_bitmap(ioc, dev, pages_needed); sba_alloc_range() 459 __func__, size, pages_needed, pide, sba_alloc_range() 473 ioc->used_pages += pages_needed; sba_alloc_range()
|
/linux-4.1.27/arch/ia64/hp/common/ |
H A D | sba_iommu.c | 633 unsigned int pages_needed = size >> iovp_shift; sba_alloc_range() local 639 ASSERT(pages_needed); sba_alloc_range() 648 pide = sba_search_bitmap(ioc, dev, pages_needed, 1); sba_alloc_range() 650 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); sba_alloc_range() 679 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); sba_alloc_range() 684 pages_needed, dma_get_seg_boundary(dev)); sba_alloc_range() 691 pages_needed, dma_get_seg_boundary(dev)); sba_alloc_range() 698 ioc->avg_search[ioc->avg_idx++] = (ia64_get_itc() - itc_start) / pages_needed; sba_alloc_range() 712 __func__, size, pages_needed, pide, sba_alloc_range()
|
/linux-4.1.27/drivers/base/ |
H A D | firmware_class.c | 746 int pages_needed = PAGE_ALIGN(min_size) >> PAGE_SHIFT; fw_realloc_buffer() local 749 if (buf->page_array_size < pages_needed) { fw_realloc_buffer() 750 int new_array_size = max(pages_needed, fw_realloc_buffer() 769 while (buf->nr_pages < pages_needed) { fw_realloc_buffer()
|
Completed in 182 milliseconds