Home
last modified time | relevance | path

Searched refs:kaddr (Results 1 – 25 of 61) sorted by relevance

123

/fs/nilfs2/
Dcpfile.c80 void *kaddr, in nilfs_cpfile_block_add_valid_checkpoints() argument
83 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_add_valid_checkpoints()
94 void *kaddr, in nilfs_cpfile_block_sub_valid_checkpoints() argument
97 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_sub_valid_checkpoints()
109 void *kaddr) in nilfs_cpfile_block_get_header() argument
111 return kaddr + bh_offset(bh); in nilfs_cpfile_block_get_header()
117 void *kaddr) in nilfs_cpfile_block_get_checkpoint() argument
119 return kaddr + bh_offset(bh) + nilfs_cpfile_get_offset(cpfile, cno) * in nilfs_cpfile_block_get_checkpoint()
125 void *kaddr) in nilfs_cpfile_block_init() argument
127 struct nilfs_checkpoint *cp = kaddr + bh_offset(bh); in nilfs_cpfile_block_init()
[all …]
Ddat.c88 void *kaddr; in nilfs_dat_commit_alloc() local
90 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_alloc()
92 req->pr_entry_bh, kaddr); in nilfs_dat_commit_alloc()
96 kunmap_atomic(kaddr); in nilfs_dat_commit_alloc()
112 void *kaddr; in nilfs_dat_commit_free() local
114 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_free()
116 req->pr_entry_bh, kaddr); in nilfs_dat_commit_free()
120 kunmap_atomic(kaddr); in nilfs_dat_commit_free()
139 void *kaddr; in nilfs_dat_commit_start() local
141 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_start()
[all …]
Dsufile.c84 struct buffer_head *bh, void *kaddr) in nilfs_sufile_block_get_segment_usage() argument
86 return kaddr + bh_offset(bh) + in nilfs_sufile_block_get_segment_usage()
117 void *kaddr; in nilfs_sufile_mod_counter() local
119 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_mod_counter()
120 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter()
123 kunmap_atomic(kaddr); in nilfs_sufile_mod_counter()
319 void *kaddr; in nilfs_sufile_alloc() local
328 kaddr = kmap_atomic(header_bh->b_page); in nilfs_sufile_alloc()
329 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
331 kunmap_atomic(kaddr); in nilfs_sufile_alloc()
[all …]
Ddir.c130 char *kaddr = page_address(page); in nilfs_check_page() local
144 p = (struct nilfs_dir_entry *)(kaddr + offs); in nilfs_check_page()
188 p = (struct nilfs_dir_entry *)(kaddr + offs); in nilfs_check_page()
285 char *kaddr, *limit; in nilfs_readdir() local
294 kaddr = page_address(page); in nilfs_readdir()
295 de = (struct nilfs_dir_entry *)(kaddr + offset); in nilfs_readdir()
296 limit = kaddr + nilfs_last_byte(inode, n) - in nilfs_readdir()
357 char *kaddr; in nilfs_find_entry() local
361 kaddr = page_address(page); in nilfs_find_entry()
362 de = (struct nilfs_dir_entry *)kaddr; in nilfs_find_entry()
[all …]
Difile.c112 void *kaddr; in nilfs_ifile_delete_inode() local
127 kaddr = kmap_atomic(req.pr_entry_bh->b_page); in nilfs_ifile_delete_inode()
129 req.pr_entry_bh, kaddr); in nilfs_ifile_delete_inode()
131 kunmap_atomic(kaddr); in nilfs_ifile_delete_inode()
/fs/btrfs/
Dstruct-funcs.c61 char *kaddr; \
67 if (token && token->kaddr && token->offset <= offset && \
70 kaddr = token->kaddr; \
71 p = kaddr + part_offset - token->offset; \
76 &kaddr, &map_start, &map_len); \
83 p = kaddr + part_offset - map_start; \
86 token->kaddr = kaddr; \
101 char *kaddr; \
106 if (token && token->kaddr && token->offset <= offset && \
109 kaddr = token->kaddr; \
[all …]
Dzlib.c317 char *kaddr; in zlib_decompress() local
374 kaddr = kmap_atomic(dest_page); in zlib_decompress()
375 memcpy(kaddr + pg_offset, workspace->buf + buf_offset, bytes); in zlib_decompress()
376 kunmap_atomic(kaddr); in zlib_decompress()
398 kaddr = kmap_atomic(dest_page); in zlib_decompress()
399 memset(kaddr + pg_offset, 0, destlen - pg_offset); in zlib_decompress()
400 kunmap_atomic(kaddr); in zlib_decompress()
Dzstd.c355 char *kaddr; in zstd_decompress() local
410 kaddr = kmap_atomic(dest_page); in zstd_decompress()
411 memcpy(kaddr + pg_offset, out_buf.dst + buf_offset, bytes); in zstd_decompress()
412 kunmap_atomic(kaddr); in zstd_decompress()
419 kaddr = kmap_atomic(dest_page); in zstd_decompress()
420 memset(kaddr + pg_offset, 0, destlen - pg_offset); in zstd_decompress()
421 kunmap_atomic(kaddr); in zstd_decompress()
Dlzo.c387 char *kaddr; in lzo_decompress() local
418 kaddr = kmap_atomic(dest_page); in lzo_decompress()
419 memcpy(kaddr, workspace->buf + start_byte, bytes); in lzo_decompress()
427 memset(kaddr+bytes, 0, destlen-bytes); in lzo_decompress()
428 kunmap_atomic(kaddr); in lzo_decompress()
/fs/ext2/
Ddir.c119 char *kaddr = page_address(page); in ext2_check_page() local
134 p = (ext2_dirent *)(kaddr + offs); in ext2_check_page()
186 p = (ext2_dirent *)(kaddr + offs); in ext2_check_page()
305 char *kaddr, *limit; in ext2_readdir() local
316 kaddr = page_address(page); in ext2_readdir()
319 offset = ext2_validate_entry(kaddr, offset, chunk_mask); in ext2_readdir()
325 de = (ext2_dirent *)(kaddr+offset); in ext2_readdir()
326 limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); in ext2_readdir()
386 char *kaddr; in ext2_find_entry() local
389 kaddr = page_address(page); in ext2_find_entry()
[all …]
/fs/exofs/
Ddir.c86 char *kaddr = page_address(page); in exofs_check_page() local
101 p = (struct exofs_dir_entry *)(kaddr + offs); in exofs_check_page()
146 p = (struct exofs_dir_entry *)(kaddr + offs); in exofs_check_page()
250 char *kaddr, *limit; in exofs_readdir() local
260 kaddr = page_address(page); in exofs_readdir()
263 offset = exofs_validate_entry(kaddr, offset, in exofs_readdir()
270 de = (struct exofs_dir_entry *)(kaddr + offset); in exofs_readdir()
271 limit = kaddr + exofs_last_byte(inode, n) - in exofs_readdir()
325 char *kaddr; in exofs_find_entry() local
328 kaddr = page_address(page); in exofs_find_entry()
[all …]
/fs/sysv/
Ddir.c81 char *kaddr, *limit; in sysv_readdir() local
87 kaddr = (char *)page_address(page); in sysv_readdir()
88 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir()
89 limit = kaddr + PAGE_SIZE - SYSV_DIRSIZE; in sysv_readdir()
145 char *kaddr; in sysv_find_entry() local
148 kaddr = (char*)page_address(page); in sysv_find_entry()
149 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry()
150 kaddr += PAGE_SIZE - SYSV_DIRSIZE; in sysv_find_entry()
151 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry()
182 char *kaddr; in sysv_add_link() local
[all …]
/fs/minix/
Ddir.c100 char *p, *kaddr, *limit; in minix_readdir() local
105 kaddr = (char *)page_address(page); in minix_readdir()
106 p = kaddr+offset; in minix_readdir()
107 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir()
168 char *kaddr, *limit; in minix_find_entry() local
174 kaddr = (char*)page_address(page); in minix_find_entry()
175 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry()
176 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_find_entry()
210 char *kaddr, *p; in minix_add_link() local
231 kaddr = (char*)page_address(page); in minix_add_link()
[all …]
/fs/ufs/
Ddir.c113 char *kaddr = page_address(page); in ufs_check_page() local
128 p = (struct ufs_dir_entry *)(kaddr + offs); in ufs_check_page()
178 p = (struct ufs_dir_entry *)(kaddr + offs); in ufs_check_page()
276 char *kaddr; in ufs_find_entry() local
279 kaddr = page_address(page); in ufs_find_entry()
280 de = (struct ufs_dir_entry *) kaddr; in ufs_find_entry()
281 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry()
282 while ((char *) de <= kaddr) { in ufs_find_entry()
317 char *kaddr; in ufs_add_link() local
336 kaddr = page_address(page); in ufs_add_link()
[all …]
/fs/ntfs/
Dbitmap.c54 u8 *kaddr; in __ntfs_bitmap_set_bits_in_run() local
82 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run()
92 u8 *byte = kaddr + pos; in __ntfs_bitmap_set_bits_in_run()
112 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
130 kaddr = page_address(page); in __ntfs_bitmap_set_bits_in_run()
136 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
150 byte = kaddr + len; in __ntfs_bitmap_set_bits_in_run()
Ddir.c96 u8 *kaddr; in ntfs_lookup_inode_by_name() local
330 kaddr = (u8*)page_address(page); in ntfs_lookup_inode_by_name()
333 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_lookup_inode_by_name()
336 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) { in ntfs_lookup_inode_by_name()
369 if (index_end > kaddr + PAGE_SIZE) { in ntfs_lookup_inode_by_name()
650 u8 *kaddr;
808 kaddr = (u8*)page_address(page);
811 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn <<
814 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) {
847 if (index_end > kaddr + PAGE_SIZE) {
[all …]
Daops.c91 void *kaddr; in ntfs_end_buffer_async_read() local
97 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read()
98 memset(kaddr + bh_offset(bh) + ofs, 0, in ntfs_end_buffer_async_read()
101 kunmap_atomic(kaddr); in ntfs_end_buffer_async_read()
141 u8 *kaddr; in ntfs_end_buffer_async_read() local
150 kaddr = kmap_atomic(page); in ntfs_end_buffer_async_read()
152 post_read_mst_fixup((NTFS_RECORD*)(kaddr + in ntfs_end_buffer_async_read()
154 kunmap_atomic(kaddr); in ntfs_end_buffer_async_read()
745 u8 *kaddr; in ntfs_write_block() local
749 kaddr = kmap_atomic(page); in ntfs_write_block()
[all …]
Dindex.c131 u8 *index_end, *kaddr; in ntfs_index_lookup() local
287 kaddr = (u8*)page_address(page); in ntfs_index_lookup()
290 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_index_lookup()
293 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_SIZE) { in ntfs_index_lookup()
326 if (index_end > kaddr + PAGE_SIZE) { in ntfs_index_lookup()
Dlogfile.c492 u8 *kaddr = NULL; in ntfs_check_logfile() local
554 kaddr = (u8*)page_address(page) + (pos & ~PAGE_MASK); in ntfs_check_logfile()
560 if (!ntfs_is_empty_recordp((le32*)kaddr)) in ntfs_check_logfile()
568 if (ntfs_is_rcrd_recordp((le32*)kaddr)) in ntfs_check_logfile()
571 if (!ntfs_is_rstr_recordp((le32*)kaddr) && in ntfs_check_logfile()
572 !ntfs_is_chkd_recordp((le32*)kaddr)) { in ntfs_check_logfile()
583 (RESTART_PAGE_HEADER*)kaddr, pos, in ntfs_check_logfile()
/fs/udf/
Dfile.c44 char *kaddr; in __udf_adinicb_readpage() local
52 kaddr = kmap_atomic(page); in __udf_adinicb_readpage()
53 memcpy(kaddr, iinfo->i_ext.i_data + iinfo->i_lenEAttr, isize); in __udf_adinicb_readpage()
54 memset(kaddr + isize, 0, PAGE_SIZE - isize); in __udf_adinicb_readpage()
57 kunmap_atomic(kaddr); in __udf_adinicb_readpage()
73 char *kaddr; in udf_adinicb_writepage() local
78 kaddr = kmap_atomic(page); in udf_adinicb_writepage()
79 memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr, kaddr, in udf_adinicb_writepage()
82 kunmap_atomic(kaddr); in udf_adinicb_writepage()
/fs/freevxfs/
Dvxfs_lookup.c93 char *kaddr; in vxfs_find_entry() local
99 kaddr = (char *)page_address(pp); in vxfs_find_entry()
107 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry()
113 de = (struct vxfs_direct *)(kaddr + pg_ofs); in vxfs_find_entry()
246 char *kaddr; in vxfs_readdir() local
254 kaddr = (char *)page_address(pp); in vxfs_readdir()
262 (kaddr + (pos & ~PAGE_MASK)); in vxfs_readdir()
268 de = (struct vxfs_direct *)(kaddr + pg_ofs); in vxfs_readdir()
Dvxfs_immed.c70 caddr_t kaddr; in vxfs_immed_readpage() local
72 kaddr = kmap(pp); in vxfs_immed_readpage()
73 memcpy(kaddr, vip->vii_immed.vi_immed + offset, PAGE_SIZE); in vxfs_immed_readpage()
/fs/ocfs2/
Dsymlink.c64 void *kaddr; in ocfs2_fast_symlink_readpage() local
76 kaddr = kmap_atomic(page); in ocfs2_fast_symlink_readpage()
77 memcpy(kaddr, link, len + 1); in ocfs2_fast_symlink_readpage()
78 kunmap_atomic(kaddr); in ocfs2_fast_symlink_readpage()
Daops.c65 void *kaddr; in ocfs2_symlink_get_block() local
112 kaddr = kmap_atomic(bh_result->b_page); in ocfs2_symlink_get_block()
113 if (!kaddr) { in ocfs2_symlink_get_block()
117 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block()
120 kunmap_atomic(kaddr); in ocfs2_symlink_get_block()
238 void *kaddr; in ocfs2_read_inline_data() local
259 kaddr = kmap_atomic(page); in ocfs2_read_inline_data()
261 memcpy(kaddr, di->id2.i_data.id_data, size); in ocfs2_read_inline_data()
263 memset(kaddr + size, 0, PAGE_SIZE - size); in ocfs2_read_inline_data()
265 kunmap_atomic(kaddr); in ocfs2_read_inline_data()
[all …]
/fs/
Ddax.c496 void *vto, *kaddr; in copy_user_dax() local
507 rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), &kaddr, &pfn); in copy_user_dax()
513 copy_user_page(vto, (void __force *)kaddr, vaddr, to); in copy_user_dax()
661 void *entry2, **slot, *kaddr; in dax_writeback_one() local
727 ret = dax_direct_access(dax_dev, pgoff, size / PAGE_SIZE, &kaddr, &pfn); in dax_writeback_one()
737 dax_flush(dax_dev, kaddr, size); in dax_writeback_one()
829 void *ret, *kaddr; in dax_insert_mapping() local
839 rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), &kaddr, &pfn); in dax_insert_mapping()
917 void *kaddr; in __dax_zero_page_range() local
925 rc = dax_direct_access(dax_dev, pgoff, 1, &kaddr, in __dax_zero_page_range()
[all …]

123