/external/e2fsprogs/lib/ext2fs/ |
D | bmap.c | 30 char *block_buf, int bmap_flags, 36 blk_t ind, char *block_buf, in block_ind_bmap() argument 49 retval = io_channel_read_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 58 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() 59 return io_channel_write_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 62 b = ((blk_t *) block_buf)[nr]; in block_ind_bmap() 69 b = nr ? ((blk_t *) block_buf)[nr-1] : 0; in block_ind_bmap() 71 block_buf + fs->blocksize, &b); in block_ind_bmap() 76 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b); in block_ind_bmap() 78 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() [all …]
|
D | symlink.c | 40 char *block_buf = 0; in ext2fs_symlink() local 59 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in ext2fs_symlink() 90 memset(block_buf, 0, fs->blocksize); in ext2fs_symlink() 91 strcpy(block_buf, target); in ext2fs_symlink() 117 retval = io_channel_write_blk64(fs->io, blk, 1, block_buf); in ext2fs_symlink() 147 if (block_buf) in ext2fs_symlink() 148 ext2fs_free_mem(&block_buf); in ext2fs_symlink()
|
D | ext_attr.c | 114 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount2() argument 125 if (!block_buf) { in ext2fs_adjust_ea_refcount2() 129 block_buf = buf; in ext2fs_adjust_ea_refcount2() 132 retval = ext2fs_read_ext_attr2(fs, blk, block_buf); in ext2fs_adjust_ea_refcount2() 136 header = (struct ext2_ext_attr_header *) block_buf; in ext2fs_adjust_ea_refcount2() 141 retval = ext2fs_write_ext_attr2(fs, blk, block_buf); in ext2fs_adjust_ea_refcount2() 152 char *block_buf, int adjust, in ext2fs_adjust_ea_refcount() argument 155 return ext2fs_adjust_ea_refcount(fs, blk, block_buf, adjust, newcount); in ext2fs_adjust_ea_refcount()
|
D | punch.c | 48 char *block_buf, blk_t *p, int level, in ind_punch() argument 73 retval = ext2fs_read_ind_block(fs, b, block_buf); in ind_punch() 77 retval = ind_punch(fs, inode, block_buf + fs->blocksize, in ind_punch() 78 (blk_t *) block_buf, level - 1, in ind_punch() 83 retval = ext2fs_write_ind_block(fs, b, block_buf); in ind_punch() 86 if (!check_zero_block(block_buf, fs->blocksize)) in ind_punch() 103 char *block_buf, blk_t start, blk_t count) in ext2fs_punch_ind() argument 113 if (!block_buf) { in ext2fs_punch_ind() 117 block_buf = buf; in ext2fs_punch_ind() 128 retval = ind_punch(fs, inode, block_buf, bp, level, in ext2fs_punch_ind() [all …]
|
D | dblist_dir.c | 27 char *block_buf, in ext2fs_dblist_dir_iterate() argument 44 if (block_buf) in ext2fs_dblist_dir_iterate() 45 ctx.buf = block_buf; in ext2fs_dblist_dir_iterate() 57 if (!block_buf) in ext2fs_dblist_dir_iterate()
|
D | rw_bitmaps.c | 37 char *block_buf = NULL, *inode_buf = NULL; in write_bitmaps() local 55 retval = io_channel_alloc_buf(fs->io, 0, &block_buf); in write_bitmaps() 58 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps() 78 blk_itr, block_nbytes << 3, block_buf); in write_bitmaps() 90 ext2fs_set_bit(j, block_buf); in write_bitmaps() 95 block_buf); in write_bitmaps() 132 ext2fs_free_mem(&block_buf); in write_bitmaps() 142 if (block_buf) in write_bitmaps() 143 ext2fs_free_mem(&block_buf); in write_bitmaps()
|
D | dir_iterate.c | 94 char *block_buf, in ext2fs_dir_iterate2() argument 115 if (block_buf) in ext2fs_dir_iterate2() 116 ctx.buf = block_buf; in ext2fs_dir_iterate2() 127 if (!block_buf) in ext2fs_dir_iterate2() 156 char *block_buf, in ext2fs_dir_iterate() argument 169 return ext2fs_dir_iterate2(fs, dir, flags, block_buf, in ext2fs_dir_iterate()
|
D | bb_inode.c | 40 char *block_buf; member 75 retval = ext2fs_get_mem(fs->blocksize, &rec.block_buf); in ext2fs_update_bb_inode() 78 memset(rec.block_buf, 0, fs->blocksize); in ext2fs_update_bb_inode() 138 ext2fs_free_mem(&rec.block_buf); in ext2fs_update_bb_inode() 246 retval = io_channel_write_blk64(fs->io, blk, 1, rec->block_buf); in set_bad_block_proc()
|
D | bmove.c | 106 char *block_buf; in ext2fs_move_blocks() local 117 retval = ext2fs_get_array(4, fs->blocksize, &block_buf); in ext2fs_move_blocks() 120 pb.buf = block_buf + fs->blocksize * 3; in ext2fs_move_blocks() 152 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in ext2fs_move_blocks()
|
D | alloc.c | 221 char *block_buf, blk64_t *ret) in ext2fs_alloc_block2() argument 227 if (!block_buf) { in ext2fs_alloc_block2() 231 block_buf = buf; in ext2fs_alloc_block2() 233 memset(block_buf, 0, fs->blocksize); in ext2fs_alloc_block2() 251 retval = io_channel_write_blk64(fs->io, block, 1, block_buf); in ext2fs_alloc_block2() 265 char *block_buf, blk_t *ret) in ext2fs_alloc_block() argument 269 retval = ext2fs_alloc_block2(fs, goal, block_buf, &val); in ext2fs_alloc_block()
|
D | block.c | 323 char *block_buf, in ext2fs_block_iterate3() argument 362 if (block_buf) { in ext2fs_block_iterate3() 363 ctx.ind_buf = block_buf; in ext2fs_block_iterate3() 556 if (!block_buf) in ext2fs_block_iterate3() 593 char *block_buf, in ext2fs_block_iterate2() argument 607 return ext2fs_block_iterate3(fs, ino, flags, block_buf, in ext2fs_block_iterate2() 636 char *block_buf, in ext2fs_block_iterate() argument 649 block_buf, xlate_func, &xl); in ext2fs_block_iterate()
|
D | ext2fs.h | 657 char *block_buf, blk_t *ret); 659 char *block_buf, blk64_t *ret); 871 char *block_buf, 880 char *block_buf, 891 char *block_buf, 903 char *block_buf, int bmap_flags, 907 char *block_buf, int bmap_flags, blk64_t block, 994 char *block_buf, 1035 char *block_buf, 1045 char *block_buf, [all …]
|
D | extent.c | 829 char *block_buf = NULL; in ext2fs_extent_node_split() local 924 block_buf = malloc(handle->fs->blocksize); in ext2fs_extent_node_split() 925 if (!block_buf) { in ext2fs_extent_node_split() 938 retval = ext2fs_alloc_block2(handle->fs, goal_blk, block_buf, in ext2fs_extent_node_split() 950 neweh = (struct ext3_extent_header *) block_buf; in ext2fs_extent_node_split() 967 block_buf); in ext2fs_extent_node_split() 1044 free(block_buf); in ext2fs_extent_node_split()
|
/external/e2fsprogs/e2fsck/ |
D | emptydir.c | 25 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() 184 edi->block_buf = malloc(ctx->fs->blocksize * 3); in process_empty_dirblock() 186 if (edi->block_buf) { in process_empty_dirblock() 190 free(edi->block_buf); in process_empty_dirblock()
|
D | pass1b.c | 89 struct dup_inode *dp, char *block_buf); 91 struct dup_inode *dp, char* block_buf); 95 static void pass1b(e2fsck_t ctx, char *block_buf); 96 static void pass1c(e2fsck_t ctx, char *block_buf); 97 static void pass1d(e2fsck_t ctx, char *block_buf); 210 void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf) in e2fsck_pass1_dupblocks() argument 236 pass1b(ctx, block_buf); in e2fsck_pass1_dupblocks() 240 pass1c(ctx, block_buf); in e2fsck_pass1_dupblocks() 244 pass1d(ctx, block_buf); in e2fsck_pass1_dupblocks() 268 static void pass1b(e2fsck_t ctx, char *block_buf) in pass1b() argument [all …]
|
D | pass1.c | 65 char *block_buf); 71 static void process_inodes(e2fsck_t ctx, char *block_buf); 76 char *block_buf, int adjust_sign); 103 char *block_buf; member 550 char *block_buf; in e2fsck_pass1() local 691 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3, in e2fsck_pass1() 701 ext2fs_free_mem(&block_buf); in e2fsck_pass1() 708 scan_struct.block_buf = block_buf; in e2fsck_pass1() 860 block_buf, process_bad_block, &pb); in e2fsck_pass1() 911 check_blocks(ctx, &pctx, block_buf); in e2fsck_pass1() [all …]
|
D | super.c | 157 struct ext2_inode *inode, char *block_buf, in release_inode_blocks() argument 168 pb.buf = block_buf + 3 * ctx->fs->blocksize; in release_inode_blocks() 186 block_buf, release_inode_block, &pb); in release_inode_blocks() 205 block_buf, -1, &count); in release_inode_blocks() 236 char *block_buf; in release_orphan_inodes() local 264 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4, in release_orphan_inodes() 287 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx)) in release_orphan_inodes() 301 ext2fs_free_mem(&block_buf); in release_orphan_inodes() 304 ext2fs_free_mem(&block_buf); in release_orphan_inodes()
|
D | pass2.c | 62 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf); 529 char *block_buf) in parse_int_node() argument 542 root = (struct ext2_dx_root_info *) (block_buf + 24); in parse_int_node() 553 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length); in parse_int_node() 555 ent = (struct ext2_dx_entry *) (block_buf+8); in parse_int_node() 567 expect_limit = (fs->blocksize - ((char *) ent - block_buf)) / in parse_int_node() 1182 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) in deallocate_inode() argument 1204 block_buf, -1, &count); in deallocate_inode() 1233 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in deallocate_inode()
|
D | e2fsck.h | 276 char *block_buf; member 391 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
|
/external/e2fsprogs/debugfs/ |
D | icheck.c | 64 char *block_buf; in do_icheck() local 81 block_buf = malloc(current_fs->blocksize * 3); in do_icheck() 82 if (!block_buf) { in do_icheck() 135 BLOCK_FLAG_READ_ONLY, block_buf, in do_icheck() 168 free(block_buf); in do_icheck()
|
D | lsdel.c | 82 char *block_buf; in do_lsdel() local 111 block_buf = malloc(current_fs->blocksize * 3); in do_lsdel() 112 if (!block_buf) { in do_lsdel() 144 BLOCK_FLAG_READ_ONLY, block_buf, in do_lsdel() 203 free(block_buf); in do_lsdel()
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
D | fpdf_parser_encrypt.cpp | 812 FX_BYTE block_buf[16]; in CryptStream() local 814 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptStream() 816 CRYPT_AESDecrypt(pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptStream() 818 dest_buf.AppendBlock(block_buf, 16); in CryptStream() 842 FX_BYTE block_buf[16]; in CryptFinish() local 844 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptFinish() 845 dest_buf.AppendBlock(block_buf, 16); in CryptFinish() 849 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16); in CryptFinish() 850 dest_buf.AppendBlock(block_buf, 16); in CryptFinish() 852 FX_BYTE block_buf[16]; in CryptFinish() local [all …]
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1445 char *block_buf = 0; in inode_scan_and_fix() local 1472 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf); in inode_scan_and_fix() 1527 ino, 0, block_buf, in inode_scan_and_fix() 1581 if (block_buf) in inode_scan_and_fix() 1582 ext2fs_free_mem(&block_buf); in inode_scan_and_fix() 1848 char *block_buf = NULL; in fix_resize_inode() local 1854 retval = ext2fs_get_mem(fs->blocksize, &block_buf); in fix_resize_inode() 1876 memset(block_buf, 0, fs->blocksize); in fix_resize_inode() 1879 1, block_buf); in fix_resize_inode() 1887 if (block_buf) in fix_resize_inode() [all …]
|
/external/e2fsprogs/misc/ |
D | e2image.c | 1249 char * block_buf; in write_raw_image_file() local 1281 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in write_raw_image_file() 1319 BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 1333 ino, BLOCK_FLAG_READ_ONLY, block_buf, in write_raw_image_file() 1350 ext2fs_free_mem(&block_buf); in write_raw_image_file()
|
D | tune2fs.c | 1493 char *block_buf = 0; in inode_scan_and_fix() local 1497 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf); in inode_scan_and_fix() 1545 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf, in inode_scan_and_fix() 1553 ext2fs_free_mem(&block_buf); in inode_scan_and_fix()
|