Home
last modified time | relevance | path

Searched defs:npages (Results 1 – 25 of 192) sorted by relevance

12345678

/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c181 unsigned long npages) in hmm_dmirror_cmd()
270 unsigned long npages) in hmm_migrate_sys_to_dev()
277 unsigned long npages) in hmm_migrate_dev_to_sys()
295 unsigned long npages; in TEST_F() local
359 unsigned long npages; in TEST_F() local
418 unsigned long npages; in TEST_F() local
466 unsigned long npages; in TEST_F() local
532 unsigned long npages; in TEST_F() local
610 unsigned long npages; in TEST_F() local
687 unsigned long npages; in TEST_F() local
[all …]
/linux/lib/
H A Dkunit_iov_iter.c50 size_t npages) in iov_kunit_create_buffer()
109 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_kvec() local
159 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_kvec() local
223 struct page **pages, size_t npages, in iov_kunit_load_bvec()
268 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_bvec() local
322 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_bvec() local
385 struct page **pages, size_t npages) in iov_kunit_load_folioq()
426 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_folioq() local
488 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_folioq() local
553 struct page **pages, size_t npages) in iov_kunit_load_xarray()
[all …]
/linux/io_uring/
H A Dmemmap.c60 void *io_pages_map(struct page ***out_pages, unsigned short *npages, in io_pages_map()
93 void io_pages_unmap(void *ptr, struct page ***pages, unsigned short *npages, in io_pages_unmap()
123 void io_pages_free(struct page ***pages, int npages) in io_pages_free()
135 struct page **io_pin_pages(unsigned long uaddr, unsigned long len, int *npages) in io_pin_pages()
177 void *__io_uaddr_map(struct page ***pages, unsigned short *npages, in __io_uaddr_map()
314 struct page **pages, int npages) in io_uring_mmap_pages()
329 unsigned int npages; in io_uring_mmap() local
/linux/arch/sparc/kernel/
H A Diommu.c158 unsigned long npages) in alloc_npages()
204 int npages, nid; in dma_4u_alloc_coherent() local
251 unsigned long order, npages; in dma_4u_free_coherent() local
271 unsigned long flags, npages, oaddr; in dma_4u_map_page() local
321 u32 vaddr, unsigned long ctx, unsigned long npages, in strbuf_flush()
393 unsigned long flags, npages, ctx, i; in dma_4u_unmap_page() local
478 unsigned long paddr, npages, entry, out_entry = 0, slen; in dma_4u_map_sg() local
557 unsigned long vaddr, npages, entry, j; in dma_4u_map_sg() local
627 unsigned long npages, entry; in dma_4u_unmap_sg() local
663 unsigned long flags, ctx, npages; in dma_4u_sync_single_for_cpu() local
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Duser_pages.c30 u32 nlocked, u32 npages) in hfi1_can_pin_pages()
80 int hfi1_acquire_user_pages(struct mm_struct *mm, unsigned long vaddr, size_t npages, in hfi1_acquire_user_pages()
96 size_t npages, bool dirty) in hfi1_release_user_pages()
H A Duser_exp_rcv.c136 unsigned int npages, in unpin_rcv_pages()
162 unsigned int npages = tidbuf->npages; in pin_rcv_pages() local
565 static u32 find_phys_blocks(struct tid_user_buf *tidbuf, unsigned int npages) in find_phys_blocks()
683 u16 npages, pageidx, setidx = start + idx; in program_rcvarray() local
726 u16 pageidx, unsigned int npages) in set_rcvarray_entry()
H A Dpin_system.c20 unsigned int npages; member
55 static u32 sdma_cache_evict(struct hfi1_user_sdma_pkt_q *pq, u32 npages) in sdma_cache_evict()
66 unsigned int start, unsigned int npages) in unpin_vector_pages()
116 struct sdma_mmu_node *node, int npages) in pin_system_pages()
H A Duser_exp_rcv.h23 unsigned int npages; member
38 unsigned int npages; member
/linux/arch/powerpc/kernel/
H A Diommu.c216 unsigned long npages, in iommu_range_alloc()
347 void *page, unsigned int npages, in iommu_alloc()
390 unsigned int npages) in iommu_free_check()
437 unsigned int npages) in __iommu_free()
459 unsigned int npages) in iommu_free()
500 unsigned long vaddr, npages, entry, slen; in ppc_iommu_map_sg() local
599 unsigned long vaddr, npages; in ppc_iommu_map_sg() local
627 unsigned int npages; in ppc_iommu_unmap_sg() local
861 unsigned int npages, align; in iommu_map_page() local
896 unsigned int npages; in iommu_unmap_page() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpagealloc.c52 s32 npages; member
199 s32 *npages, int boot) in mlx5_cmd_query_pages()
353 static int give_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, in give_pages()
440 int npages = 0; in release_all_pages() local
465 u32 npages) in fwp_fill_manage_pages_out()
490 u32 npages; in reclaim_pages_cmd() local
517 static int reclaim_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, in reclaim_pages()
626 s32 npages; in req_pages_handler() local
667 s32 npages; in mlx5_satisfy_startup_pages() local
/linux/drivers/gpu/drm/xe/
H A Dxe_hmm.c34 u64 i, npages; in xe_mark_range_accessed() local
85 u64 i, npages; in xe_build_sg() local
178 u64 npages; in xe_hmm_userptr_populate_range() local
/linux/mm/
H A Dmigrate_device.c363 unsigned long npages, in migrate_device_unmap()
684 unsigned long *dst_pfns, unsigned long npages, in __migrate_device_pages()
782 unsigned long npages) in migrate_device_pages()
813 unsigned long *dst_pfns, unsigned long npages) in migrate_device_finalize()
899 unsigned long npages) in migrate_device_range()
H A Dhmm.c122 const unsigned long hmm_pfns[], unsigned long npages, in hmm_range_need_fault()
153 unsigned long i, npages; in hmm_vma_walk_hole() local
193 unsigned long pfn, npages, i; in hmm_vma_handle_pmd() local
329 unsigned long npages = (end - start) >> PAGE_SHIFT; in hmm_vma_walk_pmd() local
433 unsigned long i, npages, pfn; in hmm_vma_walk_pud() local
/linux/fs/sysv/
H A Ddir.c77 unsigned long npages = dir_pages(inode); in sysv_readdir() local
145 unsigned long npages = dir_pages(dir); in sysv_find_entry() local
187 unsigned long npages = dir_pages(dir); in sysv_add_link() local
292 unsigned long i, npages = dir_pages(inode); in sysv_empty_dir() local
/linux/drivers/iommu/iommufd/
H A Dpages.c164 static void iopt_pages_add_npinned(struct iopt_pages *pages, size_t npages) in iopt_pages_add_npinned()
173 static void iopt_pages_sub_npinned(struct iopt_pages *pages, size_t npages) in iopt_pages_sub_npinned()
187 unsigned long npages = last_index - start_index + 1; in iopt_pages_err_unpin() local
631 size_t npages) in batch_from_pages()
641 unsigned long *offset_p, unsigned long npages) in batch_from_folios()
676 unsigned int first_page_off, size_t npages) in batch_unpin()
802 unsigned long npages) in pin_memfd_pages()
859 unsigned long npages = last_index - start_index + 1; in pfn_reader_user_pin() local
933 static int incr_user_locked_vm(struct iopt_pages *pages, unsigned long npages) in incr_user_locked_vm()
952 static void decr_user_locked_vm(struct iopt_pages *pages, unsigned long npages) in decr_user_locked_vm()
[all …]
/linux/drivers/fpga/
H A Ddfl-afu-dma-region.c37 int npages = region->length >> PAGE_SHIFT; in afu_dma_pin_pages() local
85 long npages = region->length >> PAGE_SHIFT; in afu_dma_unpin_pages() local
104 int npages = region->length >> PAGE_SHIFT; in afu_dma_check_continuous_pages() local
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c194 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift, in mlx4_mtt_init()
418 u64 iova, u64 size, u32 access, int npages, in mlx4_mr_alloc_reserved()
528 int npages, int page_shift, struct mlx4_mr *mr) in mlx4_mr_alloc()
590 u64 iova, u64 size, int npages, in mlx4_mr_rereg_mem_write()
693 int start_index, int npages, u64 *page_list) in mlx4_write_mtt_chunk()
719 int start_index, int npages, u64 *page_list) in __mlx4_write_mtt()
747 int start_index, int npages, u64 *page_list) in mlx4_write_mtt()
/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem_prime.c20 unsigned int npages = obj->size >> PAGE_SHIFT; in etnaviv_gem_prime_get_sg_table() local
117 int ret, npages; in etnaviv_gem_prime_import_sg_table() local
/linux/fs/minix/
H A Ddir.c89 unsigned long npages = dir_pages(inode); in minix_readdir() local
162 unsigned long npages = dir_pages(dir); in minix_find_entry() local
207 unsigned long npages = dir_pages(dir); in minix_add_link() local
360 unsigned long i, npages = dir_pages(inode); in minix_empty_dir() local
/linux/fs/nilfs2/
H A Ddir.c241 unsigned long npages = dir_pages(inode); in nilfs_readdir() local
301 unsigned long npages = dir_pages(dir); in nilfs_find_entry() local
433 unsigned long npages = dir_pages(dir); in nilfs_add_link() local
605 unsigned long i, npages = dir_pages(inode); in nilfs_empty_dir() local
/linux/arch/powerpc/include/asm/
H A Dultravisor.h34 static inline int uv_share_page(u64 pfn, u64 npages) in uv_share_page()
39 static inline int uv_unshare_page(u64 pfn, u64 npages) in uv_unshare_page()
/linux/arch/x86/kernel/
H A Dx86_init.c138 static int enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool enc) { return 0; } in enc_status_change_prepare_noop()
139 static int enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return 0; } in enc_status_change_finish_noop()
/linux/fs/ext2/
H A Ddir.c264 unsigned long npages = dir_pages(inode); in ext2_readdir() local
349 unsigned long npages = dir_pages(dir); in ext2_find_entry() local
486 unsigned long npages = dir_pages(dir); in ext2_add_link() local
663 unsigned long i, npages = dir_pages(inode); in ext2_empty_dir() local
/linux/fs/ufs/
H A Ddir.c256 unsigned long npages = dir_pages(dir); in ufs_find_entry() local
308 unsigned long npages = dir_pages(dir); in ufs_add_link() local
418 unsigned long npages = dir_pages(inode); in ufs_readdir() local
585 unsigned long i, npages = dir_pages(inode); in ufs_empty_dir() local
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c95 unsigned long npages; in usnic_uiom_get_pages() local
213 int npages; in __usnic_uiom_reg_release() local
335 unsigned long npages; in usnic_uiom_reg_get() local

12345678