Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_2835_arm.c37 struct pagelist *pagelist; member
344 pagelistinfo->pagelist, pagelistinfo->dma_addr); in cleanup_pagelistinfo()
358 struct pagelist *pagelist; in create_pagelist() local
375 if (num_pages > (SIZE_MAX - sizeof(struct pagelist) - in create_pagelist()
381 pagelist_size = sizeof(struct pagelist) + in create_pagelist()
390 pagelist = dma_alloc_coherent(g_dev, pagelist_size, &dma_addr, in create_pagelist()
393 vchiq_log_trace(vchiq_arm_log_level, "%s - %pK", __func__, pagelist); in create_pagelist()
395 if (!pagelist) in create_pagelist()
398 addrs = pagelist->addrs; in create_pagelist()
404 pagelist->length = count; in create_pagelist()
[all …]
Dvchiq_pagelist.h11 struct pagelist { struct
/Linux-v5.4/fs/ceph/
Dacl.c166 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, len + val_size2 + 8); in ceph_pre_init_acls()
[all …]
Dxattr.c952 struct ceph_pagelist *pagelist = NULL; in ceph_sync_setxattr() local
958 pagelist = ceph_pagelist_alloc(GFP_NOFS); in ceph_sync_setxattr()
959 if (!pagelist) in ceph_sync_setxattr()
962 err = ceph_pagelist_append(pagelist, value, size); in ceph_sync_setxattr()
990 req->r_pagelist = pagelist; in ceph_sync_setxattr()
991 pagelist = NULL; in ceph_sync_setxattr()
1005 if (pagelist) in ceph_sync_setxattr()
1006 ceph_pagelist_release(pagelist); in ceph_sync_setxattr()
1204 struct ceph_pagelist *pagelist = as_ctx->pagelist; in ceph_security_init_secctx() local
1219 if (!pagelist) { in ceph_security_init_secctx()
[all …]
Dmds_client.c53 struct ceph_pagelist *pagelist; member
2395 struct ceph_pagelist *pagelist = req->r_pagelist; in create_request_message() local
2396 ceph_msg_data_add_pagelist(msg, pagelist); in create_request_message()
2397 msg->hdr.data_len = cpu_to_le32(pagelist->length); in create_request_message()
3281 err = ceph_pagelist_encode_32(recon_state->pagelist, 0); in send_reconnect_partial()
3291 err = ceph_pagelist_encode_8(recon_state->pagelist, 1); in send_reconnect_partial()
3295 page = list_first_entry(&recon_state->pagelist->head, struct page, lru); in send_reconnect_partial()
3309 reply->hdr.data_len = cpu_to_le32(recon_state->pagelist->length); in send_reconnect_partial()
3310 ceph_msg_data_add_pagelist(reply, recon_state->pagelist); in send_reconnect_partial()
3313 ceph_pagelist_release(recon_state->pagelist); in send_reconnect_partial()
[all …]
Dlocks.c441 struct ceph_pagelist *pagelist, in ceph_locks_to_pagelist() argument
448 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
453 err = ceph_pagelist_append(pagelist, flocks, in ceph_locks_to_pagelist()
460 err = ceph_pagelist_append(pagelist, &nlocks, sizeof(nlocks)); in ceph_locks_to_pagelist()
465 err = ceph_pagelist_append(pagelist, &flocks[num_fcntl_locks], in ceph_locks_to_pagelist()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_scatter.c61 page = entry->pagelist[i]; in drm_sg_cleanup()
69 kfree(entry->pagelist); in drm_sg_cleanup()
113 entry->pagelist = kcalloc(pages, sizeof(*entry->pagelist), GFP_KERNEL); in drm_legacy_sg_alloc()
114 if (!entry->pagelist) { in drm_legacy_sg_alloc()
121 kfree(entry->pagelist); in drm_legacy_sg_alloc()
129 kfree(entry->pagelist); in drm_legacy_sg_alloc()
146 entry->pagelist[j] = vmalloc_to_page((void *)i); in drm_legacy_sg_alloc()
147 if (!entry->pagelist[j]) in drm_legacy_sg_alloc()
149 SetPageReserved(entry->pagelist[j]); in drm_legacy_sg_alloc()
166 tmp = page_address(entry->pagelist[i]); in drm_legacy_sg_alloc()
[all …]
Ddrm_vm.c319 if (!dma->pagelist) in drm_vm_dma_fault()
325 page = virt_to_page((void *)dma->pagelist[page_nr]); in drm_vm_dma_fault()
356 if (!entry->pagelist) in drm_vm_sg_fault()
362 page = entry->pagelist[page_offset]; in drm_vm_sg_fault()
/Linux-v5.4/drivers/video/fbdev/core/
Dfb_defio.c112 if (fbdefio->first_io && list_empty(&fbdefio->pagelist)) in fb_deferred_io_mkwrite()
127 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_mkwrite()
187 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_work()
194 fbdefio->deferred_io(info, &fbdefio->pagelist); in fb_deferred_io_work()
197 list_for_each_safe(node, next, &fbdefio->pagelist) { in fb_deferred_io_work()
211 INIT_LIST_HEAD(&fbdefio->pagelist); in fb_deferred_io_init()
/Linux-v5.4/drivers/xen/
Dprivcmd.c109 static int gather_array(struct list_head *pagelist, in gather_array() argument
132 list_add_tail(&page->lru, pagelist); in gather_array()
260 LIST_HEAD(pagelist); in privcmd_ioctl_mmap()
274 rc = gather_array(&pagelist, in privcmd_ioctl_mmap()
278 if (rc || list_empty(&pagelist)) in privcmd_ioctl_mmap()
284 struct page *page = list_first_entry(&pagelist, in privcmd_ioctl_mmap()
301 &pagelist, in privcmd_ioctl_mmap()
309 free_page_list(&pagelist); in privcmd_ioctl_mmap()
454 LIST_HEAD(pagelist); in privcmd_ioctl_mmap_batch()
485 ret = gather_array(&pagelist, m.num, sizeof(xen_pfn_t), m.arr); in privcmd_ioctl_mmap_batch()
[all …]
/Linux-v5.4/mm/
Dmempolicy.c406 static int migrate_page_add(struct page *page, struct list_head *pagelist,
410 struct list_head *pagelist; member
467 migrate_page_add(page, qp->pagelist, flags)) { in queue_pages_pmd()
540 if (migrate_page_add(page, qp->pagelist, flags)) in queue_pages_pte_range()
575 isolate_huge_page(page, qp->pagelist); in queue_pages_hugetlb()
682 struct list_head *pagelist) in queue_pages_range() argument
685 .pagelist = pagelist, in queue_pages_range()
971 static int migrate_page_add(struct page *page, struct list_head *pagelist, in migrate_page_add() argument
980 list_add_tail(&head->lru, pagelist); in migrate_page_add()
1028 LIST_HEAD(pagelist); in migrate_to_node()
[all …]
Dmemory-failure.c1688 LIST_HEAD(pagelist); in soft_offline_huge_page()
1703 ret = isolate_huge_page(hpage, &pagelist); in soft_offline_huge_page()
1714 ret = migrate_pages(&pagelist, new_page, NULL, MPOL_MF_MOVE_ALL, in soft_offline_huge_page()
1719 if (!list_empty(&pagelist)) in soft_offline_huge_page()
1720 putback_movable_pages(&pagelist); in soft_offline_huge_page()
1794 LIST_HEAD(pagelist); in __soft_offline_page()
1803 list_add(&page->lru, &pagelist); in __soft_offline_page()
1804 ret = migrate_pages(&pagelist, new_page, NULL, MPOL_MF_MOVE_ALL, in __soft_offline_page()
1807 if (!list_empty(&pagelist)) in __soft_offline_page()
1808 putback_movable_pages(&pagelist); in __soft_offline_page()
Dmigrate.c1502 struct list_head *pagelist, int node) in do_move_pages_to_node() argument
1506 if (list_empty(pagelist)) in do_move_pages_to_node()
1509 err = migrate_pages(pagelist, alloc_new_node_page, NULL, node, in do_move_pages_to_node()
1512 putback_movable_pages(pagelist); in do_move_pages_to_node()
1524 int node, struct list_head *pagelist, bool migrate_all) in add_page_for_migration() argument
1559 isolate_huge_page(page, pagelist); in add_page_for_migration()
1571 list_add_tail(&head->lru, pagelist); in add_page_for_migration()
1599 LIST_HEAD(pagelist); in do_pages_move()
1631 err = do_move_pages_to_node(mm, &pagelist, current_node); in do_pages_move()
1646 &pagelist, flags & MPOL_MF_MOVE_ALL); in do_pages_move()
[all …]
/Linux-v5.4/include/drm/
Ddrm_legacy.h111 unsigned long *pagelist; /**< page list */ member
129 struct page **pagelist; member
Ddrm_fb_helper.h237 struct list_head *pagelist);
372 struct list_head *pagelist) in drm_fb_helper_deferred_io() argument
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gart.c311 int pages, struct page **pagelist, dma_addr_t *dma_addr, in amdgpu_gart_bind() argument
328 adev->gart.pages[p] = pagelist ? pagelist[i] : NULL; in amdgpu_gart_bind()
Damdgpu_gart.h70 int pages, struct page **pagelist,
/Linux-v5.4/net/ceph/
Dmessenger.c1009 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_cursor_init() local
1014 pagelist = data->pagelist; in ceph_msg_data_pagelist_cursor_init()
1015 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
1020 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
1021 page = list_first_entry(&pagelist->head, struct page, lru); in ceph_msg_data_pagelist_cursor_init()
1023 cursor->resid = min(length, pagelist->length); in ceph_msg_data_pagelist_cursor_init()
1034 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_next() local
1038 pagelist = data->pagelist; in ceph_msg_data_pagelist_next()
1039 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
1042 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-v5.4/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-v5.4/drivers/gpu/drm/radeon/
Dradeon_gart.c290 int pages, struct page **pagelist, dma_addr_t *dma_addr, in radeon_gart_bind() argument
306 rdev->gart.pages[p] = pagelist[i]; in radeon_gart_bind()
/Linux-v5.4/include/linux/ceph/
Dmessenger.h182 struct ceph_pagelist *pagelist; member
362 struct ceph_pagelist *pagelist);
Dosd_client.h73 struct ceph_pagelist *pagelist; member
431 struct ceph_pagelist *pagelist);
448 struct ceph_pagelist *pagelist);
/Linux-v5.4/fs/nfs/
DMakefile10 io.o direct.o pagelist.o read.o symlink.o unlink.o \

12