/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_buffer.c | 48 int nr_pages = size / PAGE_SIZE + 1; local 53 *buf = malloc(sizeof(struct drm_buffer) + nr_pages*sizeof(char *), 59 size, nr_pages); 65 for (idx = 0; idx < nr_pages; ++idx) { 75 idx + 1, size, nr_pages); 107 int nr_pages = size / PAGE_SIZE + 1; local 117 for (idx = 0; idx < nr_pages; ++idx) { 142 int nr_pages = buf->size / PAGE_SIZE + 1; local 144 for (idx = 0; idx < nr_pages; ++idx)
|
H A D | drmP.h | 1393 extern struct sg_table *drm_prime_pages_to_sg(vm_page_t *pages, int nr_pages);
|
/freebsd-11-stable/sys/dev/xen/balloon/ |
H A D | balloon.c | 150 increase_reservation(unsigned long nr_pages) argument 163 if (nr_pages > nitems(frame_list)) 164 nr_pages = nitems(frame_list); 167 i < nr_pages; i++, page = TAILQ_NEXT(page, plinks.q)) { 173 reservation.nr_extents = nr_pages; 176 if (rc < nr_pages) { 192 for (i = 0; i < nr_pages; i++) { 204 bs.current_pages += nr_pages; 211 decrease_reservation(unsigned long nr_pages) argument 225 if (nr_pages > nitem [all...] |
/freebsd-11-stable/stand/efi/loader/ |
H A D | copy.c | 95 efi_verify_staging_size(unsigned long *nr_pages) argument 168 if (*nr_pages > available_pages) { 170 *nr_pages, available_pages); 171 *nr_pages = available_pages; 191 unsigned long nr_pages; local 193 nr_pages = EFI_SIZE_TO_PAGES((EFI_STAGING_SIZE) * 1024 * 1024); 197 * We'll decrease nr_pages, if it's too big. Currently we only 202 efi_verify_staging_size(&nr_pages); 211 nr_pages, &staging); 214 nr_pages, [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_page.c | 201 linux_get_user_pages_internal(vm_map_t map, unsigned long start, int nr_pages, argument 210 len = ((size_t)nr_pages) << PAGE_SHIFT; 211 count = vm_fault_quick_hold_pages(map, start, len, prot, pages, nr_pages); 215 for (i = 0; i != nr_pages; i++) { 223 return (nr_pages); 227 __get_user_pages_fast(unsigned long start, int nr_pages, int write, argument 237 if (nr_pages == 0 || in_interrupt()) 243 end = start + (((size_t)nr_pages) << PAGE_SHIFT); 277 unsigned long start, unsigned long nr_pages, int gup_flags, 283 return (linux_get_user_pages_internal(map, start, nr_pages, 276 get_user_pages_remote(struct task_struct *task, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, int gup_flags, struct page **pages, struct vm_area_struct **vmas) argument 288 get_user_pages(unsigned long start, unsigned long nr_pages, int gup_flags, struct page **pages, struct vm_area_struct **vmas) argument [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | mm.h | 236 get_user_pages(unsigned long start, unsigned long nr_pages, 241 __get_user_pages_fast(unsigned long start, int nr_pages, int write, 246 unsigned long start, unsigned long nr_pages,
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | savage_bci.c | 370 unsigned int nr_pages = (n - rest + SAVAGE_DMA_PAGE_SIZE - 1) / local 375 DRM_DEBUG("cur=%u, cur->used=%u, n=%u, rest=%u, nr_pages=%u\n", 376 cur, dev_priv->dma_pages[cur].used, n, rest, nr_pages); 378 if (cur + nr_pages < dev_priv->nr_dma_pages) { 388 nr_pages = 398 for (i = cur; nr_pages > 0; ++i, --nr_pages) {
|
/freebsd-11-stable/sys/xen/interface/ |
H A D | memory.h | 534 xen_ulong_t nr_pages; member in struct:xen_reserved_device_memory
|
H A D | xen.h | 724 * c. list of allocated page frames [mfn_list, nr_pages] 756 unsigned long nr_pages; /* Total pages allocated to this domain. */ member in struct:start_info
|
/freebsd-11-stable/sys/dev/xen/blkback/ |
H A D | blkback.c | 319 int nr_pages; member in struct:xbb_xen_req 971 * \param nr_pages Number of pages needed. 983 xbb_get_kva(struct xbb_softc *xbb, int nr_pages) argument 990 KASSERT(nr_pages != 0, ("xbb_get_kva of zero length")); 1029 if (++num_clear == nr_pages) { 1032 first_clear + nr_pages - 1); 1038 free_kva + (nr_pages * PAGE_SIZE) <= 1042 nr_pages * PAGE_SIZE, (uintmax_t)xbb->kva, 1065 * \param nr_pages Number of pages in the KVA region. 1068 xbb_free_kva(struct xbb_softc *xbb, uint8_t *kva_ptr, int nr_pages) argument [all...] |
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_mem2.c | 2218 int nr_pages; local 2263 nr_pages = nm_os_extmem_nr_pages(os); 2294 if (nr_pages == 0) { 2301 for (j = 0; j < o->num && nr_pages > 0; j++) { 2319 nr_pages--; 2320 nm_prdis("noff %zu page %p nr_pages %d", noff, 2321 page_to_virt(*pages), nr_pages); 2323 (nr_pages == 0 || 2332 if (nr_pages == 0)
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1506 #define __sanitizer_syscall_pre_move_pages(pid, nr_pages, pages, nodes, \ 1508 __sanitizer_syscall_pre_impl_move_pages((long)(pid), (long)(nr_pages), \ 1511 #define __sanitizer_syscall_post_move_pages(res, pid, nr_pages, pages, nodes, \ 1513 __sanitizer_syscall_post_impl_move_pages(res, (long)(pid), (long)(nr_pages), \ 2866 void __sanitizer_syscall_pre_impl_move_pages(long pid, long nr_pages, 2869 void __sanitizer_syscall_post_impl_move_pages(long res, long pid, long nr_pages,
|