/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | hmm-tests.c | 290 unsigned long npages; in TEST_F() local 354 unsigned long npages; in TEST_F() local 413 unsigned long npages; in TEST_F() local 461 unsigned long npages; in TEST_F() local 527 unsigned long npages; in TEST_F() local 605 unsigned long npages; in TEST_F() local 682 unsigned long npages; in TEST_F() local 786 unsigned long npages; in TEST_F() local 843 unsigned long npages; in TEST_F() local 898 unsigned long npages; in TEST_F() local [all …]
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | iommu.c | 158 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 …]
|
A D | pci_sun4v.c | 60 unsigned long npages; /* Number of pages in list. */ member 91 unsigned long npages = p->npages; in iommu_batch_flush() local 185 unsigned long flags, order, first_page, npages, n; in dma_4v_alloc_coherent() local 297 unsigned long entry, unsigned long npages) in dma_4v_iommu_demap() 329 unsigned long order, npages, entry; in dma_4v_free_coherent() local 363 unsigned long flags, npages, oaddr; in dma_4v_map_page() local 436 unsigned long npages; in dma_4v_unmap_page() local 523 unsigned long paddr, npages, entry, out_entry = 0, slen; in dma_4v_map_sg() local 605 unsigned long vaddr, npages; in dma_4v_map_sg() local 648 unsigned long npages; in dma_4v_unmap_sg() local
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | user_pages.c | 30 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()
|
A D | user_exp_rcv.c | 136 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()
|
/linux-6.3-rc2/arch/x86/mm/ |
A D | mem_encrypt_amd.c | 61 unsigned long npages = PAGE_ALIGN(sz) >> PAGE_SHIFT; in snp_memcpy() local 291 static void enc_dec_hypercall(unsigned long vaddr, int npages, bool enc) in enc_dec_hypercall() 322 static void amd_enc_status_change_prepare(unsigned long vaddr, int npages, bool enc) in amd_enc_status_change_prepare() 333 static bool amd_enc_status_change_finish(unsigned long vaddr, int npages, bool enc) in amd_enc_status_change_finish() 483 void __init early_set_mem_enc_dec_hypercall(unsigned long vaddr, int npages, bool enc) in early_set_mem_enc_dec_hypercall() 508 unsigned long vaddr, vaddr_end, npages; in mem_encrypt_free_decrypted_mem() local
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | iommu.c | 203 unsigned long npages, in iommu_range_alloc() 334 void *page, unsigned int npages, in iommu_alloc() 377 unsigned int npages) in iommu_free_check() 424 unsigned int npages) in __iommu_free() 446 unsigned int npages) in iommu_free() 487 unsigned long vaddr, npages, entry, slen; in ppc_iommu_map_sg() local 586 unsigned long vaddr, npages; in ppc_iommu_map_sg() local 614 unsigned int npages; in ppc_iommu_unmap_sg() local 848 unsigned int npages, align; in iommu_map_page() local 883 unsigned int npages; in iommu_unmap_page() local [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | pagealloc.c | 52 s32 npages; member 183 s32 *npages, int boot) in mlx5_cmd_query_pages() 337 static int give_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, in give_pages() 424 int npages = 0; in release_all_pages() local 449 u32 npages) in fwp_fill_manage_pages_out() 474 u32 npages; in reclaim_pages_cmd() local 501 static int reclaim_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, in reclaim_pages() 605 s32 npages; in req_pages_handler() local 637 s32 npages; in mlx5_satisfy_startup_pages() local
|
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/ |
A D | scatterlist.c | 53 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.3-rc2/mm/ |
A D | migrate_device.c | 364 unsigned long npages, in migrate_device_unmap() 701 unsigned long *dst_pfns, unsigned long npages, in __migrate_device_pages() 796 unsigned long npages) in migrate_device_pages() 827 unsigned long *dst_pfns, unsigned long npages) in migrate_device_finalize() 910 unsigned long npages) in migrate_device_range()
|
A D | hmm.c | 122 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 431 unsigned long i, npages, pfn; in hmm_vma_walk_pud() local
|
/linux-6.3-rc2/drivers/accel/ivpu/ |
A D | ivpu_gem.c | 72 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 454 loff_t npages = obj->size >> PAGE_SHIFT; in ivpu_bo_get_sg_table() local 475 loff_t npages = obj->size >> PAGE_SHIFT; in ivpu_vm_fault() local
|
/linux-6.3-rc2/fs/f2fs/ |
A D | debug.c | 321 unsigned long npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() local 326 unsigned long npages = META_MAPPING(sbi)->nrpages; in update_mem_info() local 332 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info() local
|
/linux-6.3-rc2/fs/sysv/ |
A D | dir.c | 82 unsigned long npages = dir_pages(inode); in sysv_readdir() local 151 unsigned long npages = dir_pages(dir); in sysv_find_entry() local 197 unsigned long npages = dir_pages(dir); in sysv_add_link() local 302 unsigned long i, npages = dir_pages(inode); in sysv_empty_dir() local
|
/linux-6.3-rc2/drivers/fpga/ |
A D | dfl-afu-dma-region.c | 37 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.3-rc2/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_migrate.c | 49 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->npages; in svm_migrate_copy_to_vram() local 404 uint64_t npages = (end - start) >> PAGE_SHIFT; in svm_migrate_vma_to_vram() local 560 dma_addr_t *scratch, uint64_t npages) in svm_migrate_copy_to_ram() 666 uint64_t npages = (end - start) >> PAGE_SHIFT; in svm_migrate_vma_to_ram() local
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | mr.c | 194 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.3-rc2/drivers/iommu/iommufd/ |
A D | pages.c | 163 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() 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() 906 unsigned long npages; in pfn_reader_user_update_pinned() local [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_gem_prime.c | 20 int npages = obj->size >> PAGE_SHIFT; in etnaviv_gem_prime_get_sg_table() local 109 int ret, npages; in etnaviv_gem_prime_import_sg_table() local
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | x86_init.c | 133 static void enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool enc) { } in enc_status_change_prepare_noop() 134 static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return false… in enc_status_change_finish_noop()
|
/linux-6.3-rc2/fs/minix/ |
A D | dir.c | 93 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.3-rc2/arch/powerpc/include/asm/ |
A D | ultravisor.h | 34 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.3-rc2/fs/ufs/ |
A D | dir.c | 258 unsigned long npages = dir_pages(dir); in ufs_find_entry() local 316 unsigned long npages = dir_pages(dir); in ufs_add_link() local 430 unsigned long npages = dir_pages(inode); in ufs_readdir() local 595 unsigned long i, npages = dir_pages(inode); in ufs_empty_dir() local
|
/linux-6.3-rc2/fs/nilfs2/ |
A D | dir.c | 270 unsigned long npages = dir_pages(inode); in nilfs_readdir() local 332 unsigned long npages = dir_pages(dir); in nilfs_find_entry() local 448 unsigned long npages = dir_pages(dir); in nilfs_add_link() local 624 unsigned long i, npages = dir_pages(inode); in nilfs_empty_dir() local
|
/linux-6.3-rc2/fs/ext2/ |
A D | dir.c | 262 unsigned long npages = dir_pages(inode); in ext2_readdir() local 346 unsigned long npages = dir_pages(dir); in ext2_find_entry() local 503 unsigned long npages = dir_pages(dir); in ext2_add_link() local 682 unsigned long i, npages = dir_pages(inode); in ext2_empty_dir() local
|