Searched refs:nr_pages (Results 1 - 15 of 15) sorted by relevance

/freebsd-current/sys/dev/drm2/
H A Ddrm_buffer.c46 int nr_pages = size / PAGE_SIZE + 1; local
51 *buf = malloc(sizeof(struct drm_buffer) + nr_pages*sizeof(char *),
57 size, nr_pages);
63 for (idx = 0; idx < nr_pages; ++idx) {
73 idx + 1, size, nr_pages);
105 int nr_pages = size / PAGE_SIZE + 1; local
115 for (idx = 0; idx < nr_pages; ++idx) {
140 int nr_pages = buf->size / PAGE_SIZE + 1; local
142 for (idx = 0; idx < nr_pages; ++idx)
H A DdrmP.h1391 extern struct sg_table *drm_prime_pages_to_sg(vm_page_t *pages, int nr_pages);
/freebsd-current/stand/efi/loader/
H A Dcopy.c93 efi_verify_staging_size(unsigned long *nr_pages) argument
165 if (*nr_pages > available_pages) {
167 *nr_pages, available_pages);
168 *nr_pages = available_pages;
307 unsigned long nr_pages; local
313 nr_pages = EFI_SIZE_TO_PAGES(M(1) * ess);
317 * We'll decrease nr_pages, if it's too big. Currently we only
322 efi_verify_staging_size(&nr_pages);
327 nr_pages, &staging);
334 staging_end = staging + nr_pages * EFI_PAGE_SIZ
355 unsigned long nr_pages; local
[all...]
/freebsd-current/sys/dev/xen/balloon/
H A Dballoon.c149 increase_reservation(unsigned long nr_pages) argument
161 if (nr_pages > nitems(frame_list))
162 nr_pages = nitems(frame_list);
165 i < nr_pages; i++, page = TAILQ_NEXT(page, plinks.q)) {
171 reservation.nr_extents = nr_pages;
174 if (rc < nr_pages) {
190 for (i = 0; i < nr_pages; i++) {
202 bs.current_pages += nr_pages;
209 decrease_reservation(unsigned long nr_pages) argument
222 if (nr_pages > nitem
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dmm.h270 get_user_pages(unsigned long start, unsigned long nr_pages,
275 pin_user_pages(unsigned long start, unsigned long nr_pages, argument
279 return get_user_pages(start, nr_pages, gup_flags, pages, vmas);
283 __get_user_pages_fast(unsigned long start, int nr_pages, int write,
287 pin_user_pages_fast(unsigned long start, int nr_pages, argument
291 start, nr_pages, !!(gup_flags & FOLL_WRITE), pages);
296 unsigned long start, unsigned long nr_pages,
302 unsigned long start, unsigned long nr_pages,
307 task, mm, start, nr_pages, gup_flags, pages, vmas);
301 pin_user_pages_remote(struct task_struct *task, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, struct vm_area_struct **vmas) argument
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c288 unsigned int nr_pages = abd_chunkcnt_for_bytes(size); local
296 ASSERT3U(alloc_pages, <, nr_pages);
298 while (alloc_pages < nr_pages) {
302 order = MIN(highbit64(nr_pages - alloc_pages) - 1, max_order);
327 ASSERT3S(alloc_pages, ==, nr_pages);
407 int nr_pages = abd_chunkcnt_for_bytes(size); local
410 while (sg_alloc_table(&table, nr_pages, gfp)) {
415 ASSERT3U(table.nents, ==, nr_pages);
417 ABD_SCATTER(abd).abd_nents = nr_pages;
419 abd_for_each_sg(abd, sg, nr_pages,
456 int nr_pages = ABD_SCATTER(abd).abd_nents; local
486 int nr_pages = abd_chunkcnt_for_bytes(SPA_MAXBLOCKSIZE); local
592 unsigned nr_pages = abd_chunkcnt_for_bytes(size); local
623 unsigned nr_pages = abd_chunkcnt_for_bytes(SPA_MAXBLOCKSIZE); local
[all...]
H A Dzpl_file.c697 struct list_head *pages, unsigned nr_pages)
696 zpl_readpages(struct file *filp, struct address_space *mapping, struct list_head *pages, unsigned nr_pages) argument
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_page.c211 linux_get_user_pages_internal(vm_map_t map, unsigned long start, int nr_pages, argument
219 len = ptoa((vm_offset_t)nr_pages);
220 count = vm_fault_quick_hold_pages(map, start, len, prot, pages, nr_pages);
221 return (count == -1 ? -EFAULT : nr_pages);
225 __get_user_pages_fast(unsigned long start, int nr_pages, int write, argument
235 if (nr_pages == 0 || in_interrupt())
240 end = start + ptoa((vm_offset_t)nr_pages);
269 unsigned long start, unsigned long nr_pages, unsigned int gup_flags,
275 return (linux_get_user_pages_internal(map, start, nr_pages,
280 get_user_pages(unsigned long start, unsigned long nr_pages, argument
268 get_user_pages_remote(struct task_struct *task, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, struct vm_area_struct **vmas) argument
[all...]
/freebsd-current/sys/dev/bnxt/
H A Dif_bnxt.c777 for (i = 0; i < rmem->nr_pages; i++) {
804 if ((rmem->nr_pages > 1 || rmem->depth > 0) && !rmem->pg_tbl.idi_vaddr) {
805 size_t pg_tbl_size = rmem->nr_pages * 8;
815 for (i = 0; i < rmem->nr_pages; i++) {
826 if (rmem->nr_pages > 1 || rmem->depth > 0) {
827 if (i == rmem->nr_pages - 2 &&
830 else if (i == rmem->nr_pages - 1 &&
878 ctx_pg->nr_pages = DIV_ROUND_UP(mem_size, BNXT_PAGE_SIZE);
879 if (ctx_pg->nr_pages > MAX_CTX_TOTAL_PAGES) {
880 ctx_pg->nr_pages
[all...]
H A Dbnxt.h585 int nr_pages; member in struct:bnxt_ring_mem_info
601 uint32_t nr_pages; member in struct:bnxt_ctx_pg_info
/freebsd-current/sys/contrib/xen/
H A Dmemory.h594 xen_ulong_t nr_pages; member in struct:xen_reserved_device_memory
H A Dxen.h816 * c. list of allocated page frames [mfn_list, nr_pages]
848 unsigned long nr_pages; /* Total pages allocated to this domain. */ member in struct:start_info
/freebsd-current/sys/dev/xen/blkback/
H A Dblkback.c290 int nr_pages; member in struct:xbb_xen_req
894 * \param nr_pages Number of pages needed.
906 xbb_get_kva(struct xbb_softc *xbb, int nr_pages) argument
913 KASSERT(nr_pages != 0, ("xbb_get_kva of zero length"));
952 if (++num_clear == nr_pages) {
954 first_clear + nr_pages - 1);
960 free_kva + (nr_pages * PAGE_SIZE) <=
964 nr_pages * PAGE_SIZE, (uintmax_t)xbb->kva,
987 * \param nr_pages Number of pages in the KVA region.
990 xbb_free_kva(struct xbb_softc *xbb, uint8_t *kva_ptr, int nr_pages) argument
[all...]
/freebsd-current/sys/dev/netmap/
H A Dnetmap_mem2.c2328 int nr_pages; local
2376 nr_pages = nm_os_extmem_nr_pages(os);
2407 if (nr_pages == 0) {
2414 for (j = 0; j < o->num && nr_pages > 0; j++) {
2432 nr_pages--;
2433 nm_prdis("noff %zu page %p nr_pages %d", noff,
2434 page_to_virt(*pages), nr_pages);
2436 (nr_pages == 0 ||
2445 if (nr_pages == 0)
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h1515 #define __sanitizer_syscall_pre_move_pages(pid, nr_pages, pages, nodes, \
1517 __sanitizer_syscall_pre_impl_move_pages((long)(pid), (long)(nr_pages), \
1520 #define __sanitizer_syscall_post_move_pages(res, pid, nr_pages, pages, nodes, \
1522 __sanitizer_syscall_post_impl_move_pages(res, (long)(pid), (long)(nr_pages), \
2882 void __sanitizer_syscall_pre_impl_move_pages(long pid, long nr_pages,
2885 void __sanitizer_syscall_post_impl_move_pages(long res, long pid, long nr_pages,

Completed in 197 milliseconds