Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/s390/cio/
A Dvfio_ccw_cp.c94 int unpinned = 0, npage = 1; in page_array_unpin() local
98 dma_addr_t *last = &first[npage]; in page_array_unpin()
100 if (unpinned + npage < pa_nr && in page_array_unpin()
103 npage++; in page_array_unpin()
108 unpinned += npage; in page_array_unpin()
109 npage = 1; in page_array_unpin()
133 int pinned = 0, npage = 1; in page_array_pin() local
138 dma_addr_t *last = &first[npage]; in page_array_pin()
143 npage++; in page_array_pin()
157 pinned += npage; in page_array_pin()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_mr.c576 int count, npage; in mtr_map_region() local
584 npage = 0; 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
717 if (npage != page_count) { in mtr_map_bufs()
807 u32 npage; in hns_roce_mtr_find() local
819 if (npage < start_index) in hns_roce_mtr_find()
841 npage = min(mtt_count, left); in hns_roce_mtr_find()
[all …]
/linux-6.3-rc2/drivers/vfio/
A Dvfio.h116 int npage, int prot,
119 dma_addr_t user_iova, int npage);
147 dma_addr_t iova, int npage,
150 dma_addr_t iova, int npage);
192 dma_addr_t iova, int npage, in vfio_device_container_pin_pages() argument
199 dma_addr_t iova, int npage) in vfio_device_container_unpin_pages() argument
A Dvfio_iommu_type1.c420 ret = __account_locked_vm(mm, abs(npage), npage > 0, task, lock_cap); in mm_lock_acct()
430 if (!npage) in vfio_lock_acct()
633 while (npage) { in vfio_pin_pages_remote()
682 npage--; in vfio_pin_pages_remote()
935 WARN_ON(i != npage); in vfio_iommu_type1_unpin_pages()
1456 long npage; in vfio_pin_map_dma() local
1467 if (npage <= 0) { in vfio_pin_map_dma()
1468 WARN_ON(!npage); in vfio_pin_map_dma()
1469 ret = (int)npage; in vfio_pin_map_dma()
1478 npage, true); in vfio_pin_map_dma()
[all …]
A Dcontainer.c532 dma_addr_t iova, int npage, in vfio_device_container_pin_pages() argument
539 if (npage > VFIO_PIN_PAGES_MAX_ENTRIES) in vfio_device_container_pin_pages()
545 npage, prot, pages); in vfio_device_container_pin_pages()
549 dma_addr_t iova, int npage) in vfio_device_container_unpin_pages() argument
553 if (WARN_ON(npage <= 0 || npage > VFIO_PIN_PAGES_MAX_ENTRIES)) in vfio_device_container_unpin_pages()
557 npage); in vfio_device_container_unpin_pages()
A Dvfio_main.c1290 int npage, int prot, struct page **pages) in vfio_pin_pages() argument
1293 if (!pages || !npage || WARN_ON(!vfio_assert_device_open(device))) in vfio_pin_pages()
1297 npage, prot, pages); in vfio_pin_pages()
1311 npage * PAGE_SIZE, pages, in vfio_pin_pages()
1315 return npage; in vfio_pin_pages()
1328 void vfio_unpin_pages(struct vfio_device *device, dma_addr_t iova, int npage) in vfio_unpin_pages() argument
1334 vfio_device_container_unpin_pages(device, iova, npage); in vfio_unpin_pages()
1342 npage * PAGE_SIZE); in vfio_unpin_pages()
/linux-6.3-rc2/fs/f2fs/
A Dnode.c764 struct page *npage[4]; in f2fs_get_dnode_of_data() local
779 if (!npage[0]) { in f2fs_get_dnode_of_data()
781 if (IS_ERR(npage[0])) in f2fs_get_dnode_of_data()
792 parent = npage[0]; in f2fs_get_dnode_of_data()
811 if (IS_ERR(npage[i])) { in f2fs_get_dnode_of_data()
822 if (IS_ERR(npage[i])) { in f2fs_get_dnode_of_data()
837 if (IS_ERR(npage[i])) { in f2fs_get_dnode_of_data()
844 parent = npage[i]; in f2fs_get_dnode_of_data()
1197 struct page *npage; in f2fs_truncate_xattr_node() local
1204 if (IS_ERR(npage)) in f2fs_truncate_xattr_node()
[all …]
A Dinline.c275 int f2fs_recover_inline_data(struct inode *inode, struct page *npage) in f2fs_recover_inline_data() argument
290 if (IS_INODE(npage)) in f2fs_recover_inline_data()
291 ri = F2FS_INODE(npage); in f2fs_recover_inline_data()
302 src_addr = inline_data_addr(inode, npage); in f2fs_recover_inline_data()
A Df2fs.h991 struct page *ipage, struct page *npage, nid_t nid) in set_new_dnode() argument
996 dn->node_page = npage; in set_new_dnode()
4109 int f2fs_recover_inline_data(struct inode *inode, struct page *npage);
/linux-6.3-rc2/drivers/infiniband/hw/mthca/
A Dmthca_allocator.c157 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.3-rc2/lib/
A 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-6.3-rc2/include/linux/
A Dvfio.h256 int npage, int prot, struct page **pages);
257 void vfio_unpin_pages(struct vfio_device *device, dma_addr_t iova, int npage);
/linux-6.3-rc2/drivers/gpu/drm/i915/gvt/
A Dkvmgt.c143 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.3-rc2/drivers/iommu/iommufd/
A Dpages.c671 unsigned int npage = 0; in batch_rw() local
677 copy_data_page(pfn_to_page(batch->pfns[cur] + npage), data, in batch_rw()
683 npage++; in batch_rw()
684 if (npage == batch->npfns[cur]) { in batch_rw()
685 npage = 0; in batch_rw()
/linux-6.3-rc2/Documentation/driver-api/
A Dvfio-mediated-device.rst256 int npage, int prot, struct page **pages);
259 int npage);

Completed in 61 milliseconds