Home
last modified time | relevance | path

Searched refs:npage (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_mr.c600 int count, npage; in mtr_map_region() local
608 npage = 0; in mtr_map_region()
609 while (offset < end && npage < max_count) { in mtr_map_region()
616 for (i = 0; i < count && npage < max_count; i++) { in mtr_map_region()
618 addr = to_hr_hw_page_addr(pages[npage]); in mtr_map_region()
620 addr = pages[npage]; in mtr_map_region()
623 npage++; in mtr_map_region()
628 return npage; in mtr_map_region()
729 int npage; in mtr_map_bufs() local
738 npage = hns_roce_get_umem_bufs(hr_dev, pages, page_count, in mtr_map_bufs()
[all …]
/Linux-v5.15/include/linux/
Dvfio.h114 int npage, int prot,
117 unsigned long *user_pfn, int npage);
152 int npage, int prot, unsigned long *phys_pfn);
154 int npage);
157 unsigned long *user_iova_pfn, int npage,
160 unsigned long *user_iova_pfn, int npage);
/Linux-v5.15/drivers/gpu/drm/gma500/
Dgtt.c94 set_pages_array_wc(pages, r->npage); in psb_gtt_insert()
98 for (i = 0; i < r->npage; i++) { in psb_gtt_insert()
132 for (i = 0; i < r->npage; i++) in psb_gtt_remove()
135 set_pages_array_wb(r->pages, r->npage); in psb_gtt_remove()
156 gt->npage = gt->gem.size / PAGE_SIZE; in psb_gtt_attach_pages()
207 gt->npage, 0, 0, PSB_MMU_CACHED_MEMORY); in psb_gtt_pin()
239 (gpu_base + gt->offset), gt->npage, 0, 0); in psb_gtt_unpin()
Dgtt.h39 int npage; /* Number of backing pages */ member
Dgma_display.c395 if (gt->npage > 4) in gma_crtc_cursor_set()
398 cursor_pages = gt->npage; in gma_crtc_cursor_set()
/Linux-v5.15/drivers/vfio/
Dvfio_iommu_type1.c419 static int vfio_lock_acct(struct vfio_dma *dma, long npage, bool async) in vfio_lock_acct() argument
424 if (!npage) in vfio_lock_acct()
433 ret = __account_locked_vm(mm, abs(npage), npage > 0, dma->task, in vfio_lock_acct()
651 long npage, unsigned long *pfn_base, in vfio_pin_pages_remote() argument
673 while (npage) { in vfio_pin_pages_remote()
676 long req_pages = min_t(long, npage, batch->capacity); in vfio_pin_pages_remote()
722 npage--; in vfio_pin_pages_remote()
762 unsigned long pfn, long npage, in vfio_unpin_pages_remote() argument
768 for (i = 0; i < npage; i++, iova += PAGE_SIZE) { in vfio_unpin_pages_remote()
836 int npage, int prot, in vfio_iommu_type1_pin_pages() argument
[all …]
Dvfio.c1961 int vfio_pin_pages(struct device *dev, unsigned long *user_pfn, int npage, in vfio_pin_pages() argument
1969 if (!dev || !user_pfn || !phys_pfn || !npage) in vfio_pin_pages()
1972 if (npage > VFIO_PIN_PAGES_MAX_ENTRIES) in vfio_pin_pages()
1993 npage, prot, phys_pfn); in vfio_pin_pages()
2014 int vfio_unpin_pages(struct device *dev, unsigned long *user_pfn, int npage) in vfio_unpin_pages() argument
2021 if (!dev || !user_pfn || !npage) in vfio_unpin_pages()
2024 if (npage > VFIO_PIN_PAGES_MAX_ENTRIES) in vfio_unpin_pages()
2039 npage); in vfio_unpin_pages()
2073 unsigned long *user_iova_pfn, int npage, in vfio_group_pin_pages() argument
2080 if (!group || !user_iova_pfn || !phys_pfn || !npage) in vfio_group_pin_pages()
[all …]
/Linux-v5.15/fs/f2fs/
Dnode.c758 struct page *npage[4]; in f2fs_get_dnode_of_data() local
771 npage[0] = dn->inode_page; in f2fs_get_dnode_of_data()
773 if (!npage[0]) { in f2fs_get_dnode_of_data()
774 npage[0] = f2fs_get_node_page(sbi, nids[0]); in f2fs_get_dnode_of_data()
775 if (IS_ERR(npage[0])) in f2fs_get_dnode_of_data()
776 return PTR_ERR(npage[0]); in f2fs_get_dnode_of_data()
782 f2fs_put_page(npage[0], 1); in f2fs_get_dnode_of_data()
786 parent = npage[0]; in f2fs_get_dnode_of_data()
789 dn->inode_page = npage[0]; in f2fs_get_dnode_of_data()
804 npage[i] = f2fs_new_node_page(dn, noffset[i]); in f2fs_get_dnode_of_data()
[all …]
Dinline.c263 int f2fs_recover_inline_data(struct inode *inode, struct page *npage) in f2fs_recover_inline_data() argument
278 if (IS_INODE(npage)) in f2fs_recover_inline_data()
279 ri = F2FS_INODE(npage); in f2fs_recover_inline_data()
290 src_addr = inline_data_addr(inode, npage); in f2fs_recover_inline_data()
Df2fs.h941 struct page *ipage, struct page *npage, nid_t nid) in set_new_dnode() argument
946 dn->node_page = npage; in set_new_dnode()
3908 int f2fs_recover_inline_data(struct inode *inode, struct page *npage);
/Linux-v5.15/drivers/infiniband/hw/mthca/
Dmthca_allocator.c162 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; in mthca_array_init() local
165 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init()
170 for (i = 0; i < npage; ++i) { in mthca_array_init()
/Linux-v5.15/drivers/gpu/drm/i915/gvt/
Dkvmgt.c255 int npage; in gvt_unpin_guest_page() local
260 for (npage = 0; npage < total_pages; npage++) { in gvt_unpin_guest_page()
261 unsigned long cur_gfn = gfn + npage; in gvt_unpin_guest_page()
275 int npage; in gvt_pin_guest_page() local
283 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
284 unsigned long cur_gfn = gfn + npage; in gvt_pin_guest_page()
297 npage++; in gvt_pin_guest_page()
302 if (npage == 0) in gvt_pin_guest_page()
304 else if (base_pfn + npage != pfn) { in gvt_pin_guest_page()
307 npage++; in gvt_pin_guest_page()
[all …]
/Linux-v5.15/lib/
Dkfifo.c315 struct page *npage; in setup_sgl_buf() local
319 npage = virt_to_page(buf); in setup_sgl_buf()
320 if (page_to_phys(page) != page_to_phys(npage) - l) { in setup_sgl_buf()
325 page = npage; in setup_sgl_buf()
/Linux-v5.15/Documentation/driver-api/
Dvfio-mediated-device.rst283 int npage, int prot, unsigned long *phys_pfn);
286 int npage);