Home
last modified time | relevance | path

Searched refs:block_buf (Results 1 – 25 of 26) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Dbmap.c31 char *block_buf, int bmap_flags,
37 blk_t ind, char *block_buf, in block_ind_bmap() argument
50 retval = io_channel_read_blk(fs->io, ind, 1, block_buf); in block_ind_bmap()
59 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap()
60 return io_channel_write_blk(fs->io, ind, 1, block_buf); in block_ind_bmap()
63 b = ((blk_t *) block_buf)[nr]; in block_ind_bmap()
70 b = nr ? ext2fs_le32_to_cpu(((blk_t *)block_buf)[nr - 1]) : ind; in block_ind_bmap()
72 block_buf + fs->blocksize, &b); in block_ind_bmap()
77 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b); in block_ind_bmap()
79 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap()
[all …]
Dsymlink.c56 char *block_buf = 0; in ext2fs_symlink() local
73 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in ext2fs_symlink()
76 memset(block_buf, 0, fs->blocksize); in ext2fs_symlink()
77 strncpy(block_buf, target, fs->blocksize); in ext2fs_symlink()
119 retval = ext2fs_inline_data_set(fs, ino, &inode, block_buf, in ext2fs_symlink()
160 retval = io_channel_write_blk64(fs->io, blk, 1, block_buf); in ext2fs_symlink()
190 if (block_buf) in ext2fs_symlink()
191 ext2fs_free_mem(&block_buf); in ext2fs_symlink()
Dext_attr.c241 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount3() argument
252 if (!block_buf) { in ext2fs_adjust_ea_refcount3()
256 block_buf = buf; in ext2fs_adjust_ea_refcount3()
259 retval = ext2fs_read_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3()
263 header = (struct ext2_ext_attr_header *) block_buf; in ext2fs_adjust_ea_refcount3()
268 retval = ext2fs_write_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3()
279 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount2() argument
282 return ext2fs_adjust_ea_refcount3(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount2()
287 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount() argument
290 return ext2fs_adjust_ea_refcount2(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount()
[all …]
Dpunch.c50 char *block_buf, blk_t *p, int level, in ind_punch() argument
75 retval = ext2fs_read_ind_block(fs, b, block_buf); in ind_punch()
79 retval = ind_punch(fs, inode, block_buf + fs->blocksize, in ind_punch()
80 (blk_t *) block_buf, level - 1, in ind_punch()
85 retval = ext2fs_write_ind_block(fs, b, block_buf); in ind_punch()
88 if (!check_zero_block(block_buf, fs->blocksize)) in ind_punch()
106 char *block_buf, blk64_t start, blk64_t end) in ext2fs_punch_ind() argument
125 if (!block_buf) { in ext2fs_punch_ind()
129 block_buf = buf; in ext2fs_punch_ind()
140 retval = ind_punch(fs, inode, block_buf, bp, level, in ext2fs_punch_ind()
[all …]
Drw_bitmaps.c38 char *block_buf = NULL, *inode_buf = NULL; in write_bitmaps() local
54 retval = io_channel_alloc_buf(fs->io, 0, &block_buf); in write_bitmaps()
57 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps()
77 blk_itr, block_nbytes << 3, block_buf); in write_bitmaps()
89 ext2fs_set_bit(j, block_buf); in write_bitmaps()
92 retval = ext2fs_block_bitmap_csum_set(fs, i, block_buf, in write_bitmaps()
102 block_buf); in write_bitmaps()
146 ext2fs_free_mem(&block_buf); in write_bitmaps()
156 if (block_buf) in write_bitmaps()
157 ext2fs_free_mem(&block_buf); in write_bitmaps()
Ddblist_dir.c28 char *block_buf, in ext2fs_dblist_dir_iterate() argument
45 if (block_buf) in ext2fs_dblist_dir_iterate()
46 ctx.buf = block_buf; in ext2fs_dblist_dir_iterate()
58 if (!block_buf) in ext2fs_dblist_dir_iterate()
Ddir_iterate.c95 char *block_buf, in ext2fs_dir_iterate2() argument
116 if (block_buf) in ext2fs_dir_iterate2()
117 ctx.buf = block_buf; in ext2fs_dir_iterate2()
128 if (!block_buf) in ext2fs_dir_iterate2()
161 char *block_buf, in ext2fs_dir_iterate() argument
174 return ext2fs_dir_iterate2(fs, dir, flags, block_buf, in ext2fs_dir_iterate()
Dbb_inode.c41 char *block_buf; member
76 retval = ext2fs_get_mem(fs->blocksize, &rec.block_buf); in ext2fs_update_bb_inode()
79 memset(rec.block_buf, 0, fs->blocksize); in ext2fs_update_bb_inode()
142 ext2fs_free_mem(&rec.block_buf); in ext2fs_update_bb_inode()
250 retval = io_channel_write_blk64(fs->io, blk, 1, rec->block_buf); in set_bad_block_proc()
Dbmove.c107 char *block_buf; in ext2fs_move_blocks() local
118 retval = ext2fs_get_array(4, fs->blocksize, &block_buf); in ext2fs_move_blocks()
121 pb.buf = block_buf + fs->blocksize * 3; in ext2fs_move_blocks()
153 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in ext2fs_move_blocks()
Dalloc.c225 errcode_t ext2fs_alloc_block3(ext2_filsys fs, blk64_t goal, char *block_buf, in ext2fs_alloc_block3() argument
251 if (block_buf) { in ext2fs_alloc_block3()
252 memset(block_buf, 0, fs->blocksize); in ext2fs_alloc_block3()
253 retval = io_channel_write_blk64(fs->io, block, 1, block_buf); in ext2fs_alloc_block3()
267 char *block_buf, blk64_t *ret) in ext2fs_alloc_block2() argument
269 return ext2fs_alloc_block3(fs, goal, block_buf, ret, NULL); in ext2fs_alloc_block2()
273 char *block_buf, blk_t *ret) in ext2fs_alloc_block() argument
277 retval = ext2fs_alloc_block3(fs, goal64, block_buf, &ret64, NULL); in ext2fs_alloc_block()
Dblock.c324 char *block_buf, in ext2fs_block_iterate3() argument
370 if (block_buf) { in ext2fs_block_iterate3()
371 ctx.ind_buf = block_buf; in ext2fs_block_iterate3()
564 if (!block_buf) in ext2fs_block_iterate3()
601 char *block_buf, in ext2fs_block_iterate2() argument
615 return ext2fs_block_iterate3(fs, ino, flags, block_buf, in ext2fs_block_iterate2()
644 char *block_buf, in ext2fs_block_iterate() argument
657 block_buf, xlate_func, &xl); in ext2fs_block_iterate()
Dext2fs.h708 char *block_buf, blk_t *ret);
710 char *block_buf, blk64_t *ret);
712 char *block_buf, blk64_t *ret,
957 char *block_buf,
966 char *block_buf,
977 char *block_buf,
989 char *block_buf, int bmap_flags,
993 char *block_buf, int bmap_flags, blk64_t block,
1135 char *block_buf,
1187 char *block_buf,
[all …]
Dextent.c904 char *block_buf = NULL; in extent_node_split() local
1027 block_buf = malloc(handle->fs->blocksize); in extent_node_split()
1028 if (!block_buf) { in extent_node_split()
1036 retval = ext2fs_alloc_block2(handle->fs, goal_blk, block_buf, in extent_node_split()
1048 neweh = (struct ext3_extent_header *) block_buf; in extent_node_split()
1070 block_buf); in extent_node_split()
1147 free(block_buf); in extent_node_split()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_crypto_handler.cpp210 uint8_t block_buf[16]; in CryptStream() local
212 CRYPT_AESEncrypt(&pContext->m_Context, block_buf, pContext->m_Block, in CryptStream()
215 CRYPT_AESDecrypt(&pContext->m_Context, block_buf, pContext->m_Block, in CryptStream()
218 dest_buf.AppendBlock(block_buf, 16); in CryptStream()
243 uint8_t block_buf[16]; in CryptFinish() local
245 CRYPT_AESEncrypt(&pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptFinish()
246 dest_buf.AppendBlock(block_buf, 16); in CryptFinish()
252 CRYPT_AESEncrypt(&pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptFinish()
253 dest_buf.AppendBlock(block_buf, 16); in CryptFinish()
255 uint8_t block_buf[16]; in CryptFinish() local
[all …]
/external/e2fsprogs/e2fsck/
Demptydir.c26 char *block_buf; member
132 edi->block_buf, 0, edi->logblk, 0, in empty_pass1()
165 retval = ext2fs_block_iterate3(fs, db->ino, 0, edi->block_buf, in fix_directory()
185 edi->block_buf = malloc(ctx->fs->blocksize * 3); in process_empty_dirblock()
187 if (edi->block_buf) { in process_empty_dirblock()
191 free(edi->block_buf); in process_empty_dirblock()
Dpass1b.c90 struct dup_inode *dp, char *block_buf);
92 struct dup_inode *dp, char* block_buf);
96 static void pass1b(e2fsck_t ctx, char *block_buf);
97 static void pass1c(e2fsck_t ctx, char *block_buf);
98 static void pass1d(e2fsck_t ctx, char *block_buf);
211 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks() argument
237 pass1b(ctx, block_buf); in e2fsck_pass1_dupblocks()
241 pass1c(ctx, block_buf); in e2fsck_pass1_dupblocks()
245 pass1d(ctx, block_buf); in e2fsck_pass1_dupblocks()
288 static void pass1b(e2fsck_t ctx, char *block_buf) in pass1b() argument
[all …]
Dpass1.c74 char *block_buf,
82 static void process_inodes(e2fsck_t ctx, char *block_buf);
87 char *block_buf, int adjust_sign);
118 char *block_buf; member
1164 char *block_buf = NULL; in e2fsck_pass1() local
1319 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3, in e2fsck_pass1()
1337 scan_struct.block_buf = block_buf; in e2fsck_pass1()
1673 block_buf, process_bad_block, &pb); in e2fsck_pass1()
1727 check_blocks(ctx, &pctx, block_buf, NULL); in e2fsck_pass1()
1754 check_blocks(ctx, &pctx, block_buf, NULL); in e2fsck_pass1()
[all …]
Dsuper.c189 struct ext2_inode_large *inode, char *block_buf, in release_inode_blocks() argument
201 pb.buf = block_buf + 3 * ctx->fs->blocksize; in release_inode_blocks()
221 block_buf, release_inode_block, &pb); in release_inode_blocks()
241 retval = ext2fs_adjust_ea_refcount3(fs, blk, block_buf, -1, in release_inode_blocks()
326 char *block_buf; in release_orphan_inodes() local
364 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in release_orphan_inodes()
388 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx)) in release_orphan_inodes()
405 ext2fs_free_mem(&block_buf); in release_orphan_inodes()
411 ext2fs_free_mem(&block_buf); in release_orphan_inodes()
Dpass2.c63 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf);
570 char *block_buf, int failed_csum) in parse_int_node() argument
584 root = (struct ext2_dx_root_info *) (block_buf + 24); in parse_int_node()
595 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length); in parse_int_node()
603 ent = (struct ext2_dx_entry *) (block_buf+8); in parse_int_node()
625 (csum_size + ((char *) ent - block_buf))) / in parse_int_node()
1649 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) in deallocate_inode() argument
1671 block_buf, -1, &count, ino); in deallocate_inode()
1703 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in deallocate_inode()
De2fsck.h296 char *block_buf; member
439 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
/external/e2fsprogs/debugfs/
Dicheck.c66 char *block_buf; in do_icheck() local
83 block_buf = malloc(current_fs->blocksize * 3); in do_icheck()
84 if (!block_buf) { in do_icheck()
137 BLOCK_FLAG_READ_ONLY, block_buf, in do_icheck()
170 free(block_buf); in do_icheck()
Dlsdel.c84 char *block_buf; in do_lsdel() local
113 block_buf = malloc(current_fs->blocksize * 3); in do_lsdel()
114 if (!block_buf) { in do_lsdel()
148 block_buf, in do_lsdel()
209 free(block_buf); in do_lsdel()
/external/e2fsprogs/resize/
Dresize2fs.c2029 static int fix_ea_block_entries(ext2_extent imap, char *block_buf, in fix_ea_block_entries() argument
2035 header = (struct ext2_ext_attr_header *)block_buf; in fix_ea_block_entries()
2037 end = (struct ext2_ext_attr_entry *)(block_buf + blocksize); in fix_ea_block_entries()
2056 char *block_buf, ext2_ino_t last_ino) in fix_ea_inode_refs() argument
2070 header = (struct ext2_ext_attr_header *)block_buf; in fix_ea_inode_refs()
2101 retval = ext2fs_read_ext_attr3(fs, blk, block_buf, ino); in fix_ea_inode_refs()
2105 modified = fix_ea_block_entries(rfs->imap, block_buf, in fix_ea_inode_refs()
2110 block_buf, ino); in fix_ea_inode_refs()
2137 char *block_buf = 0; in inode_scan_and_fix() local
2154 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf); in inode_scan_and_fix()
[all …]
/external/e2fsprogs/misc/
De2image.c1277 char * block_buf; in write_raw_image_file() local
1309 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in write_raw_image_file()
1347 BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file()
1361 ino, BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file()
1378 ext2fs_free_mem(&block_buf); in write_raw_image_file()
Dtune2fs.c813 char *block_buf) in update_block_xattr_hashes() argument
818 header = (struct ext2_ext_attr_header *)block_buf; in update_block_xattr_hashes()
823 end = (struct ext2_ext_attr_entry *)(block_buf + ctx->fs->blocksize); in update_block_xattr_hashes()
2419 char *block_buf = 0; in inode_scan_and_fix() local
2423 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in inode_scan_and_fix()
2471 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in inode_scan_and_fix()
2479 ext2fs_free_mem(&block_buf); in inode_scan_and_fix()

12