Home
last modified time | relevance | path

Searched refs:block_num (Results 1 – 3 of 3) sorted by relevance

/system/extras/ext4_utils/
Dext4fixup.c190 static int read_block(int fd, unsigned long long block_num, void *block) in read_block() argument
195 off = block_num * info.block_size; in read_block()
198 critical_error_errno("failed to seek to block %lld\n", block_num); in read_block()
203 critical_error_errno("failed to read block %lld\n", block_num); in read_block()
209 static int write_block(int fd, unsigned long long block_num, void *block) in write_block() argument
218 off = block_num * info.block_size; in write_block()
221 critical_error_errno("failed to seek to block %lld\n", block_num); in write_block()
226 critical_error_errno("failed to write block %lld\n", block_num); in write_block()
Dallocate.c675 u32 block_num = allocate_block(); in get_xattr_block_for_inode() local
686 inode->i_file_acl_lo = cpu_to_le32(block_num); in get_xattr_block_for_inode()
688 int result = sparse_file_add_data(ext4_sparse_file, block, info.block_size, block_num); in get_xattr_block_for_inode()
/system/keymaster/
Docb.c948 unsigned block_num = ctx->blocks_processed; in ae_encrypt() local
952 block_num += BPI; in ae_encrypt()
963 oa[3] = xor_block(oa[2], getL(ctx, ntz(block_num))); in ae_encrypt()
979 oa[7] = xor_block(oa[6], getL(ctx, ntz(block_num))); in ae_encrypt()
998 ctx->blocks_processed = block_num; in ae_encrypt()
1167 unsigned block_num = ctx->blocks_processed; in ae_decrypt() local
1171 block_num += BPI; in ae_decrypt()
1179 oa[3] = xor_block(oa[2], getL(ctx, ntz(block_num))); in ae_decrypt()
1190 oa[7] = xor_block(oa[6], getL(ctx, ntz(block_num))); in ae_decrypt()
1216 ctx->blocks_processed = block_num; in ae_decrypt()