/external/e2fsprogs/lib/ext2fs/ |
D | bmap.c | 31 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 …]
|
D | symlink.c | 56 char *block_buf = 0; in ext2fs_symlink() local 74 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in ext2fs_symlink() 77 memset(block_buf, 0, fs->blocksize); in ext2fs_symlink() 78 strncpy(block_buf, target, fs->blocksize); in ext2fs_symlink() 120 retval = ext2fs_inline_data_set(fs, ino, &inode, block_buf, in ext2fs_symlink() 161 retval = io_channel_write_blk64(fs->io, blk, 1, block_buf); in ext2fs_symlink() 193 if (block_buf) in ext2fs_symlink() 194 ext2fs_free_mem(&block_buf); in ext2fs_symlink()
|
D | ext_attr.c | 294 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount3() argument 305 if (!block_buf) { in ext2fs_adjust_ea_refcount3() 309 block_buf = buf; in ext2fs_adjust_ea_refcount3() 312 retval = ext2fs_read_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3() 316 header = (struct ext2_ext_attr_header *) block_buf; in ext2fs_adjust_ea_refcount3() 321 retval = ext2fs_write_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3() 332 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount2() argument 335 return ext2fs_adjust_ea_refcount3(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount2() 340 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount() argument 343 return ext2fs_adjust_ea_refcount2(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount() [all …]
|
D | punch.c | 50 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 …]
|
D | dblist_dir.c | 28 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()
|
D | dir_iterate.c | 95 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()
|
D | bb_inode.c | 41 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()
|
D | bmove.c | 107 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()
|
D | rw_bitmaps.c | 60 char *block_buf = NULL, *inode_buf = NULL; in write_bitmaps() local 76 retval = io_channel_alloc_buf(fs->io, 0, &block_buf); in write_bitmaps() 79 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps() 99 blk_itr, block_nbytes << 3, block_buf); in write_bitmaps() 111 ext2fs_set_bit(j, block_buf); in write_bitmaps() 114 retval = ext2fs_block_bitmap_csum_set(fs, i, block_buf, in write_bitmaps() 124 block_buf); in write_bitmaps() 168 ext2fs_free_mem(&block_buf); in write_bitmaps() 178 if (block_buf) in write_bitmaps() 179 ext2fs_free_mem(&block_buf); in write_bitmaps()
|
D | alloc.c | 225 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()
|
D | block.c | 324 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()
|
D | ext2fs.h | 753 char *block_buf, blk_t *ret); 755 char *block_buf, blk64_t *ret); 757 char *block_buf, blk64_t *ret, 998 char *block_buf, 1007 char *block_buf, 1018 char *block_buf, 1030 char *block_buf, int bmap_flags, 1034 char *block_buf, int bmap_flags, blk64_t block, 1179 char *block_buf, 1237 char *block_buf, [all …]
|
D | extent.c | 915 char *block_buf = NULL; in extent_node_split() local 1038 block_buf = malloc(handle->fs->blocksize); in extent_node_split() 1039 if (!block_buf) { in extent_node_split() 1047 retval = ext2fs_alloc_block2(handle->fs, goal_blk, block_buf, in extent_node_split() 1059 neweh = (struct ext3_extent_header *) block_buf; in extent_node_split() 1081 block_buf); in extent_node_split() 1158 free(block_buf); in extent_node_split()
|
/external/e2fsprogs/e2fsck/ |
D | emptydir.c | 26 char *block_buf; member 131 edi->block_buf, 0, edi->logblk, 0, in empty_pass1() 164 retval = ext2fs_block_iterate3(fs, db->ino, 0, edi->block_buf, in fix_directory() 185 &edi->block_buf); in process_empty_dirblock() 187 if (edi->block_buf) { in process_empty_dirblock() 191 ext2fs_free_mem(&edi->block_buf); in process_empty_dirblock()
|
D | pass1b.c | 90 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); 212 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks() argument 238 pass1b(ctx, block_buf); in e2fsck_pass1_dupblocks() 242 pass1c(ctx, block_buf); in e2fsck_pass1_dupblocks() 246 pass1d(ctx, block_buf); in e2fsck_pass1_dupblocks() 289 static void pass1b(e2fsck_t ctx, char *block_buf) in pass1b() argument [all …]
|
D | pass1.c | 77 char *block_buf, 85 static void process_inodes(e2fsck_t ctx, char *block_buf); 90 char *block_buf, int adjust_sign); 121 char *block_buf; member 1164 char *block_buf = NULL; in e2fsck_pass1() local 1335 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3, in e2fsck_pass1() 1353 scan_struct.block_buf = block_buf; in e2fsck_pass1() 1692 block_buf, process_bad_block, &pb); in e2fsck_pass1() 1746 check_blocks(ctx, &pctx, block_buf, NULL); in e2fsck_pass1() 1773 check_blocks(ctx, &pctx, block_buf, NULL); in e2fsck_pass1() [all …]
|
D | super.c | 189 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() 327 char *block_buf; in release_orphan_inodes() local 365 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in release_orphan_inodes() 389 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx)) in release_orphan_inodes() 406 ext2fs_free_mem(&block_buf); in release_orphan_inodes() 412 ext2fs_free_mem(&block_buf); in release_orphan_inodes()
|
D | pass2.c | 67 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf); 639 char *block_buf, int failed_csum) in parse_int_node() argument 653 root = (struct ext2_dx_root_info *) (block_buf + 24); in parse_int_node() 664 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length); in parse_int_node() 672 ent = (struct ext2_dx_entry *) (block_buf+8); in parse_int_node() 694 (csum_size + ((char *) ent - block_buf))) / in parse_int_node() 1846 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) in deallocate_inode() argument 1868 block_buf, -1, &count, ino); in deallocate_inode() 1903 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in deallocate_inode()
|
D | e2fsck.h | 337 char *block_buf; member 489 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
|
/external/e2fsprogs/debugfs/ |
D | icheck.c | 66 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() 172 free(block_buf); in do_icheck()
|
D | lsdel.c | 84 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() 211 free(block_buf); in do_lsdel()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_crypto_handler.cpp | 174 uint8_t block_buf[16]; in DecryptStream() local 175 CRYPT_AESDecrypt(&pContext->m_Context, block_buf, pContext->m_Block, in DecryptStream() 177 dest_buf.AppendSpan(block_buf); in DecryptStream() 201 uint8_t block_buf[16]; in DecryptFinish() local 202 CRYPT_AESDecrypt(&pContext->m_Context, block_buf, pContext->m_Block, 16); in DecryptFinish() 203 if (block_buf[15] < 16) { in DecryptFinish() 205 pdfium::make_span(block_buf).first(16 - block_buf[15])); in DecryptFinish()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 2074 static int fix_ea_block_entries(ext2_extent imap, char *block_buf, in fix_ea_block_entries() argument 2080 header = (struct ext2_ext_attr_header *)block_buf; in fix_ea_block_entries() 2082 end = (struct ext2_ext_attr_entry *)(block_buf + blocksize); in fix_ea_block_entries() 2101 char *block_buf, ext2_ino_t last_ino) in fix_ea_inode_refs() argument 2115 header = (struct ext2_ext_attr_header *)block_buf; in fix_ea_inode_refs() 2146 retval = ext2fs_read_ext_attr3(fs, blk, block_buf, ino); in fix_ea_inode_refs() 2150 modified = fix_ea_block_entries(rfs->imap, block_buf, in fix_ea_inode_refs() 2155 block_buf, ino); in fix_ea_inode_refs() 2182 char *block_buf = 0; in inode_scan_and_fix() local 2199 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf); in inode_scan_and_fix() [all …]
|
/external/e2fsprogs/misc/ |
D | e2image.c | 1287 char * block_buf; in write_raw_image_file() local 1335 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in write_raw_image_file() 1375 BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 1389 ino, BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 1406 ext2fs_free_mem(&block_buf); in write_raw_image_file()
|
D | tune2fs.c | 779 char *block_buf) in update_block_xattr_hashes() argument 784 header = (struct ext2_ext_attr_header *)block_buf; in update_block_xattr_hashes() 789 end = (struct ext2_ext_attr_entry *)(block_buf + ctx->fs->blocksize); in update_block_xattr_hashes() 2519 char *block_buf = 0; in inode_scan_and_fix() local 2523 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in inode_scan_and_fix() 2571 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in inode_scan_and_fix() 2579 ext2fs_free_mem(&block_buf); in inode_scan_and_fix()
|