Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dext4fixup.c195 static int read_block(int fd, unsigned long long block_num, void *block) in read_block() argument
200 off = block_num * info.block_size; in read_block()
203 critical_error_errno("failed to seek to block %lld\n", block_num); in read_block()
208 critical_error_errno("failed to read block %lld\n", block_num); in read_block()
214 static int write_block(int fd, unsigned long long block_num, void *block) in write_block() argument
223 off = block_num * info.block_size; in write_block()
226 critical_error_errno("failed to seek to block %lld\n", block_num); in write_block()
231 critical_error_errno("failed to write block %lld\n", block_num); in write_block()
Dallocate.c697 u32 block_num = allocate_block(); in get_xattr_block_for_inode() local
708 inode->i_file_acl_lo = cpu_to_le32(block_num); in get_xattr_block_for_inode()
710 int result = sparse_file_add_data(ext4_sparse_file, block, info.block_size, block_num); in get_xattr_block_for_inode()
/system/keymaster/
Docb.c949 unsigned block_num = ctx->blocks_processed; in ae_encrypt() local
953 block_num += BPI; in ae_encrypt()
964 oa[3] = xor_block(oa[2], getL(ctx, ntz(block_num))); in ae_encrypt()
980 oa[7] = xor_block(oa[6], getL(ctx, ntz(block_num))); in ae_encrypt()
999 ctx->blocks_processed = block_num; in ae_encrypt()
1168 unsigned block_num = ctx->blocks_processed; in ae_decrypt() local
1172 block_num += BPI; in ae_decrypt()
1180 oa[3] = xor_block(oa[2], getL(ctx, ntz(block_num))); in ae_decrypt()
1191 oa[7] = xor_block(oa[6], getL(ctx, ntz(block_num))); in ae_decrypt()
1217 ctx->blocks_processed = block_num; in ae_decrypt()