Home
last modified time | relevance | path

Searched refs:page_list (Results 1 – 25 of 82) sorted by relevance

1234

/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c117 if (array->page_list[p].page) in mthca_array_get()
128 if (!array->page_list[p].page) in mthca_array_set()
131 if (!array->page_list[p].page) in mthca_array_set()
135 ++array->page_list[p].used; in mthca_array_set()
160 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init()
162 if (!array->page_list) in mthca_array_init()
180 kfree(array->page_list); in mthca_array_cleanup()
237 if (!buf->page_list) in mthca_buf_alloc()
244 buf->page_list[i].buf = in mthca_buf_alloc()
293 buf->page_list[i].buf, in mthca_buf_free()
[all …]
H A Dmthca_eq.c482 eq->page_list = kmalloc_array(npages, sizeof(*eq->page_list), in mthca_create_eq()
484 if (!eq->page_list) in mthca_create_eq()
488 eq->page_list[i].buf = NULL; in mthca_create_eq()
502 if (!eq->page_list[i].buf) in mthca_create_eq()
508 clear_page(eq->page_list[i].buf); in mthca_create_eq()
572 if (eq->page_list[i].buf) in mthca_create_eq()
574 eq->page_list[i].buf, in mthca_create_eq()
575 dma_unmap_addr(&eq->page_list[i], in mthca_create_eq()
581 kfree(eq->page_list); in mthca_create_eq()
621 eq->page_list[i].buf, in mthca_free_eq()
[all …]
/openbmc/linux/drivers/xen/
H A Dunpopulated-alloc.c16 static struct page *page_list; variable
131 pg->zone_device_data = page_list; in fill_list()
132 page_list = pg; in fill_list()
179 struct page *pg = page_list; in xen_alloc_unpopulated_pages()
182 page_list = pg->zone_device_data; in xen_alloc_unpopulated_pages()
193 pages[j]->zone_device_data = page_list; in xen_alloc_unpopulated_pages()
194 page_list = pages[j]; in xen_alloc_unpopulated_pages()
225 pages[i]->zone_device_data = page_list; in xen_free_unpopulated_pages()
226 page_list = pages[i]; in xen_free_unpopulated_pages()
/openbmc/linux/arch/powerpc/kexec/
H A Dcore_32.c32 unsigned long page_list; in default_machine_kexec() local
43 page_list = image->head; in default_machine_kexec()
59 relocate_new_kernel(page_list, reboot_code_buffer_phys, image->start); in default_machine_kexec()
63 (*rnk)(page_list, reboot_code_buffer_phys, image->start); in default_machine_kexec()
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c52 (void *) &((struct usnic_uiom_chunk *) 0)->page_list[0]))
74 for_each_sg(chunk->page_list, sg, chunk->nents, i) { in usnic_uiom_put_pages()
89 struct page **page_list; in usnic_uiom_get_pages() local
118 if (!page_list) in usnic_uiom_get_pages()
143 gup_flags, page_list); in usnic_uiom_get_pages()
152 chunk = kmalloc(struct_size(chunk, page_list, in usnic_uiom_get_pages()
161 sg_init_table(chunk->page_list, chunk->nents); in usnic_uiom_get_pages()
162 for_each_sg(chunk->page_list, sg, chunk->nents, i) { in usnic_uiom_get_pages()
163 sg_set_page(sg, page_list[i + off], in usnic_uiom_get_pages()
186 free_page((unsigned long) page_list); in usnic_uiom_get_pages()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Dumem.c146 struct page **page_list; in ib_umem_get() local
185 page_list = (struct page **) __get_free_page(GFP_KERNEL); in ib_umem_get()
186 if (!page_list) { in ib_umem_get()
217 gup_flags, page_list); in ib_umem_get()
226 &umem->sgt_append, page_list, pinned, 0, in ib_umem_get()
230 unpin_user_pages_dirty_lock(page_list, pinned, 0); in ib_umem_get()
248 free_page((unsigned long) page_list); in ib_umem_get()
/openbmc/linux/arch/x86/kernel/
H A Dmachine_kexec_32.c163 unsigned long page_list[PAGES_NR]; in machine_kexec() local
201 page_list[PA_CONTROL_PAGE] = __pa(control_page); in machine_kexec()
202 page_list[VA_CONTROL_PAGE] = (unsigned long)control_page; in machine_kexec()
203 page_list[PA_PGD] = __pa(image->arch.pgd); in machine_kexec()
206 page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page) in machine_kexec()
229 (unsigned long)page_list, in machine_kexec()
H A Dmachine_kexec_64.c300 unsigned long page_list[PAGES_NR]; in machine_kexec() local
339 page_list[PA_CONTROL_PAGE] = virt_to_phys(control_page); in machine_kexec()
340 page_list[VA_CONTROL_PAGE] = (unsigned long)control_page; in machine_kexec()
341 page_list[PA_TABLE_PAGE] = in machine_kexec()
345 page_list[PA_SWAP_PAGE] = (page_to_pfn(image->swap_page) in machine_kexec()
368 (unsigned long)page_list, in machine_kexec()
/openbmc/u-boot/drivers/tee/optee/
H A Dsupplicant.c17 void **page_list) in cmd_shm_alloc() argument
49 *page_list = pl; in cmd_shm_alloc()
73 void **page_list) in optee_suppl_cmd() argument
79 cmd_shm_alloc(dev, arg, page_list); in optee_suppl_cmd()
H A Dcore.c85 void *page_list; in optee_alloc_and_init_page_list() local
105 page_list = memalign(page_size, list_size); in optee_alloc_and_init_page_list()
106 if (!page_list) in optee_alloc_and_init_page_list()
109 pages_data = page_list; in optee_alloc_and_init_page_list()
127 return page_list; in optee_alloc_and_init_page_list()
248 void *page_list) in handle_rpc() argument
276 optee_suppl_cmd(dev, shm, page_list); in handle_rpc()
299 void *page_list = NULL; in do_call_with_arg() local
308 free(page_list); in do_call_with_arg()
309 page_list = NULL; in do_call_with_arg()
[all …]
/openbmc/linux/include/linux/
H A Ddm-io.h25 struct page_list { struct
26 struct page_list *next; argument
45 struct page_list *pl; argument
/openbmc/linux/mm/
H A Ddmapool.c49 struct list_head page_list; member
64 struct list_head page_list; member
124 list_for_each_entry(page, &pool->page_list, page_list) { in pool_find_page()
262 INIT_LIST_HEAD(&retval->page_list); in dma_pool_create()
330 list_add(&page->page_list, &pool->page_list); in pool_initialise_page()
382 list_for_each_entry_safe(page, tmp, &pool->page_list, page_list) { in dma_pool_destroy()
386 list_del(&page->page_list); in dma_pool_destroy()
/openbmc/linux/drivers/comedi/
H A Dcomedi_buf.c28 if (bm->page_list) { in comedi_buf_map_kref_release()
34 buf = &bm->page_list[0]; in comedi_buf_map_kref_release()
40 buf = &bm->page_list[i]; in comedi_buf_map_kref_release()
45 vfree(bm->page_list); in comedi_buf_map_kref_release()
92 bm->page_list = vzalloc(sizeof(*buf) * n_pages); in comedi_buf_map_alloc()
93 if (!bm->page_list) in comedi_buf_map_alloc()
111 buf = &bm->page_list[i]; in comedi_buf_map_alloc()
119 buf = &bm->page_list[i]; in comedi_buf_map_alloc()
169 buf = &bm->page_list[0]; in __comedi_buf_alloc()
177 buf = &bm->page_list[i]; in __comedi_buf_alloc()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c693 int start_index, int npages, u64 *page_list) in mlx4_write_mtt_chunk() argument
719 int start_index, int npages, u64 *page_list) in __mlx4_write_mtt() argument
739 page_list += chunk; in __mlx4_write_mtt()
747 int start_index, int npages, u64 *page_list) in mlx4_write_mtt() argument
770 inbox[i + 2] = cpu_to_be64(page_list[i] | in mlx4_write_mtt()
780 page_list += chunk; in mlx4_write_mtt()
793 u64 *page_list; in mlx4_buf_write_mtt() local
797 page_list = kcalloc(buf->npages, sizeof(*page_list), GFP_KERNEL); in mlx4_buf_write_mtt()
798 if (!page_list) in mlx4_buf_write_mtt()
805 page_list[i] = buf->page_list[i].map; in mlx4_buf_write_mtt()
[all …]
H A Dalloc.c619 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
621 if (!buf->page_list) in mlx4_buf_alloc()
625 buf->page_list[i].buf = in mlx4_buf_alloc()
628 if (!buf->page_list[i].buf) in mlx4_buf_alloc()
631 buf->page_list[i].map = t; in mlx4_buf_alloc()
653 if (buf->page_list[i].buf) in mlx4_buf_free()
656 buf->page_list[i].buf, in mlx4_buf_free()
657 buf->page_list[i].map); in mlx4_buf_free()
658 kfree(buf->page_list); in mlx4_buf_free()
H A Deq.c990 eq->page_list = kmalloc_array(npages, sizeof(*eq->page_list), in mlx4_create_eq()
992 if (!eq->page_list) in mlx4_create_eq()
1012 if (!eq->page_list[i].buf) in mlx4_create_eq()
1016 eq->page_list[i].map = t; in mlx4_create_eq()
1073 if (eq->page_list[i].buf) in mlx4_create_eq()
1075 eq->page_list[i].buf, in mlx4_create_eq()
1076 eq->page_list[i].map); in mlx4_create_eq()
1081 kfree(eq->page_list); in mlx4_create_eq()
1109 eq->page_list[i].buf, in mlx4_free_eq()
1110 eq->page_list[i].map); in mlx4_free_eq()
[all …]
/openbmc/linux/drivers/misc/genwqe/
H A Dcard_utils.c243 struct page **page_list, int num_pages, in genwqe_map_pages() argument
254 daddr = dma_map_page(&pci_dev->dev, page_list[i], in genwqe_map_pages()
568 m->page_list = kcalloc(m->nr_pages, in genwqe_user_vmap()
571 if (!m->page_list) { in genwqe_user_vmap()
584 m->page_list); /* ptrs to pages */ in genwqe_user_vmap()
605 kfree(m->page_list); in genwqe_user_vmap()
606 m->page_list = NULL; in genwqe_user_vmap()
633 if (m->page_list) { in genwqe_user_vunmap()
634 unpin_user_pages_dirty_lock(m->page_list, m->nr_pages, in genwqe_user_vunmap()
636 kfree(m->page_list); in genwqe_user_vunmap()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-kcopyd.c61 struct page_list *pages;
96 static struct page_list zero_page_list;
218 static struct page_list *alloc_pl(gfp_t gfp) in alloc_pl()
220 struct page_list *pl; in alloc_pl()
235 static void free_pl(struct page_list *pl) in free_pl()
247 struct page_list *next; in kcopyd_put_pages()
267 struct page_list *pl; in kcopyd_get_pages()
296 static void drop_pages(struct page_list *pl) in drop_pages()
298 struct page_list *next; in drop_pages()
313 struct page_list *pl = NULL, *next; in client_reserve_pages()
[all …]
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.h65 struct list_head page_list; member
97 .page_list = LIST_HEAD_INIT((_name).page_list), \
/openbmc/linux/arch/sh/kernel/
H A Dmachine_kexec.c71 unsigned long page_list; in machine_kexec() local
101 page_list = image->head; in machine_kexec()
118 (*rnk)(page_list, reboot_code_buffer, in machine_kexec()
/openbmc/linux/arch/arm/kernel/
H A Dmachine_kexec.c166 unsigned long page_list, reboot_entry_phys; in machine_kexec() local
179 page_list = image->head & PAGE_MASK; in machine_kexec()
190 data->kexec_indirection_page = page_list; in machine_kexec()
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_mr.c96 XA_STATE(xas, &mr->page_list, 0); in rxe_mr_fill_pages_from_sgt()
137 xa_init(&mr->page_list); in rxe_mr_init_user()
161 XA_STATE(xas, &mr->page_list, 0); in rxe_mr_alloc()
165 xa_init(&mr->page_list); in rxe_mr_alloc()
223 err = xa_err(xa_store(&mr->page_list, mr->nbuf, page, GFP_KERNEL)); in rxe_set_page()
255 page = xa_load(&mr->page_list, index); in rxe_mr_copy_xarray()
449 page = xa_load(&mr->page_list, index); in rxe_flush_pmem_iova()
498 page = xa_load(&mr->page_list, index); in rxe_mr_do_atomic_op()
556 page = xa_load(&mr->page_list, index); in rxe_mr_do_atomic_write()
730 xa_destroy(&mr->page_list); in rxe_mr_cleanup()
/openbmc/linux/Documentation/admin-guide/device-mapper/
H A Ddm-io.rst25 struct page_list {
26 struct page_list *next;
31 struct page_list *pl, unsigned int offset,
34 struct page_list *pl, unsigned int offset,
/openbmc/linux/drivers/vfio/pci/mlx5/
H A Dmain.c70 struct page **page_list; in mlx5vf_add_migration_pages() local
75 to_fill = min_t(unsigned int, npages, PAGE_SIZE / sizeof(*page_list)); in mlx5vf_add_migration_pages()
76 page_list = kvzalloc(to_fill * sizeof(*page_list), GFP_KERNEL_ACCOUNT); in mlx5vf_add_migration_pages()
77 if (!page_list) in mlx5vf_add_migration_pages()
82 page_list); in mlx5vf_add_migration_pages()
89 &buf->table, page_list, filled, 0, in mlx5vf_add_migration_pages()
97 memset(page_list, 0, filled * sizeof(*page_list)); in mlx5vf_add_migration_pages()
99 PAGE_SIZE / sizeof(*page_list)); in mlx5vf_add_migration_pages()
102 kvfree(page_list); in mlx5vf_add_migration_pages()
106 kvfree(page_list); in mlx5vf_add_migration_pages()
/openbmc/linux/include/uapi/linux/
H A Dvbox_vmmdev_types.h238 } page_list; member
261 } page_list; member

1234