/linux-6.6.21/Documentation/translations/zh_CN/mm/ |
D | highmem.rst | 55 * kmap_local_page()。这个函数是用来要求短期映射的。它可以从任何上下文(包括中断)中调用, 70 kmap_local_page()总是返回一个有效的虚拟地址,并且假定kunmap_local()不会失败。 74 page_address()。然而,使用kmap_local_page() / kunmap_local()总是安全的。 81 kmap(),将页面映射到将被使用的同一线程中,并优先使用kmap_local_page()。 83 嵌套kmap_local_page()和kmap_atomic()映射在一定程度上是允许的(最多到KMAP_TYPE_NR), 85 请参见kmap_local_page() kdocs(包含在 "函数 "部分)。 94 未预期延迟的来源之一。因此用户应该选择kmap_local_page()而不是kmap_atomic()。 111 在64位系统中,调用kmap_local_page()、kmap_atomic()和kmap()没有实际作用,因为64位
|
/linux-6.6.21/include/linux/ |
D | highmem.h | 96 static inline void *kmap_local_page(struct page *page); 204 void *addr = kmap_local_page(page); in clear_user_highpage() 239 void *kaddr = kmap_local_page(page); in clear_highpage() 246 void *kaddr = kmap_local_page(page); in clear_highpage_kasan_tagged() 272 void *kaddr = kmap_local_page(page); in zero_user_segments() 308 vfrom = kmap_local_page(from); in copy_user_highpage() 309 vto = kmap_local_page(to); in copy_user_highpage() 324 vfrom = kmap_local_page(from); in copy_highpage() 325 vto = kmap_local_page(to); in copy_highpage() 347 vfrom = kmap_local_page(from); in copy_mc_user_highpage() [all …]
|
D | highmem-internal.h | 71 static inline void *kmap_local_page(struct page *page) in kmap_local_page() function 183 static inline void *kmap_local_page(struct page *page) in kmap_local_page() function 195 return kmap_local_page(page); in kmap_local_page_prot() 200 return kmap_local_page(pfn_to_page(pfn)); in kmap_local_pfn()
|
/linux-6.6.21/fs/hfsplus/ |
D | bnode.c | 151 dst_ptr = kmap_local_page(*dst_page) + dst; in hfs_bnode_copy() 152 src_ptr = kmap_local_page(*src_page) + src; in hfs_bnode_copy() 196 dst_ptr = kmap_local_page(*dst_page); in hfs_bnode_move() 197 src_ptr = kmap_local_page(*src_page); in hfs_bnode_move() 208 dst_ptr = kmap_local_page(*dst_page); in hfs_bnode_move() 209 src_ptr = kmap_local_page(*src_page); in hfs_bnode_move() 216 dst_ptr = kmap_local_page(*dst_page) + dst; in hfs_bnode_move() 217 src_ptr = kmap_local_page(*src_page) + src; in hfs_bnode_move() 247 dst_ptr = kmap_local_page(*dst_page) + src; in hfs_bnode_move() 248 src_ptr = kmap_local_page(*src_page) + src; in hfs_bnode_move() [all …]
|
D | bitmap.c | 42 pptr = kmap_local_page(page); in hfsplus_block_allocate() 87 curr = pptr = kmap_local_page(page); in hfsplus_block_allocate() 138 pptr = kmap_local_page(page); in hfsplus_block_allocate() 188 pptr = kmap_local_page(page); in hfsplus_block_free() 222 pptr = kmap_local_page(page); in hfsplus_block_free()
|
D | btree.c | 166 head = (struct hfs_btree_header_rec *)(kmap_local_page(page) + in hfs_btree_open() 295 head = (struct hfs_btree_header_rec *)(kmap_local_page(page) + in hfs_btree_write() 398 data = kmap_local_page(*pagep); in hfs_bmap_alloc() 422 data = kmap_local_page(*++pagep); in hfs_bmap_alloc() 444 data = kmap_local_page(*pagep); in hfs_bmap_alloc() 494 data = kmap_local_page(page); in hfs_bmap_free()
|
/linux-6.6.21/Documentation/mm/ |
D | highmem.rst | 54 * kmap_local_page(), kmap_local_folio() - These functions are used to create 78 kmap_local_page(), as well as kmap_local_folio() always returns valid virtual 97 kmap_local_page() or kmap_local_folio(). 99 Nesting kmap_local_page() and kmap_atomic() mappings is allowed to a certain 101 because the map implementation is stack based. See kmap_local_page() kdocs 105 * kmap_atomic(). This function has been deprecated; use kmap_local_page(). 107 NOTE: Conversions to kmap_local_page() must take care to follow the mapping 108 restrictions imposed on kmap_local_page(). Furthermore, the code between 112 both must be made in conjunction with the use of kmap_local_page(). 127 users should prefer kmap_local_page() instead of kmap_atomic(). [all …]
|
/linux-6.6.21/fs/btrfs/ |
D | lzo.c | 161 kaddr = kmap_local_page(cur_page); in copy_compressed_data_to_page() 186 kaddr = kmap_local_page(cur_page); in copy_compressed_data_to_page() 254 data_in = kmap_local_page(page_in); in lzo_compress_pages() 291 sizes_ptr = kmap_local_page(pages[0]); in lzo_compress_pages() 344 kaddr = kmap_local_page(cb->compressed_pages[0]); in lzo_decompress_bio() 380 kaddr = kmap_local_page(cur_page); in lzo_decompress_bio() 474 kaddr = kmap_local_page(dest_page); in lzo_decompress()
|
D | zlib.c | 157 data_in = kmap_local_page(in_page); in zlib_compress_pages() 170 data_in = kmap_local_page(in_page); in zlib_compress_pages() 284 data_in = kmap_local_page(pages_in[page_in_index]); in zlib_decompress_bio() 339 data_in = kmap_local_page(pages_in[page_in_index]); in zlib_decompress_bio()
|
D | zstd.c | 406 workspace->in_buf.src = kmap_local_page(in_page); in zstd_compress_pages() 483 workspace->in_buf.src = kmap_local_page(in_page); in zstd_compress_pages() 562 workspace->in_buf.src = kmap_local_page(pages_in[page_in_index]); in zstd_decompress_bio() 606 workspace->in_buf.src = kmap_local_page(pages_in[page_in_index]); in zstd_decompress_bio()
|
/linux-6.6.21/fs/hfs/ |
D | btree.c | 83 head = (struct hfs_btree_header_rec *)(kmap_local_page(page) + in hfs_btree_open() 174 head = (struct hfs_btree_header_rec *)(kmap_local_page(page) + in hfs_btree_write() 274 data = kmap_local_page(*pagep); in hfs_bmap_alloc() 297 data = kmap_local_page(*++pagep); in hfs_bmap_alloc() 319 data = kmap_local_page(*pagep); in hfs_bmap_alloc() 366 data = kmap_local_page(page); in hfs_bmap_free()
|
/linux-6.6.21/fs/ecryptfs/ |
D | read_write.c | 67 virt = kmap_local_page(page_for_lower); in ecryptfs_write_lower_page_segment() 143 ecryptfs_page_virt = kmap_local_page(ecryptfs_page); in ecryptfs_write() 256 virt = kmap_local_page(page_for_ecryptfs); in ecryptfs_read_lower_page_segment()
|
/linux-6.6.21/fs/erofs/ |
D | decompressor_deflate.c | 113 kin = kmap_local_page(*rq->in); in z_erofs_deflate_decompress() 167 kout = kmap_local_page(rq->out[no]); in z_erofs_deflate_decompress() 186 kin = kmap_local_page(rq->in[ni]); in z_erofs_deflate_decompress() 190 kout = kmap_local_page(rq->out[no]); in z_erofs_deflate_decompress()
|
D | decompressor.c | 176 inpage = kmap_local_page(*in); in z_erofs_lz4_handle_overlap() 217 headpage = kmap_local_page(*rq->in); in z_erofs_lz4_decompress_mem() 293 dst = kmap_local_page(*rq->out); in z_erofs_lz4_decompress() 344 src = kmap_local_page(rq->in[inpages - 1]) + rq->pageofs_in; in z_erofs_transform_plain()
|
/linux-6.6.21/kernel/module/ |
D | decompress.c | 122 s.next_out = kmap_local_page(page); in module_gzip_decompress() 181 xz_buf.out = kmap_local_page(page); in module_xz_decompress() 265 zstd_dec.dst = kmap_local_page(page); in module_zstd_decompress()
|
/linux-6.6.21/fs/xfs/scrub/ |
D | xfile.c | 175 kaddr = kmap_local_page(page); in xfile_pread() 250 kaddr = kmap_local_page(page); in xfile_pwrite() 365 kaddr = kmap_local_page(page); in xfile_get_page()
|
/linux-6.6.21/arch/loongarch/mm/ |
D | init.c | 46 vfrom = kmap_local_page(from); in copy_user_highpage() 47 vto = kmap_local_page(to); in copy_user_highpage()
|
/linux-6.6.21/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 261 va = kmap_local_page(page); in rxe_mr_copy_xarray() 289 va = kmap_local_page(page); in rxe_mr_copy_dma() 456 va = kmap_local_page(page); in rxe_flush_pmem_iova() 508 va = kmap_local_page(page); in rxe_mr_do_atomic_op() 567 va = kmap_local_page(page); in rxe_mr_do_atomic_write()
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/hmm/ |
D | hmm.c | 296 src = (char *)kmap_local_page(bo->pages[idx]) + offset; in load_and_flush_by_kmap() 428 des = (char *)kmap_local_page(bo->pages[idx]); in hmm_store() 499 des = (char *)kmap_local_page(bo->pages[idx]) + offset; in hmm_set()
|
/linux-6.6.21/include/crypto/ |
D | scatterwalk.h | 68 return kmap_local_page(scatterwalk_page(walk)) + in scatterwalk_map()
|
/linux-6.6.21/fs/squashfs/ |
D | file_direct.c | 90 pageaddr = kmap_local_page(page[pages - 1]); in squashfs_readpage_block()
|
D | page_actor.c | 81 return actor->pageaddr = kmap_local_page(actor->page[actor->next_page++]); in handle_next_page()
|
/linux-6.6.21/arch/powerpc/mm/ |
D | cacheflush.c | 218 maddr = kmap_local_page(page) + (addr & ~PAGE_MASK); in flush_icache_user_page()
|
/linux-6.6.21/fs/sysv/ |
D | dir.c | 68 return kmap_local_page(page); in dir_get_page() 271 base = kmap_local_page(page); in sysv_make_empty()
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | uprobes.c | 147 void *kaddr = kmap_local_page(page); in arch_uprobe_copy_ixol()
|