Home
last modified time | relevance | path

Searched refs:pagelist (Results 1 – 25 of 34) sorted by relevance

12

/linux-5.19.10/fs/ceph/
Dacl.c171 struct ceph_pagelist *pagelist = NULL; in ceph_pre_init_acls() local
201 pagelist = ceph_pagelist_alloc(GFP_KERNEL); in ceph_pre_init_acls()
202 if (!pagelist) in ceph_pre_init_acls()
205 err = ceph_pagelist_reserve(pagelist, PAGE_SIZE); in ceph_pre_init_acls()
209 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls()
213 err = ceph_pagelist_reserve(pagelist, len + val_size1 + 8); in ceph_pre_init_acls()
216 ceph_pagelist_encode_string(pagelist, XATTR_NAME_POSIX_ACL_ACCESS, in ceph_pre_init_acls()
222 ceph_pagelist_encode_32(pagelist, val_size1); in ceph_pre_init_acls()
223 ceph_pagelist_append(pagelist, tmp_buf, val_size1); in ceph_pre_init_acls()
227 err = ceph_pagelist_reserve(pagelist, len + val_size2 + 8); in ceph_pre_init_acls()
[all …]
Dxattr.c1069 struct ceph_pagelist *pagelist = NULL; in ceph_sync_setxattr() local
1075 pagelist = ceph_pagelist_alloc(GFP_NOFS); in ceph_sync_setxattr()
1076 if (!pagelist) in ceph_sync_setxattr()
1079 err = ceph_pagelist_append(pagelist, value, size); in ceph_sync_setxattr()
1109 req->r_pagelist = pagelist; in ceph_sync_setxattr()
1110 pagelist = NULL; in ceph_sync_setxattr()
1124 if (pagelist) in ceph_sync_setxattr()
1125 ceph_pagelist_release(pagelist); in ceph_sync_setxattr()
1325 struct ceph_pagelist *pagelist = as_ctx->pagelist; in ceph_security_init_secctx() local
1340 if (!pagelist) { in ceph_security_init_secctx()
[all …]
Dmds_client.c56 struct ceph_pagelist *pagelist; member
2601 struct ceph_pagelist *pagelist = req->r_pagelist; in create_request_message() local
2602 ceph_msg_data_add_pagelist(msg, pagelist); in create_request_message()
2603 msg->hdr.data_len = cpu_to_le32(pagelist->length); in create_request_message()
3646 err = ceph_pagelist_encode_32(recon_state->pagelist, 0); in send_reconnect_partial()
3656 err = ceph_pagelist_encode_8(recon_state->pagelist, 1); in send_reconnect_partial()
3660 page = list_first_entry(&recon_state->pagelist->head, struct page, lru); in send_reconnect_partial()
3674 reply->hdr.data_len = cpu_to_le32(recon_state->pagelist->length); in send_reconnect_partial()
3675 ceph_msg_data_add_pagelist(reply, recon_state->pagelist); in send_reconnect_partial()
3678 ceph_pagelist_release(recon_state->pagelist); in send_reconnect_partial()
[all …]
Dlocks.c468 struct ceph_pagelist *pagelist, in ceph_locks_to_pagelist() argument
475 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
480 err = ceph_pagelist_append(pagelist, flocks, in ceph_locks_to_pagelist()
487 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
492 err = ceph_pagelist_append(pagelist, &flocks[num_fcntl_locks], in ceph_locks_to_pagelist()
Ddir.c887 if (as_ctx.pagelist) { in ceph_mknod()
888 req->r_pagelist = as_ctx.pagelist; in ceph_mknod()
889 as_ctx.pagelist = NULL; in ceph_mknod()
950 if (as_ctx.pagelist) { in ceph_symlink()
951 req->r_pagelist = as_ctx.pagelist; in ceph_symlink()
952 as_ctx.pagelist = NULL; in ceph_symlink()
1014 if (as_ctx.pagelist) { in ceph_mkdir()
1015 req->r_pagelist = as_ctx.pagelist; in ceph_mkdir()
1016 as_ctx.pagelist = NULL; in ceph_mkdir()
/linux-5.19.10/drivers/gpu/drm/
Ddrm_scatter.c52 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[j]); in drm_legacy_sg_alloc()
160 tmp = page_address(entry->pagelist[i]); in drm_legacy_sg_alloc()
[all …]
Ddrm_vm.c311 if (!dma->pagelist) in drm_vm_dma_fault()
317 page = virt_to_page((void *)dma->pagelist[page_nr]); in drm_vm_dma_fault()
348 if (!entry->pagelist) in drm_vm_sg_fault()
354 page = entry->pagelist[page_offset]; in drm_vm_sg_fault()
Ddrm_dma.c123 kfree(dma->pagelist); in drm_legacy_dma_takedown()
/linux-5.19.10/arch/parisc/kernel/
Dvdso.c102 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()
/linux-5.19.10/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_arm.c124 struct pagelist *pagelist; member
189 pagelistinfo->pagelist, pagelistinfo->dma_addr); in cleanup_pagelistinfo()
218 struct pagelist *pagelist; in create_pagelist() local
238 if ((size_t)num_pages > (SIZE_MAX - sizeof(struct pagelist) - in create_pagelist()
244 pagelist_size = sizeof(struct pagelist) + in create_pagelist()
253 pagelist = dma_alloc_coherent(g_dev, pagelist_size, &dma_addr, in create_pagelist()
256 vchiq_log_trace(vchiq_arm_log_level, "%s - %pK", __func__, pagelist); in create_pagelist()
258 if (!pagelist) in create_pagelist()
261 addrs = pagelist->addrs; in create_pagelist()
267 pagelist->length = count; in create_pagelist()
[all …]
Dvchiq_pagelist.h11 struct pagelist { struct
/linux-5.19.10/drivers/xen/
Dprivcmd.c106 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, m.num, sizeof(xen_pfn_t), m.arr); in privcmd_ioctl_mmap_batch()
[all …]
/linux-5.19.10/arch/s390/kernel/
Dvdso.c261 struct page **pagelist; in vdso_setup_pages() local
264 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages()
265 if (!pagelist) in vdso_setup_pages()
268 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages()
269 return pagelist; in vdso_setup_pages()
/linux-5.19.10/net/ceph/
Dmessenger.c914 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_cursor_init() local
919 pagelist = data->pagelist; in ceph_msg_data_pagelist_cursor_init()
920 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
925 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
926 page = list_first_entry(&pagelist->head, struct page, lru); in ceph_msg_data_pagelist_cursor_init()
928 cursor->resid = min(length, pagelist->length); in ceph_msg_data_pagelist_cursor_init()
939 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_next() local
943 pagelist = data->pagelist; in ceph_msg_data_pagelist_next()
944 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
947 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
[all …]
DMakefile7 libceph-y := ceph_common.o messenger.o msgpool.o buffer.o pagelist.o \
Dosd_client.c148 struct ceph_pagelist *pagelist) in ceph_osd_data_pagelist_init() argument
151 osd_data->pagelist = pagelist; in ceph_osd_data_pagelist_init()
217 unsigned int which, struct ceph_pagelist *pagelist) in osd_req_op_extent_osd_data_pagelist() argument
222 ceph_osd_data_pagelist_init(osd_data, pagelist); in osd_req_op_extent_osd_data_pagelist()
269 unsigned int which, struct ceph_pagelist *pagelist) in osd_req_op_cls_request_info_pagelist() argument
274 ceph_osd_data_pagelist_init(osd_data, pagelist); in osd_req_op_cls_request_info_pagelist()
279 unsigned int which, struct ceph_pagelist *pagelist) in osd_req_op_cls_request_data_pagelist() argument
284 ceph_osd_data_pagelist_init(osd_data, pagelist); in osd_req_op_cls_request_data_pagelist()
285 osd_req->r_ops[which].cls.indata_len += pagelist->length; in osd_req_op_cls_request_data_pagelist()
286 osd_req->r_ops[which].indata_len += pagelist->length; in osd_req_op_cls_request_data_pagelist()
[all …]
/linux-5.19.10/arch/powerpc/kernel/
Dvdso.c354 struct page **pagelist; in vdso_setup_pages() local
357 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages()
358 if (!pagelist) in vdso_setup_pages()
362 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages()
364 return pagelist; in vdso_setup_pages()
/linux-5.19.10/mm/
Dmempolicy.c416 static int migrate_page_add(struct page *page, struct list_head *pagelist,
420 struct list_head *pagelist; member
479 migrate_page_add(page, qp->pagelist, flags)) { in queue_pages_pmd()
548 if (migrate_page_add(page, qp->pagelist, flags)) in queue_pages_pte_range()
605 if (isolate_hugetlb(page, qp->pagelist) && in queue_pages_hugetlb()
729 struct list_head *pagelist) in queue_pages_range() argument
733 .pagelist = pagelist, in queue_pages_range()
1016 static int migrate_page_add(struct page *page, struct list_head *pagelist, in migrate_page_add() argument
1025 list_add_tail(&head->lru, pagelist); in migrate_page_add()
1052 LIST_HEAD(pagelist); in migrate_to_node()
[all …]
Dmigrate.c1593 struct list_head *pagelist, int node) in do_move_pages_to_node() argument
1601 err = migrate_pages(pagelist, alloc_migration_target, NULL, in do_move_pages_to_node()
1604 putback_movable_pages(pagelist); in do_move_pages_to_node()
1618 int node, struct list_head *pagelist, bool migrate_all) in add_page_for_migration() argument
1651 err = isolate_hugetlb(page, pagelist); in add_page_for_migration()
1664 list_add_tail(&head->lru, pagelist); in add_page_for_migration()
1682 struct list_head *pagelist, int __user *status, in move_pages_and_store_status() argument
1687 if (list_empty(pagelist)) in move_pages_and_store_status()
1690 err = do_move_pages_to_node(mm, pagelist, node); in move_pages_and_store_status()
1718 LIST_HEAD(pagelist); in do_pages_move()
[all …]
Dmemory-failure.c2175 static bool isolate_page(struct page *page, struct list_head *pagelist) in isolate_page() argument
2181 isolated = !isolate_hugetlb(page, pagelist); in isolate_page()
2189 list_add(&page->lru, pagelist); in isolate_page()
2219 LIST_HEAD(pagelist); in __soft_offline_page()
2249 if (isolate_page(hpage, &pagelist)) { in __soft_offline_page()
2250 ret = migrate_pages(&pagelist, alloc_migration_target, NULL, in __soft_offline_page()
2258 if (!list_empty(&pagelist)) in __soft_offline_page()
2259 putback_movable_pages(&pagelist); in __soft_offline_page()
/linux-5.19.10/drivers/gpu/drm/radeon/
Dradeon_gart.c288 int pages, struct page **pagelist, dma_addr_t *dma_addr, in radeon_gart_bind() argument
304 rdev->gart.pages[p] = pagelist ? pagelist[i] : in radeon_gart_bind()
/linux-5.19.10/Documentation/fb/
Ddeferred_io.rst41 framebuffer at vsync time based on the touched pagelist.
65 struct list_head *pagelist)
68 device. You receive the pagelist which is the list of pages that were written
/linux-5.19.10/include/drm/
Ddrm_legacy.h128 unsigned long *pagelist; /**< page list */ member
146 struct page **pagelist; member
/linux-5.19.10/include/linux/ceph/
Dosd_client.h74 struct ceph_pagelist *pagelist; member
439 struct ceph_pagelist *pagelist);
456 struct ceph_pagelist *pagelist);
/linux-5.19.10/fs/nfs/
DMakefile10 io.o direct.o pagelist.o read.o symlink.o unlink.o \

12