/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 | ext_attr.c | 152 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount3() argument 163 if (!block_buf) { in ext2fs_adjust_ea_refcount3() 167 block_buf = buf; in ext2fs_adjust_ea_refcount3() 170 retval = ext2fs_read_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3() 174 header = (struct ext2_ext_attr_header *) block_buf; in ext2fs_adjust_ea_refcount3() 179 retval = ext2fs_write_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3() 190 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount2() argument 193 return ext2fs_adjust_ea_refcount3(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount2() 198 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount() argument 201 return ext2fs_adjust_ea_refcount2(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount() [all …]
|
D | symlink.c | 40 char *block_buf = 0; in ext2fs_symlink() local 54 retval = ext2fs_get_mem(fs->blocksize+1, &block_buf); in ext2fs_symlink() 57 memset(block_buf, 0, fs->blocksize+1); in ext2fs_symlink() 58 strncpy(block_buf, target, fs->blocksize); in ext2fs_symlink() 102 retval = ext2fs_inline_data_set(fs, ino, &inode, block_buf, in ext2fs_symlink() 143 retval = io_channel_write_blk64(fs->io, blk, 1, block_buf); in ext2fs_symlink() 173 if (block_buf) in ext2fs_symlink() 174 ext2fs_free_mem(&block_buf); in ext2fs_symlink()
|
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 | rw_bitmaps.c | 38 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() 101 block_buf); in write_bitmaps() 144 ext2fs_free_mem(&block_buf); in write_bitmaps() 154 if (block_buf) in write_bitmaps() 155 ext2fs_free_mem(&block_buf); in write_bitmaps()
|
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 | 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 | 691 char *block_buf, blk_t *ret); 693 char *block_buf, blk64_t *ret); 695 char *block_buf, blk64_t *ret, 940 char *block_buf, 949 char *block_buf, 960 char *block_buf, 972 char *block_buf, int bmap_flags, 976 char *block_buf, int bmap_flags, blk64_t block, 1118 char *block_buf, 1170 char *block_buf, [all …]
|
D | extent.c | 904 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/ |
D | cpdf_crypto_handler.cpp | 176 uint8_t block_buf[16]; in CryptStream() local 178 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, in CryptStream() 181 CRYPT_AESDecrypt(pContext->m_Context, block_buf, pContext->m_Block, in CryptStream() 184 dest_buf.AppendBlock(block_buf, 16); in CryptStream() 209 uint8_t block_buf[16]; in CryptFinish() local 211 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptFinish() 212 dest_buf.AppendBlock(block_buf, 16); in CryptFinish() 218 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptFinish() 219 dest_buf.AppendBlock(block_buf, 16); in CryptFinish() 221 uint8_t block_buf[16]; in CryptFinish() local [all …]
|
/external/e2fsprogs/e2fsck/ |
D | emptydir.c | 26 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()
|
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); 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() 270 static void pass1b(e2fsck_t ctx, char *block_buf) in pass1b() argument [all …]
|
D | pass1.c | 68 char *block_buf); 75 static void process_inodes(e2fsck_t ctx, char *block_buf); 80 char *block_buf, int adjust_sign); 110 char *block_buf; member 1054 char *block_buf = NULL; in e2fsck_pass1() local 1204 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3, in e2fsck_pass1() 1222 scan_struct.block_buf = block_buf; in e2fsck_pass1() 1517 block_buf, process_bad_block, &pb); in e2fsck_pass1() 1571 check_blocks(ctx, &pctx, block_buf); in e2fsck_pass1() 1598 check_blocks(ctx, &pctx, block_buf); in e2fsck_pass1() [all …]
|
D | super.c | 158 struct ext2_inode *inode, char *block_buf, in release_inode_blocks() argument 169 pb.buf = block_buf + 3 * ctx->fs->blocksize; in release_inode_blocks() 187 block_buf, release_inode_block, &pb); in release_inode_blocks() 206 block_buf, -1, &count, ino); in release_inode_blocks() 237 char *block_buf; in release_orphan_inodes() local 265 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in release_orphan_inodes() 288 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx)) in release_orphan_inodes() 302 ext2fs_free_mem(&block_buf); in release_orphan_inodes() 305 ext2fs_free_mem(&block_buf); in release_orphan_inodes()
|
D | pass2.c | 63 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf); 548 char *block_buf, int failed_csum) in parse_int_node() argument 562 root = (struct ext2_dx_root_info *) (block_buf + 24); in parse_int_node() 573 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length); in parse_int_node() 581 ent = (struct ext2_dx_entry *) (block_buf+8); in parse_int_node() 603 (csum_size + ((char *) ent - block_buf))) / in parse_int_node() 1605 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) in deallocate_inode() argument 1627 block_buf, -1, &count, ino); in deallocate_inode() 1658 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in deallocate_inode()
|
D | e2fsck.h | 281 char *block_buf; member 424 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
|
/external/e2fsprogs/debugfs/ |
D | icheck.c | 65 char *block_buf; in do_icheck() local 82 block_buf = malloc(current_fs->blocksize * 3); in do_icheck() 83 if (!block_buf) { in do_icheck() 136 BLOCK_FLAG_READ_ONLY, block_buf, in do_icheck() 169 free(block_buf); in do_icheck()
|
D | lsdel.c | 83 char *block_buf; in do_lsdel() local 112 block_buf = malloc(current_fs->blocksize * 3); in do_lsdel() 113 if (!block_buf) { in do_lsdel() 147 block_buf, in do_lsdel() 208 free(block_buf); in do_lsdel()
|
/external/e2fsprogs/misc/ |
D | e2image.c | 1265 char * block_buf; in write_raw_image_file() local 1297 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in write_raw_image_file() 1335 BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 1349 ino, BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 1366 ext2fs_free_mem(&block_buf); in write_raw_image_file()
|
D | tune2fs.c | 2264 char *block_buf = 0; in inode_scan_and_fix() local 2268 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in inode_scan_and_fix() 2316 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in inode_scan_and_fix() 2324 ext2fs_free_mem(&block_buf); in inode_scan_and_fix()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1996 char *block_buf = 0; in inode_scan_and_fix() local 2012 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf); in inode_scan_and_fix() 2119 new_inode, 0, block_buf, in inode_scan_and_fix() 2147 if (block_buf) in inode_scan_and_fix() 2148 ext2fs_free_mem(&block_buf); in inode_scan_and_fix()
|