Home
last modified time | relevance | path

Searched refs:page (Results 1 – 8 of 8) sorted by relevance

/lib/
Diov_iter.c156 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument
178 kaddr = kmap_atomic(page); in copy_page_to_iter_iovec()
209 kaddr = kmap(page); in copy_page_to_iter_iovec()
226 kunmap(page); in copy_page_to_iter_iovec()
240 static size_t copy_page_from_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_from_iter_iovec() argument
262 kaddr = kmap_atomic(page); in copy_page_from_iter_iovec()
293 kaddr = kmap(page); in copy_page_from_iter_iovec()
310 kunmap(page); in copy_page_from_iter_iovec()
352 pipe->bufs[idx].page, in sanity()
367 static size_t copy_page_to_iter_pipe(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_pipe() argument
[all …]
Dscatterlist.c389 int __sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages, in __sg_alloc_table_from_pages()
464 int sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pages, in sg_alloc_table_from_pages()
491 struct page *page; in sgl_alloc_order() local
515 page = alloc_pages(gfp, order); in sgl_alloc_order()
516 if (!page) { in sgl_alloc_order()
521 sg_set_page(sg, page, elem_len, 0); in sgl_alloc_order()
563 struct page *page; in sgl_free_n_order() local
569 page = sg_page(sg); in sgl_free_n_order()
570 if (page) in sgl_free_n_order()
571 __free_pages(page, order); in sgl_free_n_order()
[all …]
Dtest_meminit.c65 struct page *page; in do_alloc_pages_order() local
69 page = alloc_pages(GFP_KERNEL, order); in do_alloc_pages_order()
70 buf = page_address(page); in do_alloc_pages_order()
72 __free_pages(page, order); in do_alloc_pages_order()
74 page = alloc_pages(GFP_KERNEL, order); in do_alloc_pages_order()
75 buf = page_address(page); in do_alloc_pages_order()
79 __free_pages(page, order); in do_alloc_pages_order()
Dstackdepot.c225 struct page *page = NULL; in stack_depot_save() local
263 page = alloc_pages(alloc_flags, STACK_ALLOC_ORDER); in stack_depot_save()
264 if (page) in stack_depot_save()
265 prealloc = page_address(page); in stack_depot_save()
Dkfifo.c301 struct page *page; in setup_sgl_buf() local
310 page = virt_to_page(buf); in setup_sgl_buf()
315 struct page *npage; in setup_sgl_buf()
320 if (page_to_phys(page) != page_to_phys(npage) - l) { in setup_sgl_buf()
321 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf()
325 page = npage; in setup_sgl_buf()
330 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
Dtest_kasan.c347 struct page *page; in kfree_via_page() local
357 page = virt_to_page(ptr); in kfree_via_page()
359 kfree(page_address(page) + offset); in kfree_via_page()
Dtest_bpf.c6503 struct page *page; in generate_test_data() local
6524 page = alloc_page(GFP_KERNEL); in generate_test_data()
6526 if (!page) in generate_test_data()
6529 ptr = kmap(page); in generate_test_data()
6533 kunmap(page); in generate_test_data()
6534 skb_add_rx_frag(skb, 0, page, 0, MAX_DATA, MAX_DATA); in generate_test_data()
6540 __free_page(page); in generate_test_data()
6807 struct page *page[2]; in build_test_skb() local
6811 page[i] = alloc_page(GFP_KERNEL); in build_test_skb()
6812 if (!page[i]) { in build_test_skb()
[all …]
DKconfig.debug657 bool "Debug page-flags operations"
660 Enables extra validation on page flags operations.
671 Enable some costly sanity checks in virtual to page code. This can
2053 tristate "Test heap/page initialization"
2055 Test if the kernel is zero-initializing heap and page allocations.