Searched refs:pages_needed (Results 1 – 7 of 7) sorted by relevance
| /Linux-v5.4/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()
|
| /Linux-v5.4/drivers/firmware/efi/ |
| D | capsule-loader.c | 39 size_t pages_needed; in __efi_capsule_setup_info() local 43 pages_needed = ALIGN(cap_info->total_size, PAGE_SIZE) / PAGE_SIZE; in __efi_capsule_setup_info() 45 if (pages_needed == 0) { in __efi_capsule_setup_info() 61 pages_needed * sizeof(void *), in __efi_capsule_setup_info() 69 pages_needed * sizeof(phys_addr_t *), in __efi_capsule_setup_info()
|
| /Linux-v5.4/drivers/parisc/ |
| D | ccio-dma.c | 299 ret = iommu_is_span_boundary(idx << 3, pages_needed, 0, boundary_size);\ 341 unsigned int pages_needed = size >> IOVP_SHIFT; in ccio_alloc_range() local 348 BUG_ON(pages_needed == 0); in ccio_alloc_range() 349 BUG_ON((pages_needed * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_alloc_range() 352 __func__, size, pages_needed); in ccio_alloc_range() 362 if (pages_needed <= 8) { in ccio_alloc_range() 373 unsigned long mask = ~(~0UL >> pages_needed); in ccio_alloc_range() 378 } else if (pages_needed <= 16) { in ccio_alloc_range() 380 } else if (pages_needed <= 32) { in ccio_alloc_range() 383 } else if (pages_needed <= 64) { in ccio_alloc_range() [all …]
|
| D | sba_iommu.c | 436 unsigned int pages_needed = size >> IOVP_SHIFT; in sba_alloc_range() local 442 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range() 444 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range() 458 __func__, size, pages_needed, pide, in sba_alloc_range() 472 ioc->used_pages += pages_needed; in sba_alloc_range()
|
| /Linux-v5.4/drivers/base/firmware_loader/ |
| D | firmware.h | 140 int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed); 144 static inline int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed) { return -ENXIO; } in fw_grow_paged_buf() argument
|
| D | main.c | 286 int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed) in fw_grow_paged_buf() argument 289 if (fw_priv->page_array_size < pages_needed) { in fw_grow_paged_buf() 290 int new_array_size = max(pages_needed, in fw_grow_paged_buf() 307 while (fw_priv->nr_pages < pages_needed) { in fw_grow_paged_buf()
|
| /Linux-v5.4/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()
|