/linux-6.6.21/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() 214 xa_for_each(&vepc->page_array, index, entry) { in sgx_vepc_release() 225 xa_erase(&vepc->page_array, index); in sgx_vepc_release() 255 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() 287 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page_in_vma() 307 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page() 379 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_eaug_page() 417 xa_erase(&encl->page_array, PFN_DOWN(encl_page->desc)); in sgx_encl_eaug_page() 457 (!xa_load(&encl->page_array, PFN_DOWN(addr)))) in sgx_vma_fault() 530 XA_STATE(xas, &encl->page_array, PFN_DOWN(start)); in sgx_encl_may_map() 708 XA_STATE(xas, &encl->page_array, PFN_DOWN(encl->base)); in sgx_encl_release() 741 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.6.21/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.6.21/drivers/s390/cio/ |
D | vfio_ccw_cp.c | 22 struct page_array { struct 39 struct page_array *ch_pa; argument 58 static int page_array_alloc(struct page_array *pa, unsigned int len) in page_array_alloc() 91 static void page_array_unpin(struct page_array *pa, in page_array_unpin() 131 static int page_array_pin(struct page_array *pa, struct vfio_device *vdev, bool unaligned) in page_array_pin() 169 static void page_array_unpin_free(struct page_array *pa, struct vfio_device *vdev, bool unaligned) in page_array_unpin_free() 176 static bool page_array_iova_pinned(struct page_array *pa, u64 iova, u64 length) in page_array_iova_pinned() 192 static inline void page_array_idal_create_words(struct page_array *pa, in page_array_idal_create_words() 602 struct page_array *pa, in ccwchain_fetch_ccw() 679 struct page_array *pa, in ccwchain_fetch_one() [all …]
|
/linux-6.6.21/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 | 1596 struct page *page_array[NFS_PAGEVEC_SIZE]; member 1645 struct nfs_page_array page_array; member
|
/linux-6.6.21/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.6.21/fs/nfs/ |
D | pagelist.c | 773 if (hdr->page_array.pagevec != hdr->page_array.page_array) in nfs_pgio_data_destroy() 774 kfree(hdr->page_array.pagevec); in nfs_pgio_data_destroy() 810 hdr->args.pages = hdr->page_array.pagevec; in nfs_pgio_rpcsetup() 994 struct nfs_page_array *pg_array = &hdr->page_array; in nfs_generic_pgio() 1002 if (pagecount <= ARRAY_SIZE(pg_array->page_array)) in nfs_generic_pgio() 1003 pg_array->pagevec = pg_array->page_array; in nfs_generic_pgio() 1015 pages = hdr->page_array.pagevec; in nfs_generic_pgio()
|
/linux-6.6.21/mm/ |
D | mempolicy.c | 2324 struct page **page_array) in alloc_pages_bulk_array_interleave() argument 2342 page_array); in alloc_pages_bulk_array_interleave() 2347 nr_pages_per_node, NULL, page_array); in alloc_pages_bulk_array_interleave() 2350 page_array += nr_allocated; in alloc_pages_bulk_array_interleave() 2359 struct page **page_array) in alloc_pages_bulk_array_preferred_many() argument 2368 nr_pages, NULL, page_array); in alloc_pages_bulk_array_preferred_many() 2373 page_array + nr_allocated); in alloc_pages_bulk_array_preferred_many() 2384 unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array_mempolicy() argument 2393 nr_pages, page_array); in alloc_pages_bulk_array_mempolicy() 2397 numa_node_id(), pol, nr_pages, page_array); in alloc_pages_bulk_array_mempolicy() [all …]
|
D | page_alloc.c | 4241 struct page **page_array) in __alloc_pages_bulk() argument 4258 while (page_array && nr_populated < nr_pages && page_array[nr_populated]) in __alloc_pages_bulk() 4266 if (unlikely(page_array && nr_pages - nr_populated == 0)) in __alloc_pages_bulk() 4336 if (page_array && page_array[nr_populated]) { in __alloc_pages_bulk() 4357 page_array[nr_populated] = page; in __alloc_pages_bulk() 4379 page_array[nr_populated] = page; in __alloc_pages_bulk()
|
/linux-6.6.21/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.6.21/io_uring/ |
D | io_uring.c | 2689 struct page **page_array; in io_pages_free() local 2695 page_array = *pages; in io_pages_free() 2696 if (!page_array) in io_pages_free() 2700 unpin_user_page(page_array[i]); in io_pages_free() 2701 kvfree(page_array); in io_pages_free() 2708 struct page **page_array; in __io_uaddr_map() local 2721 page_array = kvmalloc_array(nr_pages, sizeof(struct page *), GFP_KERNEL); in __io_uaddr_map() 2722 if (!page_array) in __io_uaddr_map() 2726 page_array); in __io_uaddr_map() 2729 io_pages_free(&page_array, ret > 0 ? ret : 0); in __io_uaddr_map() [all …]
|
/linux-6.6.21/drivers/infiniband/sw/siw/ |
D | siw_qp_tx.c | 441 struct page *page_array[MAX_ARRAY]; in siw_tx_hdt() local 518 page_array[seg] = p; in siw_tx_hdt() 547 page_array[seg] = ib_virt_dma_to_page(va); in siw_tx_hdt() 601 rv = siw_0copy_tx(s, page_array, &wqe->sqe.sge[c_tx->sge_idx], in siw_tx_hdt()
|
/linux-6.6.21/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.6.21/fs/btrfs/ |
D | extent_io.h | 297 int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array);
|
D | extent_io.c | 681 int btrfs_alloc_page_array(unsigned int nr_pages, struct page **page_array) in btrfs_alloc_page_array() argument 688 allocated = alloc_pages_bulk_array(GFP_NOFS, nr_pages, page_array); in btrfs_alloc_page_array() 700 __free_page(page_array[i]); in btrfs_alloc_page_array() 701 page_array[i] = NULL; in btrfs_alloc_page_array()
|
/linux-6.6.21/sound/pci/hda/ |
D | tas2781_hda_i2c.c | 409 static const unsigned char page_array[CALIB_MAX] = { in tas2781_apply_calib() local 423 TASDEVICE_REG(0, page_array[j], rgno_array[j]), in tas2781_apply_calib()
|
/linux-6.6.21/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()
|