/linux-6.1.9/drivers/s390/cio/ |
D | vfio_ccw_cp.c | 101 int unpinned = 0, npage = 1; in page_array_unpin() local 105 dma_addr_t *last = &first[npage]; in page_array_unpin() 107 if (unpinned + npage < pa_nr && in page_array_unpin() 108 *first + npage * PAGE_SIZE == *last) { in page_array_unpin() 109 npage++; in page_array_unpin() 113 vfio_unpin_pages(vdev, *first, npage); in page_array_unpin() 114 unpinned += npage; in page_array_unpin() 115 npage = 1; in page_array_unpin() 132 int pinned = 0, npage = 1; in page_array_pin() local 137 dma_addr_t *last = &first[npage]; in page_array_pin() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 576 int count, npage; in mtr_map_region() local 584 npage = 0; in mtr_map_region() 585 while (offset < end && npage < max_count) { in mtr_map_region() 592 for (i = 0; i < count && npage < max_count; i++) { in mtr_map_region() 593 addr = pages[npage]; in mtr_map_region() 596 npage++; in mtr_map_region() 601 return npage; in mtr_map_region() 702 int npage; in mtr_map_bufs() local 711 npage = hns_roce_get_umem_bufs(hr_dev, pages, page_count, in mtr_map_bufs() 714 npage = hns_roce_get_kmem_bufs(hr_dev, pages, page_count, in mtr_map_bufs() [all …]
|
/linux-6.1.9/drivers/vfio/ |
D | vfio_iommu_type1.c | 415 static int vfio_lock_acct(struct vfio_dma *dma, long npage, bool async) in vfio_lock_acct() argument 420 if (!npage) in vfio_lock_acct() 429 ret = __account_locked_vm(mm, abs(npage), npage > 0, dma->task, in vfio_lock_acct() 659 long npage, unsigned long *pfn_base, in vfio_pin_pages_remote() argument 681 while (npage) { in vfio_pin_pages_remote() 684 long req_pages = min_t(long, npage, batch->capacity); in vfio_pin_pages_remote() 730 npage--; in vfio_pin_pages_remote() 770 unsigned long pfn, long npage, in vfio_unpin_pages_remote() argument 776 for (i = 0; i < npage; i++, iova += PAGE_SIZE) { in vfio_unpin_pages_remote() 844 int npage, int prot, in vfio_iommu_type1_pin_pages() argument [all …]
|
D | container.c | 556 int npage, int prot, struct page **pages) in vfio_pin_pages() argument 563 if (!pages || !npage || !vfio_assert_device_open(device)) in vfio_pin_pages() 566 if (npage > VFIO_PIN_PAGES_MAX_ENTRIES) in vfio_pin_pages() 575 npage, prot, pages); in vfio_pin_pages() 590 void vfio_unpin_pages(struct vfio_device *device, dma_addr_t iova, int npage) in vfio_unpin_pages() argument 595 if (WARN_ON(npage <= 0 || npage > VFIO_PIN_PAGES_MAX_ENTRIES)) in vfio_unpin_pages() 605 driver->ops->unpin_pages(container->iommu_data, iova, npage); in vfio_unpin_pages()
|
D | vfio.h | 88 int npage, int prot, 91 dma_addr_t user_iova, int npage);
|
/linux-6.1.9/fs/f2fs/ |
D | node.c | 760 struct page *npage[4]; in f2fs_get_dnode_of_data() local 773 npage[0] = dn->inode_page; in f2fs_get_dnode_of_data() 775 if (!npage[0]) { in f2fs_get_dnode_of_data() 776 npage[0] = f2fs_get_node_page(sbi, nids[0]); in f2fs_get_dnode_of_data() 777 if (IS_ERR(npage[0])) in f2fs_get_dnode_of_data() 778 return PTR_ERR(npage[0]); in f2fs_get_dnode_of_data() 784 f2fs_put_page(npage[0], 1); in f2fs_get_dnode_of_data() 788 parent = npage[0]; in f2fs_get_dnode_of_data() 791 dn->inode_page = npage[0]; in f2fs_get_dnode_of_data() 806 npage[i] = f2fs_new_node_page(dn, noffset[i]); in f2fs_get_dnode_of_data() [all …]
|
D | inline.c | 276 int f2fs_recover_inline_data(struct inode *inode, struct page *npage) in f2fs_recover_inline_data() argument 291 if (IS_INODE(npage)) in f2fs_recover_inline_data() 292 ri = F2FS_INODE(npage); in f2fs_recover_inline_data() 303 src_addr = inline_data_addr(inode, npage); in f2fs_recover_inline_data()
|
D | f2fs.h | 985 struct page *ipage, struct page *npage, nid_t nid) in set_new_dnode() argument 990 dn->node_page = npage; in set_new_dnode() 4107 int f2fs_recover_inline_data(struct inode *inode, struct page *npage);
|
/linux-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_allocator.c | 157 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; in mthca_array_init() local 160 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init() 165 for (i = 0; i < npage; ++i) { in mthca_array_init()
|
/linux-6.1.9/include/linux/ |
D | vfio.h | 211 int npage, int prot, struct page **pages); 212 void vfio_unpin_pages(struct vfio_device *device, dma_addr_t iova, int npage);
|
/linux-6.1.9/lib/ |
D | kfifo.c | 315 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-6.1.9/drivers/gpu/drm/i915/gvt/ |
D | kvmgt.c | 143 int npage; in gvt_pin_guest_page() local 150 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page() 151 dma_addr_t cur_iova = (gfn + npage) << PAGE_SHIFT; in gvt_pin_guest_page() 162 if (npage == 0) in gvt_pin_guest_page() 164 else if (base_page + npage != cur_page) { in gvt_pin_guest_page() 167 npage++; in gvt_pin_guest_page() 175 gvt_unpin_guest_page(vgpu, gfn, npage * PAGE_SIZE); in gvt_pin_guest_page()
|
/linux-6.1.9/Documentation/driver-api/ |
D | vfio-mediated-device.rst | 262 int npage, int prot, struct page **pages); 265 int npage);
|