/kernel/linux/linux-5.10/drivers/staging/vc04_services/interface/vchiq_arm/ |
H A D | vchiq_2835_arm.c | 38 struct pagelist *pagelist; member 295 pagelistinfo->pagelist, pagelistinfo->dma_addr); in cleanup_pagelistinfo() 310 struct pagelist *pagelist; in create_pagelist() local 330 if (num_pages > (SIZE_MAX - sizeof(struct pagelist) - in create_pagelist() 336 pagelist_size = sizeof(struct pagelist) + in create_pagelist() 345 pagelist = dma_alloc_coherent(g_dev, pagelist_size, &dma_addr, in create_pagelist() 348 vchiq_log_trace(vchiq_arm_log_level, "%s - %pK", __func__, pagelist); in create_pagelist() 350 if (!pagelist) in create_pagelist() 501 struct pagelist *pagelist = pagelistinfo->pagelist; free_pagelist() local [all...] |
H A D | vchiq_pagelist.h | 11 struct pagelist { struct
|
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | acl.c | 166 struct ceph_pagelist *pagelist = NULL; in ceph_pre_init_acls() local 196 pagelist = ceph_pagelist_alloc(GFP_KERNEL); in ceph_pre_init_acls() 197 if (!pagelist) in ceph_pre_init_acls() 200 err = ceph_pagelist_reserve(pagelist, PAGE_SIZE); in ceph_pre_init_acls() 204 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls() 208 err = ceph_pagelist_reserve(pagelist, len + val_size1 + 8); in ceph_pre_init_acls() 211 ceph_pagelist_encode_string(pagelist, XATTR_NAME_POSIX_ACL_ACCESS, in ceph_pre_init_acls() 217 ceph_pagelist_encode_32(pagelist, val_size1); in ceph_pre_init_acls() 218 ceph_pagelist_append(pagelist, tmp_buf, val_size1); in ceph_pre_init_acls() 222 err = ceph_pagelist_reserve(pagelist, le in ceph_pre_init_acls() [all...] |
H A D | xattr.c | 3 #include <linux/ceph/pagelist.h> 961 struct ceph_pagelist *pagelist = NULL; in ceph_sync_setxattr() local 966 /* copy value into pagelist */ in ceph_sync_setxattr() 967 pagelist = ceph_pagelist_alloc(GFP_NOFS); in ceph_sync_setxattr() 968 if (!pagelist) in ceph_sync_setxattr() 971 err = ceph_pagelist_append(pagelist, value, size); in ceph_sync_setxattr() 999 req->r_pagelist = pagelist; in ceph_sync_setxattr() 1000 pagelist = NULL; in ceph_sync_setxattr() 1014 if (pagelist) in ceph_sync_setxattr() 1015 ceph_pagelist_release(pagelist); in ceph_sync_setxattr() 1214 struct ceph_pagelist *pagelist = as_ctx->pagelist; ceph_security_init_secctx() local [all...] |
H A D | mds_client.c | 21 #include <linux/ceph/pagelist.h> 55 struct ceph_pagelist *pagelist; member 2669 struct ceph_pagelist *pagelist = req->r_pagelist; in create_request_message() local 2670 ceph_msg_data_add_pagelist(msg, pagelist); in create_request_message() 2671 msg->hdr.data_len = cpu_to_le32(pagelist->length); in create_request_message() 3627 /* pre-allocate new pagelist */ in send_reconnect_partial() 3643 err = ceph_pagelist_encode_32(recon_state->pagelist, 0); in send_reconnect_partial() 3653 err = ceph_pagelist_encode_8(recon_state->pagelist, 1); in send_reconnect_partial() 3657 page = list_first_entry(&recon_state->pagelist->head, struct page, lru); in send_reconnect_partial() 3671 reply->hdr.data_len = cpu_to_le32(recon_state->pagelist in send_reconnect_partial() 3734 struct ceph_pagelist *pagelist = recon_state->pagelist; reconnect_caps_cb() local 3908 struct ceph_pagelist *pagelist = recon_state->pagelist; encode_snap_realms() local [all...] |
H A D | locks.c | 10 #include <linux/ceph/pagelist.h> 352 * Fills in the passed counter variables, so you can prepare pagelist metadata 458 * Copy the encoded flock and fcntl locks into the pagelist. 464 struct ceph_pagelist *pagelist, in ceph_locks_to_pagelist() 471 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist() 476 err = ceph_pagelist_append(pagelist, flocks, in ceph_locks_to_pagelist() 483 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist() 488 err = ceph_pagelist_append(pagelist, &flocks[num_fcntl_locks], in ceph_locks_to_pagelist() 463 ceph_locks_to_pagelist(struct ceph_filelock *flocks, struct ceph_pagelist *pagelist, int num_fcntl_locks, int num_flock_locks) ceph_locks_to_pagelist() argument
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | acl.c | 172 struct ceph_pagelist *pagelist = NULL; in ceph_pre_init_acls() local 202 pagelist = ceph_pagelist_alloc(GFP_KERNEL); in ceph_pre_init_acls() 203 if (!pagelist) in ceph_pre_init_acls() 206 err = ceph_pagelist_reserve(pagelist, PAGE_SIZE); in ceph_pre_init_acls() 210 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls() 214 err = ceph_pagelist_reserve(pagelist, len + val_size1 + 8); in ceph_pre_init_acls() 217 ceph_pagelist_encode_string(pagelist, XATTR_NAME_POSIX_ACL_ACCESS, in ceph_pre_init_acls() 223 ceph_pagelist_encode_32(pagelist, val_size1); in ceph_pre_init_acls() 224 ceph_pagelist_append(pagelist, tmp_buf, val_size1); in ceph_pre_init_acls() 228 err = ceph_pagelist_reserve(pagelist, le in ceph_pre_init_acls() [all...] |
H A D | xattr.c | 3 #include <linux/ceph/pagelist.h> 1102 struct ceph_pagelist *pagelist = NULL; in ceph_sync_setxattr() local 1107 /* copy value into pagelist */ in ceph_sync_setxattr() 1108 pagelist = ceph_pagelist_alloc(GFP_NOFS); in ceph_sync_setxattr() 1109 if (!pagelist) in ceph_sync_setxattr() 1112 err = ceph_pagelist_append(pagelist, value, size); in ceph_sync_setxattr() 1142 req->r_pagelist = pagelist; in ceph_sync_setxattr() 1143 pagelist = NULL; in ceph_sync_setxattr() 1157 if (pagelist) in ceph_sync_setxattr() 1158 ceph_pagelist_release(pagelist); in ceph_sync_setxattr() 1362 struct ceph_pagelist *pagelist = as_ctx->pagelist; ceph_security_init_secctx() local [all...] |
H A D | mds_client.c | 23 #include <linux/ceph/pagelist.h> 57 struct ceph_pagelist *pagelist; member 3056 struct ceph_pagelist *pagelist = req->r_pagelist; in create_request_message() local 3057 ceph_msg_data_add_pagelist(msg, pagelist); in create_request_message() 3058 msg->hdr.data_len = cpu_to_le32(pagelist->length); in create_request_message() 4193 /* pre-allocate new pagelist */ in send_reconnect_partial() 4209 err = ceph_pagelist_encode_32(recon_state->pagelist, 0); in send_reconnect_partial() 4219 err = ceph_pagelist_encode_8(recon_state->pagelist, 1); in send_reconnect_partial() 4223 page = list_first_entry(&recon_state->pagelist->head, struct page, lru); in send_reconnect_partial() 4237 reply->hdr.data_len = cpu_to_le32(recon_state->pagelist in send_reconnect_partial() 4299 struct ceph_pagelist *pagelist = recon_state->pagelist; reconnect_caps_cb() local 4480 struct ceph_pagelist *pagelist = recon_state->pagelist; encode_snap_realms() local [all...] |
H A D | locks.c | 11 #include <linux/ceph/pagelist.h> 369 * Fills in the passed counter variables, so you can prepare pagelist metadata 475 * Copy the encoded flock and fcntl locks into the pagelist. 481 struct ceph_pagelist *pagelist, in ceph_locks_to_pagelist() 488 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist() 493 err = ceph_pagelist_append(pagelist, flocks, in ceph_locks_to_pagelist() 500 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist() 505 err = ceph_pagelist_append(pagelist, &flocks[num_fcntl_locks], in ceph_locks_to_pagelist() 480 ceph_locks_to_pagelist(struct ceph_filelock *flocks, struct ceph_pagelist *pagelist, int num_fcntl_locks, int num_flock_locks) ceph_locks_to_pagelist() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_scatter.c | 52 page = entry->pagelist[i]; in drm_sg_cleanup() 60 kfree(entry->pagelist); in drm_sg_cleanup() 107 entry->pagelist = kcalloc(pages, sizeof(*entry->pagelist), GFP_KERNEL); in drm_legacy_sg_alloc() 108 if (!entry->pagelist) { in drm_legacy_sg_alloc() 115 kfree(entry->pagelist); in drm_legacy_sg_alloc() 123 kfree(entry->pagelist); in drm_legacy_sg_alloc() 140 entry->pagelist[j] = vmalloc_to_page((void *)i); in drm_legacy_sg_alloc() 141 if (!entry->pagelist[j]) in drm_legacy_sg_alloc() 143 SetPageReserved(entry->pagelist[ in drm_legacy_sg_alloc() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_scatter.c | 52 page = entry->pagelist[i]; in drm_sg_cleanup() 60 kfree(entry->pagelist); in drm_sg_cleanup() 107 entry->pagelist = kcalloc(pages, sizeof(*entry->pagelist), GFP_KERNEL); in drm_legacy_sg_alloc() 108 if (!entry->pagelist) { in drm_legacy_sg_alloc() 115 kfree(entry->pagelist); in drm_legacy_sg_alloc() 123 kfree(entry->pagelist); in drm_legacy_sg_alloc() 140 entry->pagelist[j] = vmalloc_to_page((void *)i); in drm_legacy_sg_alloc() 141 if (!entry->pagelist[j]) in drm_legacy_sg_alloc() 143 SetPageReserved(entry->pagelist[ in drm_legacy_sg_alloc() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | kunit_iov_iter.c | 529 struct page **bpages, *pagelist[8], **pages = pagelist; in iov_kunit_extract_pages_kvec() local 550 for (i = 0; i < ARRAY_SIZE(pagelist); i++) in iov_kunit_extract_pages_kvec() 551 pagelist[i] = (void *)(unsigned long)0xaa55aa55aa55aa55ULL; in iov_kunit_extract_pages_kvec() 554 ARRAY_SIZE(pagelist), 0, &offset0); in iov_kunit_extract_pages_kvec() 567 for (i = 0; i < ARRAY_SIZE(pagelist); i++) { in iov_kunit_extract_pages_kvec() 582 KUNIT_EXPECT_PTR_EQ(test, pagelist[i], p); in iov_kunit_extract_pages_kvec() 609 struct page **bpages, *pagelist[8], **pages = pagelist; in iov_kunit_extract_pages_bvec() local 628 for (i = 0; i < ARRAY_SIZE(pagelist); in iov_kunit_extract_pages_bvec() 688 struct page **bpages, *pagelist[8], **pages = pagelist; iov_kunit_extract_pages_xarray() local [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | vdso.c | 102 struct page **pagelist; in vdso_setup_pages() local 105 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages() 106 if (!pagelist) in vdso_setup_pages() 109 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages() 110 return pagelist; in vdso_setup_pages()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
H A D | fb_defio.c | 108 if (fbdefio->first_io && list_empty(&fbdefio->pagelist)) in fb_deferred_io_mkwrite() 121 /* we loop through the pagelist before adding in order in fb_deferred_io_mkwrite() 122 to keep the pagelist sorted */ in fb_deferred_io_mkwrite() 123 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_mkwrite() 182 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_work() 188 /* driver's callback with pagelist */ in fb_deferred_io_work() 189 fbdefio->deferred_io(info, &fbdefio->pagelist); in fb_deferred_io_work() 192 list_for_each_safe(node, next, &fbdefio->pagelist) { in fb_deferred_io_work() 205 INIT_LIST_HEAD(&fbdefio->pagelist); in fb_deferred_io_init()
|
/kernel/linux/linux-6.6/drivers/staging/vc04_services/interface/vchiq_arm/ |
H A D | vchiq_arm.c | 124 struct pagelist *pagelist; member 188 pagelistinfo->pagelist, pagelistinfo->dma_addr); in cleanup_pagelistinfo() 217 struct pagelist *pagelist; in create_pagelist() local 237 if ((size_t)num_pages > (SIZE_MAX - sizeof(struct pagelist) - in create_pagelist() 243 pagelist_size = sizeof(struct pagelist) + in create_pagelist() 252 pagelist = dma_alloc_coherent(instance->state->dev, pagelist_size, &dma_addr, in create_pagelist() 255 vchiq_log_trace(vchiq_arm_log_level, "%s - %pK", __func__, pagelist); in create_pagelist() 257 if (!pagelist) in create_pagelist() 402 struct pagelist *pagelist = pagelistinfo->pagelist; free_pagelist() local [all...] |
H A D | vchiq_pagelist.h | 11 struct pagelist { struct
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | vdso.c | 240 struct page **pagelist; in vdso_setup_pages() local 243 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages() 244 if (!pagelist) in vdso_setup_pages() 247 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages() 248 return pagelist; in vdso_setup_pages()
|
/kernel/linux/linux-5.10/drivers/xen/ |
H A D | privcmd.c | 106 static int gather_array(struct list_head *pagelist, in gather_array() argument 129 list_add_tail(&page->lru, pagelist); in gather_array() 257 LIST_HEAD(pagelist); in privcmd_ioctl_mmap() 271 rc = gather_array(&pagelist, in privcmd_ioctl_mmap() 275 if (rc || list_empty(&pagelist)) in privcmd_ioctl_mmap() 281 struct page *page = list_first_entry(&pagelist, in privcmd_ioctl_mmap() 298 &pagelist, in privcmd_ioctl_mmap() 306 free_page_list(&pagelist); in privcmd_ioctl_mmap() 451 LIST_HEAD(pagelist); in privcmd_ioctl_mmap_batch() 482 ret = gather_array(&pagelist, in privcmd_ioctl_mmap_batch() [all...] |
/kernel/linux/linux-6.6/net/ceph/ |
H A D | messenger.c | 26 #include <linux/ceph/pagelist.h> 892 * For a pagelist, a piece is whatever remains to be consumed in the 900 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_cursor_init() local 905 pagelist = data->pagelist; in ceph_msg_data_pagelist_cursor_init() 906 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init() 909 return; /* pagelist can be assigned but empty */ in ceph_msg_data_pagelist_cursor_init() 911 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init() 912 page = list_first_entry(&pagelist->head, struct page, lru); in ceph_msg_data_pagelist_cursor_init() 914 cursor->resid = min(length, pagelist in ceph_msg_data_pagelist_cursor_init() 924 struct ceph_pagelist *pagelist; ceph_msg_data_pagelist_next() local 944 struct ceph_pagelist *pagelist; ceph_msg_data_pagelist_advance() local 1902 ceph_msg_data_add_pagelist(struct ceph_msg *msg, struct ceph_pagelist *pagelist) ceph_msg_data_add_pagelist() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | vdso.c | 323 struct page **pagelist; in vdso_setup_pages() local 326 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages() 327 if (!pagelist) in vdso_setup_pages() 331 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages() 333 return pagelist; in vdso_setup_pages()
|
/kernel/linux/linux-5.10/mm/ |
H A D | mempolicy.c | 432 static int migrate_page_add(struct page *page, struct list_head *pagelist, 436 struct list_head *pagelist; member 496 migrate_page_add(page, qp->pagelist, flags)) { in __releases() 510 * and move them to the pagelist if they do. 569 if (migrate_page_add(page, qp->pagelist, flags)) in queue_pages_pte_range() 627 if (isolate_hugetlb(page, qp->pagelist) && in queue_pages_hugetlb() 731 * @nodes and @flags,) it's isolated and queued to the pagelist which is 745 struct list_head *pagelist) in queue_pages_range() 749 .pagelist = pagelist, in queue_pages_range() 743 queue_pages_range(struct mm_struct *mm, unsigned long start, unsigned long end, nodemask_t *nodes, unsigned long flags, struct list_head *pagelist) queue_pages_range() argument 1035 migrate_page_add(struct page *page, struct list_head *pagelist, unsigned long flags) migrate_page_add() argument 1246 migrate_page_add(struct page *page, struct list_head *pagelist, unsigned long flags) migrate_page_add() argument [all...] |
/kernel/linux/linux-6.6/drivers/xen/ |
H A D | privcmd.c | 111 static int gather_array(struct list_head *pagelist, in gather_array() argument 134 list_add_tail(&page->lru, pagelist); in gather_array() 262 LIST_HEAD(pagelist); in privcmd_ioctl_mmap() 276 rc = gather_array(&pagelist, in privcmd_ioctl_mmap() 280 if (rc || list_empty(&pagelist)) in privcmd_ioctl_mmap() 286 struct page *page = list_first_entry(&pagelist, in privcmd_ioctl_mmap() 303 &pagelist, in privcmd_ioctl_mmap() 311 free_page_list(&pagelist); in privcmd_ioctl_mmap() 456 LIST_HEAD(pagelist); in privcmd_ioctl_mmap_batch() 487 ret = gather_array(&pagelist, in privcmd_ioctl_mmap_batch() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gart.c | 303 * @pagelist: pages to bind 312 int pages, struct page **pagelist, dma_addr_t *dma_addr, in amdgpu_gart_bind() 329 adev->gart.pages[p] = pagelist ? pagelist[i] : NULL; in amdgpu_gart_bind() 311 amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset, int pages, struct page **pagelist, dma_addr_t *dma_addr, uint64_t flags) amdgpu_gart_bind() argument
|
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_legacy.h | 113 unsigned long *pagelist; /**< page list */ member 131 struct page **pagelist; member
|