/lib/ |
D | iov_iter.c | 151 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument 173 kaddr = kmap_atomic(page); in copy_page_to_iter_iovec() 204 kaddr = kmap(page); in copy_page_to_iter_iovec() 221 kunmap(page); in copy_page_to_iter_iovec() 235 static size_t copy_page_from_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_from_iter_iovec() argument 257 kaddr = kmap_atomic(page); in copy_page_from_iter_iovec() 288 kaddr = kmap(page); in copy_page_from_iter_iovec() 305 kunmap(page); in copy_page_from_iter_iovec() 347 pipe->bufs[idx].page, in sanity() 362 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 …]
|
D | scatterlist.c | 393 struct page **pages, unsigned int n_pages, in sg_alloc_table_from_pages() 454 struct page *page; in sgl_alloc_order() local 478 page = alloc_pages(gfp, order); in sgl_alloc_order() 479 if (!page) { in sgl_alloc_order() 484 sg_set_page(sg, page, elem_len, 0); in sgl_alloc_order() 518 struct page *page; in sgl_free_order() local 521 page = sg_page(sg); in sgl_free_order() 522 if (page) in sgl_free_order() 523 __free_pages(page, order); in sgl_free_order() 689 miter->page = sg_page_iter_page(&miter->piter); in sg_miter_next() [all …]
|
D | dma-virt.c | 31 static dma_addr_t dma_virt_map_page(struct device *dev, struct page *page, in dma_virt_map_page() argument 36 return (uintptr_t)(page_address(page) + offset); in dma_virt_map_page()
|
D | dma-noop.c | 33 static dma_addr_t dma_noop_map_page(struct device *dev, struct page *page, in dma_noop_map_page() argument 38 return page_to_phys(page) + offset - PFN_PHYS(dev->dma_pfn_offset); in dma_noop_map_page()
|
D | stackdepot.c | 215 struct page *page = NULL; in depot_save_stack() local 251 page = alloc_pages(alloc_flags, STACK_ALLOC_ORDER); in depot_save_stack() 252 if (page) in depot_save_stack() 253 prealloc = page_address(page); in depot_save_stack()
|
D | kfifo.c | 315 struct page *page; in setup_sgl_buf() local 324 page = virt_to_page(buf); in setup_sgl_buf() 329 struct page *npage; in setup_sgl_buf() 334 if (page_to_phys(page) != page_to_phys(npage) - l) { in setup_sgl_buf() 335 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf() 339 page = npage; in setup_sgl_buf() 344 sg_set_page(sgl, page, len, off); in setup_sgl_buf()
|
D | dma-debug.c | 579 void debug_dma_assert_idle(struct page *page) in debug_dma_assert_idle() argument 591 if (!page) in debug_dma_assert_idle() 594 cln = (phys_addr_t) page_to_pfn(page) << CACHELINE_PER_PAGE_SHIFT; in debug_dma_assert_idle() 1178 struct page *page, size_t offset) in check_for_stack() argument 1185 if (PageHighMem(page)) in check_for_stack() 1187 addr = page_address(page) + offset; in check_for_stack() 1195 if (page != stack_vm_area->pages[i]) in check_for_stack() 1297 void debug_dma_map_page(struct device *dev, struct page *page, size_t offset, in debug_dma_map_page() argument 1315 entry->pfn = page_to_pfn(page); in debug_dma_map_page() 1325 check_for_stack(dev, page, offset); in debug_dma_map_page() [all …]
|
D | swiotlb.c | 834 dma_addr_t swiotlb_map_page(struct device *dev, struct page *page, in swiotlb_map_page() argument 839 phys_addr_t map, phys = page_to_phys(page) + offset; in swiotlb_map_page()
|
D | Kconfig.debug | 265 bool "Track page owner" 272 This keeps track of what call chain is the owner of a page, may 633 bool "Debug page-flags operations" 636 Enables extra validation on page flags operations. 647 Enable some costly sanity checks in virtual to page code. This can 1171 such as page locks or completions can use the lock correctness 1629 This also attempts to catch cases where a page owned by DMA is 1631 example, this enables cow_user_page() to check that the source page is
|
D | test_bpf.c | 6127 struct page *page; in generate_test_data() local 6148 page = alloc_page(GFP_KERNEL); in generate_test_data() 6150 if (!page) in generate_test_data() 6153 ptr = kmap(page); in generate_test_data() 6157 kunmap(page); in generate_test_data() 6158 skb_add_rx_frag(skb, 0, page, 0, MAX_DATA, MAX_DATA); in generate_test_data() 6164 __free_page(page); in generate_test_data()
|