Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
1329 struct ceph_pagelist *pagelist = as_ctx->pagelist; in ceph_security_init_secctx() local
1344 if (!pagelist) { in ceph_security_init_secctx()
[all …]
Dmds_client.c56 struct ceph_pagelist *pagelist; member
2675 struct ceph_pagelist *pagelist = req->r_pagelist; in create_request_message() local
2676 ceph_msg_data_add_pagelist(msg, pagelist); in create_request_message()
2677 msg->hdr.data_len = cpu_to_le32(pagelist->length); in create_request_message()
3803 err = ceph_pagelist_encode_32(recon_state->pagelist, 0); in send_reconnect_partial()
3813 err = ceph_pagelist_encode_8(recon_state->pagelist, 1); in send_reconnect_partial()
3817 page = list_first_entry(&recon_state->pagelist->head, struct page, lru); in send_reconnect_partial()
3831 reply->hdr.data_len = cpu_to_le32(recon_state->pagelist->length); in send_reconnect_partial()
3832 ceph_msg_data_add_pagelist(reply, recon_state->pagelist); in send_reconnect_partial()
3835 ceph_pagelist_release(recon_state->pagelist); in send_reconnect_partial()
[all …]
Dlocks.c464 struct ceph_pagelist *pagelist, in ceph_locks_to_pagelist() argument
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()
Ddir.c891 if (as_ctx.pagelist) { in ceph_mknod()
892 req->r_pagelist = as_ctx.pagelist; in ceph_mknod()
893 as_ctx.pagelist = NULL; in ceph_mknod()
958 if (as_ctx.pagelist) { in ceph_symlink()
959 req->r_pagelist = as_ctx.pagelist; in ceph_symlink()
960 as_ctx.pagelist = NULL; in ceph_symlink()
1027 if (as_ctx.pagelist) { in ceph_mkdir()
1028 req->r_pagelist = as_ctx.pagelist; in ceph_mkdir()
1029 as_ctx.pagelist = NULL; in ceph_mkdir()
/linux-6.1.9/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()
/linux-6.1.9/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-6.1.9/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_arm.c124 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()
260 addrs = pagelist->addrs; in create_pagelist()
266 pagelist->length = count; in create_pagelist()
[all …]
Dvchiq_pagelist.h11 struct pagelist { struct
/linux-6.1.9/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-6.1.9/arch/s390/kernel/
Dvdso.c262 struct page **pagelist; in vdso_setup_pages() local
265 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages()
266 if (!pagelist) in vdso_setup_pages()
269 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages()
270 return pagelist; in vdso_setup_pages()
/linux-6.1.9/net/ceph/
Dmessenger.c895 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_cursor_init() local
900 pagelist = data->pagelist; in ceph_msg_data_pagelist_cursor_init()
901 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
906 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
907 page = list_first_entry(&pagelist->head, struct page, lru); in ceph_msg_data_pagelist_cursor_init()
909 cursor->resid = min(length, pagelist->length); in ceph_msg_data_pagelist_cursor_init()
919 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_next() local
923 pagelist = data->pagelist; in ceph_msg_data_pagelist_next()
924 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
927 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-6.1.9/arch/powerpc/kernel/
Dvdso.c347 struct page **pagelist; in vdso_setup_pages() local
350 pagelist = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL); in vdso_setup_pages()
351 if (!pagelist) in vdso_setup_pages()
355 pagelist[i] = virt_to_page(start + i * PAGE_SIZE); in vdso_setup_pages()
357 return pagelist; in vdso_setup_pages()
/linux-6.1.9/mm/
Dmempolicy.c417 static int migrate_page_add(struct page *page, struct list_head *pagelist,
421 struct list_head *pagelist; member
479 migrate_page_add(page, qp->pagelist, flags)) { in queue_pages_pmd()
547 if (migrate_page_add(page, qp->pagelist, flags)) in queue_pages_pte_range()
604 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()
1029 static int migrate_page_add(struct page *page, struct list_head *pagelist, in migrate_page_add() argument
1038 list_add_tail(&head->lru, pagelist); in migrate_page_add()
1066 LIST_HEAD(pagelist); in migrate_to_node()
[all …]
Dmigrate.c1661 struct list_head *pagelist, int node) in do_move_pages_to_node() argument
1669 err = migrate_pages(pagelist, alloc_migration_target, NULL, in do_move_pages_to_node()
1672 putback_movable_pages(pagelist); in do_move_pages_to_node()
1686 int node, struct list_head *pagelist, bool migrate_all) in add_page_for_migration() argument
1722 err = isolate_hugetlb(page, pagelist); in add_page_for_migration()
1735 list_add_tail(&head->lru, pagelist); in add_page_for_migration()
1753 struct list_head *pagelist, int __user *status, in move_pages_and_store_status() argument
1758 if (list_empty(pagelist)) in move_pages_and_store_status()
1761 err = do_move_pages_to_node(mm, pagelist, node); in move_pages_and_store_status()
1789 LIST_HEAD(pagelist); in do_pages_move()
[all …]
Dmemory-failure.c2410 static bool isolate_page(struct page *page, struct list_head *pagelist) in isolate_page() argument
2415 isolated = !isolate_hugetlb(page, pagelist); in isolate_page()
2426 list_add(&page->lru, pagelist); in isolate_page()
2456 LIST_HEAD(pagelist); in soft_offline_in_use_page()
2494 if (isolate_page(hpage, &pagelist)) { in soft_offline_in_use_page()
2495 ret = migrate_pages(&pagelist, alloc_migration_target, NULL, in soft_offline_in_use_page()
2503 if (!list_empty(&pagelist)) in soft_offline_in_use_page()
2504 putback_movable_pages(&pagelist); in soft_offline_in_use_page()
/linux-6.1.9/drivers/hwtracing/ptt/
Dhisi_ptt.c677 struct page **pagelist; in hisi_ptt_pmu_setup_aux() local
693 pagelist = kcalloc(nr_pages, sizeof(*pagelist), GFP_KERNEL); in hisi_ptt_pmu_setup_aux()
694 if (!pagelist) in hisi_ptt_pmu_setup_aux()
698 pagelist[i] = virt_to_page(pages[i]); in hisi_ptt_pmu_setup_aux()
700 buf->base = vmap(pagelist, nr_pages, VM_MAP, PAGE_KERNEL); in hisi_ptt_pmu_setup_aux()
702 kfree(pagelist); in hisi_ptt_pmu_setup_aux()
710 kfree(pagelist); in hisi_ptt_pmu_setup_aux()
/linux-6.1.9/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-6.1.9/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-6.1.9/include/drm/
Ddrm_legacy.h128 unsigned long *pagelist; /**< page list */ member
146 struct page **pagelist; member
/linux-6.1.9/include/linux/ceph/
Dosd_client.h74 struct ceph_pagelist *pagelist; member
439 struct ceph_pagelist *pagelist);
456 struct ceph_pagelist *pagelist);
/linux-6.1.9/fs/nfs/
DMakefile10 io.o direct.o pagelist.o read.o symlink.o unlink.o \

12