Home
last modified time | relevance | path

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

12345678910

/linux-6.6.21/tools/testing/selftests/mm/
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-6.6.21/lib/
Dkunit_iov_iter.c49 size_t npages) in iov_kunit_create_buffer()
105 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_kvec() local
155 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_kvec() local
219 struct page **pages, size_t npages, in iov_kunit_load_bvec()
264 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_bvec() local
318 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_bvec() local
376 struct page **pages, size_t npages) in iov_kunit_load_xarray()
411 size_t bufsize, npages, size, copied; in iov_kunit_copy_to_xarray() local
469 size_t bufsize, npages, size, copied; in iov_kunit_copy_from_xarray() local
533 size_t bufsize, size = 0, npages; in iov_kunit_extract_pages_kvec() local
[all …]
/linux-6.6.21/arch/sparc/kernel/
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 …]
Dpci_sun4v.c61 unsigned long npages; /* Number of pages in list. */ member
92 unsigned long npages = p->npages; in iommu_batch_flush() local
186 unsigned long flags, order, first_page, npages, n; in dma_4v_alloc_coherent() local
298 unsigned long entry, unsigned long npages) in dma_4v_iommu_demap()
330 unsigned long order, npages, entry; in dma_4v_free_coherent() local
364 unsigned long flags, npages, oaddr; in dma_4v_map_page() local
437 unsigned long npages; in dma_4v_unmap_page() local
524 unsigned long paddr, npages, entry, out_entry = 0, slen; in dma_4v_map_sg() local
606 unsigned long vaddr, npages; in dma_4v_map_sg() local
649 unsigned long npages; in dma_4v_unmap_sg() local
/linux-6.6.21/drivers/infiniband/hw/hfi1/
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()
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()
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()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dscatterlist.c53 unsigned int npages = npages_fn(n, pt->st.nents, rnd); in expect_pfn_sg() local
209 unsigned long npages) in page_contiguous()
242 unsigned long npages = npages_fn(n, count, rnd); in alloc_table() local
292 const npages_fn_t *npages; in igt_sg_alloc() local
334 const npages_fn_t *npages; in igt_sg_trim() local
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
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()
621 s32 npages; in req_pages_handler() local
653 s32 npages; in mlx5_satisfy_startup_pages() local
/linux-6.6.21/arch/powerpc/kernel/
Diommu.c215 unsigned long npages, in iommu_range_alloc()
346 void *page, unsigned int npages, in iommu_alloc()
389 unsigned int npages) in iommu_free_check()
436 unsigned int npages) in __iommu_free()
458 unsigned int npages) in iommu_free()
499 unsigned long vaddr, npages, entry, slen; in ppc_iommu_map_sg() local
598 unsigned long vaddr, npages; in ppc_iommu_map_sg() local
626 unsigned int npages; in ppc_iommu_unmap_sg() local
860 unsigned int npages, align; in iommu_map_page() local
895 unsigned int npages; in iommu_unmap_page() local
[all …]
/linux-6.6.21/drivers/accel/ivpu/
Divpu_gem.c72 int npages = bo->base.size >> PAGE_SHIFT; in shmem_alloc_pages_locked() local
99 int npages = bo->base.size >> PAGE_SHIFT; in ivpu_bo_map_pages_locked() local
145 unsigned int i, npages = bo->base.size >> PAGE_SHIFT; in internal_alloc_pages_locked() local
174 unsigned int i, npages = bo->base.size >> PAGE_SHIFT; in internal_free_pages_locked() local
459 loff_t npages = obj->size >> PAGE_SHIFT; in ivpu_bo_get_sg_table() local
480 loff_t npages = obj->size >> PAGE_SHIFT; in ivpu_vm_fault() local
/linux-6.6.21/mm/
Dmigrate_device.c358 unsigned long npages, in migrate_device_unmap()
682 unsigned long *dst_pfns, unsigned long npages, in __migrate_device_pages()
781 unsigned long npages) in migrate_device_pages()
812 unsigned long *dst_pfns, unsigned long npages) in migrate_device_finalize()
895 unsigned long npages) in migrate_device_range()
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-6.6.21/fs/f2fs/
Ddebug.c324 unsigned long npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() local
329 unsigned long npages = META_MAPPING(sbi)->nrpages; in update_mem_info() local
335 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info() local
/linux-6.6.21/fs/sysv/
Ddir.c76 unsigned long npages = dir_pages(inode); in sysv_readdir() local
145 unsigned long npages = dir_pages(dir); in sysv_find_entry() local
191 unsigned long npages = dir_pages(dir); in sysv_add_link() local
296 unsigned long i, npages = dir_pages(inode); in sysv_empty_dir() local
/linux-6.6.21/drivers/fpga/
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-6.6.21/arch/x86/mm/
Dmem_encrypt_amd.c62 unsigned long npages = PAGE_ALIGN(sz) >> PAGE_SHIFT; in snp_memcpy() local
322 static bool amd_enc_status_change_prepare(unsigned long vaddr, int npages, bool enc) in amd_enc_status_change_prepare()
335 static bool amd_enc_status_change_finish(unsigned long vaddr, int npages, bool enc) in amd_enc_status_change_finish()
535 unsigned long vaddr, vaddr_end, npages; in mem_encrypt_free_decrypted_mem() local
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
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-6.6.21/drivers/iommu/iommufd/
Dpages.c163 static void iopt_pages_add_npinned(struct iopt_pages *pages, size_t npages) in iopt_pages_add_npinned()
172 static void iopt_pages_sub_npinned(struct iopt_pages *pages, size_t npages) in iopt_pages_sub_npinned()
186 unsigned long npages = last_index - start_index + 1; in iopt_pages_err_unpin() local
616 size_t npages) in batch_from_pages()
626 unsigned int first_page_off, size_t npages) in batch_unpin()
742 unsigned long npages; in pfn_reader_user_pin() local
804 static int incr_user_locked_vm(struct iopt_pages *pages, unsigned long npages) in incr_user_locked_vm()
822 static void decr_user_locked_vm(struct iopt_pages *pages, unsigned long npages) in decr_user_locked_vm()
830 static int update_mm_locked_vm(struct iopt_pages *pages, unsigned long npages, in update_mm_locked_vm()
857 static int do_update_pinned(struct iopt_pages *pages, unsigned long npages, in do_update_pinned()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_migrate.c49 svm_migrate_gart_map(struct amdgpu_ring *ring, uint64_t npages, in svm_migrate_gart_map()
125 uint64_t *vram, uint64_t npages, in svm_migrate_copy_memory_gart()
294 uint64_t npages = migrate->cpages; in svm_migrate_copy_to_vram() local
399 uint64_t npages = (end - start) >> PAGE_SHIFT; in svm_migrate_vma_to_vram() local
568 dma_addr_t *scratch, uint64_t npages) in svm_migrate_copy_to_ram()
676 uint64_t npages = (end - start) >> PAGE_SHIFT; in svm_migrate_vma_to_ram() local
/linux-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_gem_prime.c20 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-6.6.21/arch/x86/kernel/
Dx86_init.c134 static bool enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool enc) { return true… in enc_status_change_prepare_noop()
135 static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return true;… in enc_status_change_finish_noop()
/linux-6.6.21/fs/minix/
Ddir.c93 unsigned long npages = dir_pages(inode); in minix_readdir() local
165 unsigned long npages = dir_pages(dir); in minix_find_entry() local
214 unsigned long npages = dir_pages(dir); in minix_add_link() local
371 unsigned long i, npages = dir_pages(inode); in minix_empty_dir() local
/linux-6.6.21/arch/powerpc/include/asm/
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-6.6.21/fs/ufs/
Ddir.c264 unsigned long npages = dir_pages(dir); in ufs_find_entry() local
322 unsigned long npages = dir_pages(dir); in ufs_add_link() local
437 unsigned long npages = dir_pages(inode); in ufs_readdir() local
604 unsigned long i, npages = dir_pages(inode); in ufs_empty_dir() local

12345678910