Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_2835_arm.c38 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()
353 addrs = pagelist->addrs; in create_pagelist()
359 pagelist->length = count; in create_pagelist()
[all …]
H A Dvchiq_pagelist.h11 struct pagelist { struct
/OK3568_Linux_fs/kernel/fs/ceph/
H A 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 …]
H A Dxattr.c961 struct ceph_pagelist *pagelist = NULL; in ceph_sync_setxattr() local
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()
1215 struct ceph_pagelist *pagelist = as_ctx->pagelist; in ceph_security_init_secctx() local
1230 if (!pagelist) { in ceph_security_init_secctx()
[all …]
H A Dmds_client.c55 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()
3637 err = ceph_pagelist_encode_32(recon_state->pagelist, 0); in send_reconnect_partial()
3647 err = ceph_pagelist_encode_8(recon_state->pagelist, 1); in send_reconnect_partial()
3651 page = list_first_entry(&recon_state->pagelist->head, struct page, lru); in send_reconnect_partial()
3665 reply->hdr.data_len = cpu_to_le32(recon_state->pagelist->length); in send_reconnect_partial()
3666 ceph_msg_data_add_pagelist(reply, recon_state->pagelist); in send_reconnect_partial()
3669 ceph_pagelist_release(recon_state->pagelist); in send_reconnect_partial()
[all …]
H A 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()
H A Ddir.c873 if (as_ctx.pagelist) { in ceph_mknod()
874 req->r_pagelist = as_ctx.pagelist; in ceph_mknod()
875 as_ctx.pagelist = NULL; in ceph_mknod()
934 if (as_ctx.pagelist) { in ceph_symlink()
935 req->r_pagelist = as_ctx.pagelist; in ceph_symlink()
936 as_ctx.pagelist = NULL; in ceph_symlink()
996 if (as_ctx.pagelist) { in ceph_mkdir()
997 req->r_pagelist = as_ctx.pagelist; in ceph_mkdir()
998 as_ctx.pagelist = NULL; in ceph_mkdir()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A 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 …]
H A Ddrm_vm.c316 if (!dma->pagelist) in drm_vm_dma_fault()
322 page = virt_to_page((void *)dma->pagelist[page_nr]); in drm_vm_dma_fault()
353 if (!entry->pagelist) in drm_vm_sg_fault()
359 page = entry->pagelist[page_offset]; in drm_vm_sg_fault()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/core/
H A 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()
186 list_for_each_entry(cur, &fbdefio->pagelist, lru) { in fb_deferred_io_work()
193 fbdefio->deferred_io(info, &fbdefio->pagelist); in fb_deferred_io_work()
196 list_for_each_safe(node, next, &fbdefio->pagelist) { in fb_deferred_io_work()
209 INIT_LIST_HEAD(&fbdefio->pagelist); in fb_deferred_io_init()
/OK3568_Linux_fs/kernel/drivers/xen/
H A 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 …]
/OK3568_Linux_fs/kernel/mm/
H A Dmempolicy.c435 static int migrate_page_add(struct page *page, struct list_head *pagelist,
439 struct list_head *pagelist; member
499 migrate_page_add(page, qp->pagelist, flags)) { in queue_pages_pmd()
572 if (migrate_page_add(page, qp->pagelist, flags)) in queue_pages_pte_range()
629 if (!isolate_huge_page(page, qp->pagelist) && in queue_pages_hugetlb()
747 struct list_head *pagelist) in queue_pages_range() argument
751 .pagelist = pagelist, in queue_pages_range()
1044 static int migrate_page_add(struct page *page, struct list_head *pagelist, in migrate_page_add() argument
1053 list_add_tail(&head->lru, pagelist); in migrate_page_add()
1080 LIST_HEAD(pagelist); in migrate_to_node()
[all …]
H A Dmigrate.c1585 struct list_head *pagelist, int node) in do_move_pages_to_node() argument
1593 err = migrate_pages(pagelist, alloc_migration_target, NULL, in do_move_pages_to_node()
1596 putback_movable_pages(pagelist); in do_move_pages_to_node()
1610 int node, struct list_head *pagelist, bool migrate_all) in add_page_for_migration() argument
1645 isolate_huge_page(page, pagelist); in add_page_for_migration()
1657 list_add_tail(&head->lru, pagelist); in add_page_for_migration()
1675 struct list_head *pagelist, int __user *status, in move_pages_and_store_status() argument
1680 if (list_empty(pagelist)) in move_pages_and_store_status()
1683 err = do_move_pages_to_node(mm, pagelist, node); in move_pages_and_store_status()
1711 LIST_HEAD(pagelist); in do_pages_move()
[all …]
H A Dmemory-failure.c1760 static bool isolate_page(struct page *page, struct list_head *pagelist) in isolate_page() argument
1766 isolated = isolate_huge_page(page, pagelist); in isolate_page()
1774 list_add(&page->lru, pagelist); in isolate_page()
1804 LIST_HEAD(pagelist); in __soft_offline_page()
1844 if (isolate_page(hpage, &pagelist)) { in __soft_offline_page()
1845 ret = migrate_pages(&pagelist, alloc_migration_target, NULL, in __soft_offline_page()
1853 if (!list_empty(&pagelist)) in __soft_offline_page()
1854 putback_movable_pages(&pagelist); in __soft_offline_page()
/OK3568_Linux_fs/kernel/net/ceph/
H A Dmessenger.c1002 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_cursor_init() local
1007 pagelist = data->pagelist; in ceph_msg_data_pagelist_cursor_init()
1008 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
1013 BUG_ON(list_empty(&pagelist->head)); in ceph_msg_data_pagelist_cursor_init()
1014 page = list_first_entry(&pagelist->head, struct page, lru); in ceph_msg_data_pagelist_cursor_init()
1016 cursor->resid = min(length, pagelist->length); in ceph_msg_data_pagelist_cursor_init()
1027 struct ceph_pagelist *pagelist; in ceph_msg_data_pagelist_next() local
1031 pagelist = data->pagelist; in ceph_msg_data_pagelist_next()
1032 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
1035 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
[all …]
H A DMakefile7 libceph-y := ceph_common.o messenger.o msgpool.o buffer.o pagelist.o \
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gart.c312 int pages, struct page **pagelist, dma_addr_t *dma_addr, in amdgpu_gart_bind() argument
329 adev->gart.pages[p] = pagelist ? pagelist[i] : NULL; in amdgpu_gart_bind()
H A Damdgpu_gart.h70 int pages, struct page **pagelist,
/OK3568_Linux_fs/kernel/Documentation/fb/
H A 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
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_legacy.h113 unsigned long *pagelist; /**< page list */ member
131 struct page **pagelist; member
H A Ddrm_fb_helper.h234 struct list_head *pagelist);
355 struct list_head *pagelist) in drm_fb_helper_deferred_io() argument
/OK3568_Linux_fs/kernel/include/linux/ceph/
H A Dosd_client.h74 struct ceph_pagelist *pagelist; member
439 struct ceph_pagelist *pagelist);
456 struct ceph_pagelist *pagelist);
H A Dmessenger.h183 struct ceph_pagelist *pagelist; member
363 struct ceph_pagelist *pagelist);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_gart.c288 int pages, struct page **pagelist, dma_addr_t *dma_addr, in radeon_gart_bind() argument
304 rdev->gart.pages[p] = pagelist[i]; in radeon_gart_bind()

123