Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 73) sorted by relevance

123

/system/extras/ext4_utils/
Dallocate.c119 reg->block, reg->block + reg->len - 1, reg->len)
139 fprintf(f, "%d", reg->block); in print_blocks()
141 fprintf(f, "%d-%d", reg->block, reg->block + reg->len - 1); in print_blocks()
149 u32 block, u32 len, int bg_num) in append_region() argument
153 reg->block = block; in append_region()
166 u32 block = bg->first_block + 2; in allocate_bg_inode_table() local
169 block += aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks + 1; in allocate_bg_inode_table()
176 aux_info.inode_table_blocks * info.block_size, block); in allocate_bg_inode_table()
203 u32 block = start; in reserve_blocks() local
204 for (i = 0; i < num && block % 8 != 0; i++, block++) { in reserve_blocks()
[all …]
Dext2simg.c59 unsigned int block; in build_sparse_ext() local
88 for (block = 0; block < last_block; block++) { in build_sparse_ext()
90 if (!bitmap_get_bit(block_bitmap, block)) { in build_sparse_ext()
92 u32 len_blocks = block - start_contiguous_block; in build_sparse_ext()
100 if (bitmap_get_bit(block_bitmap, block)) in build_sparse_ext()
101 start_contiguous_block = block; in build_sparse_ext()
Dallocate.h25 u32 block; member
74 u32 get_block(struct block_allocation *alloc, u32 block);
75 u32 get_oob_block(struct block_allocation *alloc, u32 block);
77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
93 u32 block, u32 len, int bg);
Dsha1.c42 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
43 |(rol(block->l[i],8)&0x00FF00FF))
45 # define blk0(i) block->l[i]
47 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
48 ^block->l[(i+2)&15]^block->l[i&15],1))
83 do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R01() argument
93 do_R2(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R2() argument
103 do_R3(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R3() argument
113 do_R4(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R4() argument
131 CHAR64LONG16 *block; local
[all …]
Dext4fixup.c190 static int read_block(int fd, unsigned long long block_num, void *block) in read_block() argument
201 len=read(fd, block, info.block_size); in read_block()
209 static int write_block(int fd, unsigned long long block_num, void *block) in write_block() argument
224 len=write(fd, block, info.block_size); in write_block()
235 unsigned char block[MAX_EXT4_BLOCK_SIZE]; in check_inode_bitmap() local
244 read_block(fd, inode_bitmap_block_num, block); in check_inode_bitmap()
247 if (bitmap_get_bit(block, i)) { in check_inode_bitmap()
248 bitmap_clear_bit(block, i); in check_inode_bitmap()
257 write_block(fd, inode_bitmap_block_num, block); in check_inode_bitmap()
444 unsigned char block[MAX_EXT4_BLOCK_SIZE]; in get_extent_idx() local
[all …]
/system/core/libsparse/
Dbacked_block.c27 unsigned int block; member
72 return bb->block; in backed_block_block()
181 if (!bb->next || bb->next->block > start->block) { in backed_block_list_move()
201 assert(a->block < b->block); in merge_bb()
210 if (a->block + block_len != b->block) { in merge_bb()
257 if (bbl->data_blocks->block > new_bb->block) { in queue_bb()
266 if (bbl->last_used && new_bb->block > bbl->last_used->block) in queue_bb()
272 for (; bb->next && bb->next->block < new_bb->block; bb = bb->next) in queue_bb()
293 unsigned int len, unsigned int block) in backed_block_add_fill() argument
300 bb->block = block; in backed_block_add_fill()
[all …]
Dbacked_block.h33 unsigned int len, unsigned int block);
35 unsigned int len, unsigned int block);
37 int64_t offset, unsigned int len, unsigned int block);
39 int64_t offset, unsigned int len, unsigned int block);
Dsparse.c56 void *data, unsigned int len, unsigned int block) in sparse_file_add_data() argument
58 return backed_block_add_data(s->backed_block_list, data, len, block); in sparse_file_add_data()
62 uint32_t fill_val, unsigned int len, unsigned int block) in sparse_file_add_fill() argument
64 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); in sparse_file_add_fill()
69 unsigned int block) in sparse_file_add_file() argument
72 len, block); in sparse_file_add_file()
76 int fd, int64_t file_offset, unsigned int len, unsigned int block) in sparse_file_add_fd() argument
79 len, block); in sparse_file_add_fd()
Dsparse_read.c102 int fd, int64_t offset, unsigned int blocks, unsigned int block, in process_raw_chunk() argument
117 ret = sparse_file_add_fd(s, fd, offset, len, block); in process_raw_chunk()
140 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) in process_fill_chunk() argument
158 ret = sparse_file_add_fill(s, fill_val, len, block); in process_fill_chunk()
182 unsigned int block __unused, uint32_t *crc32) in process_skip_chunk()
361 unsigned int block = 0; in sparse_file_read_normal() local
395 sparse_file_add_fill(s, buf[0], to_read, block); in sparse_file_read_normal()
397 sparse_file_add_fd(s, fd, offset, to_read, block); in sparse_file_read_normal()
402 block++; in sparse_file_read_normal()
/system/keymaster/
Docb.c150 typedef __m128i block; typedef
159 static inline block swap_if_le(block b) { in swap_if_le()
160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); in swap_if_le()
166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ in gen_offset()
168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ in gen_offset()
178 static inline block double_block(block bl) { in double_block()
188 typedef vector unsigned block; typedef
194 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
197 block bl; in gen_offset()
[all …]
Diso18033kdf.cpp48 for (size_t block = 0; block < num_blocks; block++) { in GenerateKey() local
63 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) || in GenerateKey()
78 size_t block_start = digest_size_ * block; in GenerateKey()
/system/sepolicy/
Ddevice.te70 # Partition layout block device
73 # factory reset protection block device
76 # System block device mounted on /system.
79 # Recovery block device.
82 # boot block device.
85 # Userdata block device mounted on /data.
88 # Cache block device mounted on /cache.
94 # Metadata block device used for encryption metadata.
102 # Bootctrl block device used by A/B update (update_engine, update_verifier).
Dblkid_untrusted.te1 # blkid for untrusted block devices
4 # Allowed read-only access to vold block devices to extract UUID/label
19 # Untrusted blkid should never be run on block devices holding sensitive data
Dfsck_untrusted.te1 # Any fsck program run on untrusted block devices
11 # Run fsck on vold block devices
19 # Untrusted fsck should never be run on block devices holding sensitive data
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc305 for (uint64_t block = 0; block < num_blocks; block++) { in DeltaMovedAndZeroBlocks() local
306 if (old_block_ids[block] == new_block_ids[block] && in DeltaMovedAndZeroBlocks()
307 !old_visited_blocks->ContainsBlock(block) && in DeltaMovedAndZeroBlocks()
308 !new_visited_blocks->ContainsBlock(block)) { in DeltaMovedAndZeroBlocks()
309 old_visited_blocks->AddBlock(block); in DeltaMovedAndZeroBlocks()
310 new_visited_blocks->AddBlock(block); in DeltaMovedAndZeroBlocks()
320 for (uint64_t block = old_num_blocks; block-- > 0; ) { in DeltaMovedAndZeroBlocks() local
321 if (old_block_ids[block] != 0 && !old_visited_blocks->ContainsBlock(block)) in DeltaMovedAndZeroBlocks()
322 old_blocks_map[old_block_ids[block]].push_back(block); in DeltaMovedAndZeroBlocks()
335 for (uint64_t block = 0; block < new_num_blocks; block++) { in DeltaMovedAndZeroBlocks() local
[all …]
Dextent_utils.h33 void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block);
63 for (uint64_t block = extent.start_block(); in ExpandExtents() local
64 block < (extent.start_block() + extent.num_blocks()); block++) { in ExpandExtents()
65 ret.push_back(block); in ExpandExtents()
Dblock_mapping.cc63 for (size_t block = 0; block < num_blocks; block++) { in AddManyDiskBlocks() local
64 (*block_ids)[block] = AddDiskBlock( in AddManyDiskBlocks()
65 fd, initial_byte_offset + block * block_size_); in AddManyDiskBlocks()
66 ret = ret && (*block_ids)[block] != -1; in AddManyDiskBlocks()
Dgraph_utils.cc52 uint64_t block) { in AddReadBeforeDep() argument
61 AppendBlockToExtents(&edge_it->second.extents, block); in AddReadBeforeDep()
71 for (uint64_t block = extent.start_block(), in AddReadBeforeDepExtents() local
73 block != block_end; ++block) { in AddReadBeforeDepExtents()
74 AddReadBeforeDep(src, dst, block); in AddReadBeforeDepExtents()
Dextent_ranges.h50 void AddBlock(uint64_t block);
51 void SubtractBlock(uint64_t block);
64 bool ContainsBlock(uint64_t block) const;
Dextent_ranges.cc57 void ExtentRanges::AddBlock(uint64_t block) { in AddBlock() argument
58 AddExtent(ExtentForRange(block, 1)); in AddBlock()
61 void ExtentRanges::SubtractBlock(uint64_t block) { in SubtractBlock() argument
62 SubtractExtent(ExtentForRange(block, 1)); in SubtractBlock()
195 bool ExtentRanges::ContainsBlock(uint64_t block) const { in ContainsBlock()
196 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1)); in ContainsBlock()
202 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0)); in ContainsBlock()
204 if (iter->start_block() <= block && in ContainsBlock()
205 block < iter->start_block() + iter->num_blocks()) { in ContainsBlock()
/system/core/libsparse/include/sparse/
Dsparse.h73 void *data, unsigned int len, unsigned int block);
91 uint32_t fill_val, unsigned int len, unsigned int block);
115 unsigned int block);
141 int fd, int64_t file_offset, unsigned int len, unsigned int block);
/system/extras/verity/
Dbuild_verity_metadata.py25 block = struct.pack("II256sI", MAGIC_NUMBER, VERSION, signature, table_len)
26 block += verity_table
27 block = block.ljust(METADATA_SIZE, '\x00')
28 return block
/system/core/rootdir/
Dinit-debug.rc2 write /sys/block/mmcblk0/max_read_speed ${persist.mmc.max_read_speed}
5 write /sys/block/mmcblk0/max_write_speed ${persist.mmc.max_write_speed}
8 write /sys/block/mmcblk0/cache_size ${persist.mmc.cache_size}
/system/bt/embdrv/sbc/decoder/include/
Doi_string.h59 #define OI_MemSet(block, val, size) memset((block), (val), (size)) argument
60 #define OI_MemZero(block, size) memset((block), 0, (size)) argument
/system/update_engine/common/
Dterminator.h38 static void set_exit_blocked(bool block) { exit_blocked_ = block ? 1 : 0; } in set_exit_blocked() argument

123