/linux-6.1.9/arch/x86/kernel/cpu/sgx/ |
D | virt.c | 22 struct xarray page_array; member 45 epc_page = xa_load(&vepc->page_array, index); in __sgx_vepc_fault() 53 ret = xa_err(xa_store(&vepc->page_array, index, epc_page, GFP_KERNEL)); in __sgx_vepc_fault() 68 xa_erase(&vepc->page_array, index); in __sgx_vepc_fault() 159 xa_for_each(&vepc->page_array, index, entry) { in sgx_vepc_remove_all() 196 xa_for_each(&vepc->page_array, index, entry) { in sgx_vepc_release() 206 xa_erase(&vepc->page_array, index); in sgx_vepc_release() 213 xa_for_each(&vepc->page_array, index, entry) { in sgx_vepc_release() 224 xa_erase(&vepc->page_array, index); in sgx_vepc_release() 252 xa_destroy(&vepc->page_array); in sgx_vepc_release() [all …]
|
D | encl.c | 86 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in reclaimer_writing_to_pcmd() 274 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page_in_vma() 294 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page() 359 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_eaug_page() 397 xa_erase(&encl->page_array, PFN_DOWN(encl_page->desc)); in sgx_encl_eaug_page() 437 (!xa_load(&encl->page_array, PFN_DOWN(addr)))) in sgx_vma_fault() 510 XA_STATE(xas, &encl->page_array, PFN_DOWN(start)); in sgx_encl_may_map() 688 XA_STATE(xas, &encl->page_array, PFN_DOWN(encl->base)); in sgx_encl_release() 721 xa_destroy(&encl->page_array); in sgx_encl_release()
|
D | encl.h | 58 struct xarray page_array; member
|
D | driver.c | 27 xa_init(&encl->page_array); in sgx_open()
|
D | ioctl.c | 299 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_add_page() 331 xa_erase(&encl->page_array, PFN_DOWN(encl_page->desc)); in sgx_encl_add_page() 1154 xa_erase(&encl->page_array, PFN_DOWN(entry->desc)); in sgx_encl_remove_pages()
|
/linux-6.1.9/fs/orangefs/ |
D | orangefs-bufmap.c | 142 struct page **page_array; /* array of mapped pages */ member 154 struct page **page_array; member 171 unpin_user_pages(bufmap->page_array, bufmap->page_count); in orangefs_bufmap_unmap() 177 kfree(bufmap->page_array); in orangefs_bufmap_free() 242 bufmap->page_array = in orangefs_bufmap_alloc() 244 if (!bufmap->page_array) in orangefs_bufmap_alloc() 268 bufmap->page_count, FOLL_WRITE, bufmap->page_array); in orangefs_bufmap_map() 278 SetPageError(bufmap->page_array[i]); in orangefs_bufmap_map() 279 unpin_user_page(bufmap->page_array[i]); in orangefs_bufmap_map() 291 flush_dcache_page(bufmap->page_array[i]); in orangefs_bufmap_map() [all …]
|
/linux-6.1.9/drivers/s390/cio/ |
D | vfio_ccw_cp.c | 22 struct page_array { struct 39 struct page_array *ch_pa; argument 59 static int page_array_alloc(struct page_array *pa, u64 iova, unsigned int len) in page_array_alloc() 98 static void page_array_unpin(struct page_array *pa, in page_array_unpin() 130 static int page_array_pin(struct page_array *pa, struct vfio_device *vdev) in page_array_pin() 167 static void page_array_unpin_free(struct page_array *pa, struct vfio_device *vdev) in page_array_unpin_free() 173 static bool page_array_iova_pinned(struct page_array *pa, u64 iova, u64 length) in page_array_iova_pinned() 189 static inline void page_array_idal_create_words(struct page_array *pa, in page_array_idal_create_words() 238 struct page_array pa = {0}; in copy_from_iova() 374 chain->ch_pa = (struct page_array *)data; in ccwchain_alloc() [all …]
|
/linux-6.1.9/include/linux/ |
D | gfp.h | 185 struct page **page_array); 189 struct page **page_array); 199 alloc_pages_bulk_array(gfp_t gfp, unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array() argument 201 return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array() 205 alloc_pages_bulk_array_node(gfp_t gfp, int nid, unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array_node() argument 210 return __alloc_pages_bulk(gfp, nid, NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array_node()
|
D | relay.h | 46 struct page **page_array; /* array of current buffer pages */ member
|
D | nfs_xdr.h | 1592 struct page *page_array[NFS_PAGEVEC_SIZE]; member 1638 struct nfs_page_array page_array; member
|
/linux-6.1.9/kernel/ |
D | relay.c | 116 buf->page_array = relay_alloc_page_array(n_pages); in relay_alloc_buf() 117 if (!buf->page_array) in relay_alloc_buf() 121 buf->page_array[i] = alloc_page(GFP_KERNEL); in relay_alloc_buf() 122 if (unlikely(!buf->page_array[i])) in relay_alloc_buf() 124 set_page_private(buf->page_array[i], (unsigned long)buf); in relay_alloc_buf() 126 mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); in relay_alloc_buf() 136 __free_page(buf->page_array[j]); in relay_alloc_buf() 137 relay_free_page_array(buf->page_array); in relay_alloc_buf() 201 __free_page(buf->page_array[i]); in relay_destroy_buf() 202 relay_free_page_array(buf->page_array); in relay_destroy_buf() [all …]
|
/linux-6.1.9/fs/nfs/ |
D | pagelist.c | 677 if (hdr->page_array.pagevec != hdr->page_array.page_array) in nfs_pgio_data_destroy() 678 kfree(hdr->page_array.pagevec); in nfs_pgio_data_destroy() 713 hdr->args.pages = hdr->page_array.pagevec; in nfs_pgio_rpcsetup() 896 struct nfs_page_array *pg_array = &hdr->page_array; in nfs_generic_pgio() 903 if (pagecount <= ARRAY_SIZE(pg_array->page_array)) in nfs_generic_pgio() 904 pg_array->pagevec = pg_array->page_array; in nfs_generic_pgio() 916 pages = hdr->page_array.pagevec; in nfs_generic_pgio()
|
/linux-6.1.9/mm/ |
D | mempolicy.c | 2306 struct page **page_array) in alloc_pages_bulk_array_interleave() argument 2324 page_array); in alloc_pages_bulk_array_interleave() 2329 nr_pages_per_node, NULL, page_array); in alloc_pages_bulk_array_interleave() 2332 page_array += nr_allocated; in alloc_pages_bulk_array_interleave() 2341 struct page **page_array) in alloc_pages_bulk_array_preferred_many() argument 2350 nr_pages, NULL, page_array); in alloc_pages_bulk_array_preferred_many() 2355 page_array + nr_allocated); in alloc_pages_bulk_array_preferred_many() 2366 unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array_mempolicy() argument 2375 nr_pages, page_array); in alloc_pages_bulk_array_mempolicy() 2379 numa_node_id(), pol, nr_pages, page_array); in alloc_pages_bulk_array_mempolicy() [all …]
|
D | page_alloc.c | 5372 struct page **page_array) in __alloc_pages_bulk() argument 5390 while (page_array && nr_populated < nr_pages && page_array[nr_populated]) in __alloc_pages_bulk() 5398 if (unlikely(page_array && nr_pages - nr_populated == 0)) in __alloc_pages_bulk() 5468 if (page_array && page_array[nr_populated]) { in __alloc_pages_bulk() 5489 page_array[nr_populated] = page; in __alloc_pages_bulk() 5511 page_array[nr_populated] = page; in __alloc_pages_bulk()
|
/linux-6.1.9/fs/nfs/blocklayout/ |
D | blocklayout.c | 248 header->page_array.npages, f_offset, in bl_read_pagelist() 260 for (i = pg_index; i < header->page_array.npages; i++) { in bl_read_pagelist() 293 header->page_array.npages - i, in bl_read_pagelist() 408 for (i = pg_index; i < header->page_array.npages; i++) { in bl_write_pagelist() 422 bio = do_add_page_to_bio(bio, header->page_array.npages - i, in bl_write_pagelist()
|
/linux-6.1.9/drivers/infiniband/sw/siw/ |
D | siw_qp_tx.c | 436 struct page *page_array[MAX_ARRAY]; in siw_tx_hdt() local 513 page_array[seg] = p; in siw_tx_hdt() 548 page_array[seg] = virt_to_page((void *)(va & PAGE_MASK)); in siw_tx_hdt() 602 rv = siw_0copy_tx(s, page_array, &wqe->sqe.sge[c_tx->sge_idx], in siw_tx_hdt()
|
/linux-6.1.9/Documentation/filesystems/ |
D | orangefs.rst | 273 * page_array - a pointer to ``page_count * (sizeof(struct page*))`` bytes 287 bufmap->desc_array[0].page_array = &bufmap->page_array[offset] 294 bufmap->desc_array[9].page_array = &bufmap->page_array[offset]
|
/linux-6.1.9/fs/btrfs/ |
D | extent_io.h | 248 int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array);
|
D | extent_io.c | 1319 int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array) in btrfs_alloc_page_array() argument 1326 allocated = alloc_pages_bulk_array(GFP_NOFS, nr_pages, page_array); in btrfs_alloc_page_array()
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/hmm/ |
D | hmm_bo.c | 618 static void free_pages_bulk_array(unsigned long nr_pages, struct page **page_array) in free_pages_bulk_array() argument 623 __free_pages(page_array[i], 0); in free_pages_bulk_array()
|