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

/external/e2fsprogs/lib/ext2fs/
H A Dbmap.c30 char *block_buf, int bmap_flags,
36 blk_t ind, char *block_buf,
49 retval = io_channel_read_blk(fs->io, ind, 1, block_buf);
58 ((blk_t *) block_buf)[nr] = b;
59 return io_channel_write_blk(fs->io, ind, 1, block_buf);
62 b = ((blk_t *) block_buf)[nr];
69 b = nr ? ((blk_t *) block_buf)[nr-1] : 0;
71 block_buf + fs->blocksize, &b);
76 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b);
78 ((blk_t *) block_buf)[n
35 block_ind_bmap(ext2_filsys fs, int flags, blk_t ind, char *block_buf, int *blocks_alloc, blk_t nr, blk_t *ret_blk) argument
92 block_dind_bmap(ext2_filsys fs, int flags, blk_t dind, char *block_buf, int *blocks_alloc, blk_t nr, blk_t *ret_blk) argument
112 block_tind_bmap(ext2_filsys fs, int flags, blk_t tind, char *block_buf, int *blocks_alloc, blk_t nr, blk_t *ret_blk) argument
204 extent_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, ext2_extent_handle_t handle, char *block_buf, int bmap_flags, blk64_t block, int *ret_flags, int *blocks_alloc, blk64_t *phys_blk) argument
291 ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, int bmap_flags, blk64_t block, int *ret_flags, blk64_t *phys_blk) argument
444 ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, int bmap_flags, blk_t block, blk_t *phys_blk) argument
[all...]
H A Ddblist_dir.c27 char *block_buf,
44 if (block_buf)
45 ctx.buf = block_buf;
57 if (!block_buf)
25 ext2fs_dblist_dir_iterate(ext2_dblist dblist, int flags, char *block_buf, int (*func)(ext2_ino_t dir, int entry, struct ext2_dir_entry *dirent, int offset, int blocksize, char *buf, void *priv_data), void *priv_data) argument
H A Dsymlink.c40 char *block_buf = 0; local
59 retval = ext2fs_get_mem(fs->blocksize, &block_buf);
90 memset(block_buf, 0, fs->blocksize);
91 strcpy(block_buf, target);
117 retval = io_channel_write_blk64(fs->io, blk, 1, block_buf);
147 if (block_buf)
148 ext2fs_free_mem(&block_buf);
H A Dext_attr.c114 char *block_buf, int adjust,
125 if (!block_buf) {
129 block_buf = buf;
132 retval = ext2fs_read_ext_attr2(fs, blk, block_buf);
136 header = (struct ext2_ext_attr_header *) block_buf;
141 retval = ext2fs_write_ext_attr2(fs, blk, block_buf);
152 char *block_buf, int adjust,
155 return ext2fs_adjust_ea_refcount(fs, blk, block_buf, adjust, newcount);
113 ext2fs_adjust_ea_refcount2(ext2_filsys fs, blk64_t blk, char *block_buf, int adjust, __u32 *newcount) argument
151 ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, char *block_buf, int adjust, __u32 *newcount) argument
H A Drw_bitmaps.c37 char *block_buf = NULL, *inode_buf = NULL; local
55 retval = io_channel_alloc_buf(fs->io, 0, &block_buf);
58 memset(block_buf, 0xff, fs->blocksize);
78 blk_itr, block_nbytes << 3, block_buf);
90 ext2fs_set_bit(j, block_buf);
95 block_buf);
132 ext2fs_free_mem(&block_buf);
142 if (block_buf)
143 ext2fs_free_mem(&block_buf);
H A Dpunch.c48 char *block_buf, blk_t *p, int level,
73 retval = ext2fs_read_ind_block(fs, b, block_buf);
77 retval = ind_punch(fs, inode, block_buf + fs->blocksize,
78 (blk_t *) block_buf, level - 1,
83 retval = ext2fs_write_ind_block(fs, b, block_buf);
86 if (!check_zero_block(block_buf, fs->blocksize))
103 char *block_buf, blk_t start, blk_t count)
113 if (!block_buf) {
117 block_buf = buf;
128 retval = ind_punch(fs, inode, block_buf, b
47 ind_punch(ext2_filsys fs, struct ext2_inode *inode, char *block_buf, blk_t *p, int level, blk_t start, blk_t count, int max) argument
102 ext2fs_punch_ind(ext2_filsys fs, struct ext2_inode *inode, char *block_buf, blk_t start, blk_t count) argument
412 ext2fs_punch(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, blk64_t start, blk64_t end) argument
[all...]
H A Dbmove.c106 char *block_buf; local
117 retval = ext2fs_get_array(4, fs->blocksize, &block_buf);
120 pb.buf = block_buf + fs->blocksize * 3;
152 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf,
H A Ddir_iterate.c94 char *block_buf,
115 if (block_buf)
116 ctx.buf = block_buf;
127 if (!block_buf)
156 char *block_buf,
169 return ext2fs_dir_iterate2(fs, dir, flags, block_buf,
91 ext2fs_dir_iterate2(ext2_filsys fs, ext2_ino_t dir, int flags, char *block_buf, int (*func)(ext2_ino_t dir, int entry, struct ext2_dir_entry *dirent, int offset, int blocksize, char *buf, void *priv_data), void *priv_data) argument
153 ext2fs_dir_iterate(ext2_filsys fs, ext2_ino_t dir, int flags, char *block_buf, int (*func)(struct ext2_dir_entry *dirent, int offset, int blocksize, char *buf, void *priv_data), void *priv_data) argument
H A Dalloc.c221 char *block_buf, blk64_t *ret)
227 if (!block_buf) {
231 block_buf = buf;
233 memset(block_buf, 0, fs->blocksize);
251 retval = io_channel_write_blk64(fs->io, block, 1, block_buf);
265 char *block_buf, blk_t *ret)
269 retval = ext2fs_alloc_block2(fs, goal, block_buf, &val);
220 ext2fs_alloc_block2(ext2_filsys fs, blk64_t goal, char *block_buf, blk64_t *ret) argument
264 ext2fs_alloc_block(ext2_filsys fs, blk_t goal, char *block_buf, blk_t *ret) argument
H A Dbb_inode.c40 char *block_buf; member in struct:set_badblock_record
75 retval = ext2fs_get_mem(fs->blocksize, &rec.block_buf);
78 memset(rec.block_buf, 0, fs->blocksize);
138 ext2fs_free_mem(&rec.block_buf);
246 retval = io_channel_write_blk64(fs->io, blk, 1, rec->block_buf);
H A Dblock.c323 char *block_buf,
362 if (block_buf) {
363 ctx.ind_buf = block_buf;
556 if (!block_buf)
593 char *block_buf,
607 return ext2fs_block_iterate3(fs, ino, flags, block_buf,
636 char *block_buf,
649 block_buf, xlate_func, &xl);
320 ext2fs_block_iterate3(ext2_filsys fs, ext2_ino_t ino, int flags, char *block_buf, int (*func)(ext2_filsys fs, blk64_t *blocknr, e2_blkcnt_t blockcnt, blk64_t ref_blk, int ref_offset, void *priv_data), void *priv_data) argument
590 ext2fs_block_iterate2(ext2_filsys fs, ext2_ino_t ino, int flags, char *block_buf, int (*func)(ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt, blk_t ref_blk, int ref_offset, void *priv_data), void *priv_data) argument
633 ext2fs_block_iterate(ext2_filsys fs, ext2_ino_t ino, int flags, char *block_buf, int (*func)(ext2_filsys fs, blk_t *blocknr, int blockcnt, void *priv_data), void *priv_data) argument
H A Dext2fs.h657 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...]
H A Dextent.c829 char *block_buf = NULL; local
924 block_buf = malloc(handle->fs->blocksize);
925 if (!block_buf) {
938 retval = ext2fs_alloc_block2(handle->fs, goal_blk, block_buf,
950 neweh = (struct ext3_extent_header *) block_buf;
967 block_buf);
1044 free(block_buf);
/external/e2fsprogs/e2fsck/
H A Demptydir.c25 char *block_buf; member in struct:empty_dir_info_struct
131 edi->block_buf, 0, edi->logblk, 0,
164 retval = ext2fs_block_iterate3(fs, db->ino, 0, edi->block_buf,
184 edi->block_buf = malloc(ctx->fs->blocksize * 3);
186 if (edi->block_buf) {
190 free(edi->block_buf);
H A Dpass1b.c89 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) argument
236 pass1b(ctx, block_buf);
240 pass1c(ctx, block_buf);
244 pass1d(ctx, block_buf);
268 static void pass1b(e2fsck_t ctx, char *block_buf) argument
424 pass1c(e2fsck_t ctx, char *block_buf) argument
446 pass1d(e2fsck_t ctx, char *block_buf) argument
621 delete_file(e2fsck_t ctx, ext2_ino_t ino, struct dup_inode *dp, char* block_buf) argument
781 clone_file(e2fsck_t ctx, ext2_ino_t ino, struct dup_inode *dp, char* block_buf) argument
[all...]
H A Dpass1.c65 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 in struct:scan_callback_struct
550 char *block_buf; local
691 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 3,
701 ext2fs_free_mem(&block_buf);
708 scan_struct.block_buf = block_buf;
860 block_buf, process_bad_bloc
1268 process_inodes(e2fsck_t ctx, char *block_buf) argument
1450 adjust_extattr_refcount(e2fsck_t ctx, ext2_refcount_t refcount, char *block_buf, int adjust_sign) argument
1492 check_ext_attr(e2fsck_t ctx, struct problem_context *pctx, char *block_buf) argument
1675 handle_htree(e2fsck_t ctx, struct problem_context *pctx, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf) argument
1999 check_blocks(e2fsck_t ctx, struct problem_context *pctx, char *block_buf) argument
[all...]
H A Dsuper.c157 struct ext2_inode *inode, char *block_buf,
168 pb.buf = block_buf + 3 * ctx->fs->blocksize;
186 block_buf, release_inode_block, &pb);
205 block_buf, -1, &count);
236 char *block_buf; local
264 block_buf = (char *) e2fsck_allocate_memory(ctx, fs->blocksize * 4,
287 if (release_inode_blocks(ctx, ino, &inode, block_buf, &pctx))
301 ext2fs_free_mem(&block_buf);
304 ext2fs_free_mem(&block_buf);
156 release_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, struct ext2_inode *inode, char *block_buf, struct problem_context *pctx) argument
H A Dpass2.c62 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf);
529 char *block_buf)
542 root = (struct ext2_dx_root_info *) (block_buf + 24);
553 ent = (struct ext2_dx_entry *) (block_buf + 24 + root->info_length);
555 ent = (struct ext2_dx_entry *) (block_buf+8);
567 expect_limit = (fs->blocksize - ((char *) ent - block_buf)) /
1182 static void deallocate_inode(e2fsck_t ctx, ext2_ino_t ino, char* block_buf) argument
1204 block_buf, -1, &count);
1233 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf,
525 parse_int_node(ext2_filsys fs, struct ext2_db_entry2 *db, struct check_dir_struct *cd, struct dx_dir_info *dx_dir, char *block_buf) argument
H A De2fsck.h276 char *block_buf; member in struct:e2fsck_struct
391 extern void e2fsck_pass1_dupblocks(e2fsck_t ctx, char *block_buf);
/external/e2fsprogs/debugfs/
H A Dicheck.c64 char *block_buf; local
81 block_buf = malloc(current_fs->blocksize * 3);
82 if (!block_buf) {
135 BLOCK_FLAG_READ_ONLY, block_buf,
168 free(block_buf);
H A Dlsdel.c82 char *block_buf; local
111 block_buf = malloc(current_fs->blocksize * 3);
112 if (!block_buf) {
144 BLOCK_FLAG_READ_ONLY, block_buf,
203 free(block_buf);
/external/pdfium/core/src/fpdfapi/fpdf_parser/
H A Dfpdf_parser_encrypt.cpp810 FX_BYTE block_buf[16]; local
812 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16);
814 CRYPT_AESDecrypt(pContext->m_Context, block_buf, pContext->m_Block, 16);
816 dest_buf.AppendBlock(block_buf, 16);
840 FX_BYTE block_buf[16]; local
842 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16);
843 dest_buf.AppendBlock(block_buf, 16);
847 CRYPT_AESEncrypt(pContext->m_Context, block_buf, pContext->m_Block, 16);
848 dest_buf.AppendBlock(block_buf, 16);
850 FX_BYTE block_buf[1 local
[all...]
/external/e2fsprogs/resize/
H A Dresize2fs.c1445 char *block_buf = 0; local
1472 retval = ext2fs_get_array(rfs->old_fs->blocksize, 3, &block_buf);
1527 ino, 0, block_buf,
1581 if (block_buf)
1582 ext2fs_free_mem(&block_buf);
1848 char *block_buf = NULL; local
1854 retval = ext2fs_get_mem(fs->blocksize, &block_buf);
1876 memset(block_buf, 0, fs->blocksize);
1879 1, block_buf);
1887 if (block_buf)
[all...]
/external/e2fsprogs/misc/
H A De2image.c1249 char * block_buf; local
1281 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf);
1319 BLOCK_FLAG_READ_ONLY, block_buf,
1333 ino, BLOCK_FLAG_READ_ONLY, block_buf,
1350 ext2fs_free_mem(&block_buf);
H A Dtune2fs.c1493 char *block_buf = 0; local
1497 retval = ext2fs_get_mem(fs->blocksize * 3, &block_buf);
1545 retval = ext2fs_block_iterate3(fs, ino, 0, block_buf,
1553 ext2fs_free_mem(&block_buf);

Completed in 308 milliseconds