Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 61) sorted by relevance

123

/system/chre/util/include/chre/util/
Dmemory_pool_impl.h32 blocks()[i].mNextFreeBlockIndex = i + 1; in MemoryPool()
44 mNextFreeBlockIndex = blocks()[blockIndex].mNextFreeBlockIndex; in allocate()
47 return new (&blocks()[blockIndex].mElement) in allocate()
54 uintptr_t baseAddress = reinterpret_cast<uintptr_t>(&blocks()[0].mElement); in deallocate()
57 blocks()[blockIndex].mElement.~ElementType(); in deallocate()
58 blocks()[blockIndex].mNextFreeBlockIndex = mNextFreeBlockIndex; in deallocate()
65 *MemoryPool<ElementType, kSize>::blocks() { in blocks() function
Dmemory_pool.h101 MemoryPoolBlock *blocks();
/system/update_engine/payload_generator/
Dinplace_generator.cc74 vector<Extent> CompressExtents(const vector<uint64_t>& blocks) { in CompressExtents() argument
76 for (uint64_t block : blocks) { in CompressExtents()
209 const vector<Block>& blocks) { in CreateEdges() argument
211 i < blocks.size(); i++) { in CreateEdges()
213 if (blocks[i].reader == Vertex::kInvalidIndex || in CreateEdges()
214 blocks[i].writer == Vertex::kInvalidIndex) in CreateEdges()
217 if (blocks[i].reader == blocks[i].writer) in CreateEdges()
221 (*graph)[blocks[i].writer].out_edges.find(blocks[i].reader); in CreateEdges()
222 if (edge_it == (*graph)[blocks[i].writer].out_edges.end()) { in CreateEdges()
224 (*graph)[blocks[i].writer].out_edges.insert( in CreateEdges()
[all …]
Dmapfile_filesystem.cc99 string blocks = in GetFiles() local
101 size_t dash = blocks.find('-', 0); in GetFiles()
103 if (dash == string::npos && base::StringToUint64(blocks, &block_start)) { in GetFiles()
106 base::StringToUint64(blocks.substr(0, dash), &block_start) && in GetFiles()
107 base::StringToUint64(blocks.substr(dash + 1), &block_end)) { in GetFiles()
Dinplace_generator_unittest.cc185 vector<Block> blocks(9); in TEST_F() local
197 blocks[3].reader = graph.size() - 1; in TEST_F()
198 blocks[5].reader = graph.size() - 1; in TEST_F()
199 blocks[7].reader = graph.size() - 1; in TEST_F()
207 blocks[1].writer = graph.size() - 1; in TEST_F()
208 blocks[2].writer = graph.size() - 1; in TEST_F()
209 blocks[4].writer = graph.size() - 1; in TEST_F()
220 blocks[1].reader = graph.size() - 1; in TEST_F()
221 blocks[2].reader = graph.size() - 1; in TEST_F()
222 blocks[4].reader = graph.size() - 1; in TEST_F()
[all …]
Dinplace_generator.h101 const std::vector<Block>& blocks);
186 std::vector<Block>* blocks);
195 std::vector<Block>* blocks,
Dextent_ranges_unittest.cc38 uint64_t blocks = 0; in ExpectRangeEq() local
40 blocks += expected[i]; in ExpectRangeEq()
42 EXPECT_EQ(blocks, ranges.blocks()) << "line: " << line; in ExpectRangeEq()
253 EXPECT_EQ(40U, ranges.blocks()); in TEST()
Ddelta_diff_utils_unittest.cc487 EXPECT_EQ(0U, old_visited_blocks_.blocks()); in TEST_F()
488 EXPECT_EQ(0U, new_visited_blocks_.blocks()); in TEST_F()
510 EXPECT_EQ(kDefaultBlockCount, old_visited_blocks_.blocks()); in TEST_F()
511 EXPECT_EQ(kDefaultBlockCount, new_visited_blocks_.blocks()); in TEST_F()
639 old_visited_blocks_.blocks())); in TEST_F()
645 new_visited_blocks_.blocks())); in TEST_F()
690 EXPECT_EQ(permutation.size(), old_visited_blocks_.blocks()); in TEST_F()
691 EXPECT_EQ(permutation.size(), new_visited_blocks_.blocks()); in TEST_F()
Dext2_filesystem.cc68 set<uint64_t>* blocks = static_cast<set<uint64_t>*>(priv); in AddMetadataBlocks() local
77 blocks->insert(*blocknr); in AddMetadataBlocks()
316 file.extents = ranges.GetExtentsForBlockCount(ranges.blocks()); in GetFiles()
/system/bt/embdrv/sbc/decoder/srce/
Ddecoder-oina.c40 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc, in OI_CODEC_SBC_DecoderConfigureRaw() argument
64 if (blocks > SBC_BLOCKS_16) { in OI_CODEC_SBC_DecoderConfigureRaw()
80 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
Ddecoder-sbc.c383 uint8_t blocks; in OI_CODEC_SBC_FrameCount() local
399 subbands = mode = blocks = frameData[1]; in OI_CODEC_SBC_FrameCount()
402 blocks = block_values[(blocks & (BIT5 | BIT4)) >> 4]; in OI_CODEC_SBC_FrameCount()
406 frameLen = blocks * frameData[2]; in OI_CODEC_SBC_FrameCount()
Ddecoder-private.c105 frame->blocks = (d1 & (BIT5 | BIT4)) >> 4; in OI_SBC_ReadHeader()
106 frame->nrof_blocks = block_values[frame->blocks]; in OI_SBC_ReadHeader()
/system/extras/ext4_utils/
Dallocate.h87 int reserve_oob_blocks(struct block_allocation *alloc, int blocks);
88 int advance_blocks(struct block_allocation *alloc, int blocks);
89 int advance_oob_blocks(struct block_allocation *alloc, int blocks);
Dextent.c83 u64 blocks; in do_inode_allocate_extents() local
185 blocks = (u64)block_len * info.block_size / 512; in do_inode_allocate_extents()
190 inode->i_blocks_lo = blocks; in do_inode_allocate_extents()
191 inode->osd2.linux2.l_i_blocks_high = blocks >> 32; in do_inode_allocate_extents()
Dallocate.c614 int reserve_oob_blocks(struct block_allocation *alloc, int blocks) in reserve_oob_blocks() argument
616 struct region *oob = split_allocation(alloc, blocks); in reserve_oob_blocks()
632 static int advance_list_ptr(struct region_list *list, int blocks) in advance_list_ptr() argument
636 while (reg != NULL && blocks > 0) { in advance_list_ptr()
637 if (reg->len > list->partial_iter + blocks) { in advance_list_ptr()
638 list->partial_iter += blocks; in advance_list_ptr()
642 blocks -= (reg->len - list->partial_iter); in advance_list_ptr()
647 if (blocks > 0) in advance_list_ptr()
654 int advance_blocks(struct block_allocation *alloc, int blocks) in advance_blocks() argument
656 return advance_list_ptr(&alloc->list, blocks); in advance_blocks()
[all …]
Dindirect.c436 u64 blocks; in inode_attach_resize() local
476 blocks = ((u64)block_len + 1) * info.block_size / 512; in inode_attach_resize()
481 inode->i_blocks_lo = blocks; in inode_attach_resize()
482 inode->osd2.linux2.l_i_blocks_high = blocks >> 32; in inode_attach_resize()
/system/core/libsparse/
Dsparse_read.cpp77 int fd, int64_t offset, unsigned int blocks, unsigned int block, in process_raw_chunk() argument
82 int64_t len = blocks * s->block_size; in process_raw_chunk()
88 if (chunk_size / s->block_size != blocks) { in process_raw_chunk()
115 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) in process_fill_chunk() argument
119 int64_t len = (int64_t)blocks * s->block_size; in process_fill_chunk()
156 int fd __unused, unsigned int blocks, in process_skip_chunk() argument
164 int64_t len = (int64_t)blocks * s->block_size; in process_skip_chunk()
/system/core/init/
Dcompare-bootcharts.py86 blocks = f.read().split('\n\n')
87 for b in blocks:
/system/core/trusty/storage/proxy/
Drpmb.c112 cmd->blocks = req->reliable_write_size / MMC_BLOCK_SIZE; in rpmb_send()
134 cmd->blocks = req->write_size / MMC_BLOCK_SIZE; in rpmb_send()
157 cmd->blocks = req->read_size / MMC_BLOCK_SIZE; in rpmb_send()
/system/extras/libfec/
Dfec_verity.cpp232 uint32_t blocks = hashes[levels - i]; in verify_tree() local
233 debug("%u hash blocks on level %u", blocks, levels - i); in verify_tree()
236 v->hash_data_blocks = blocks; in verify_tree()
238 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
265 uint32_t blocks = hashes[levels - i]; in verify_tree() local
267 for (uint32_t j = 0; j < blocks; ++j) { in verify_tree()
303 if (blocks == v->hash_data_blocks) { in verify_tree()
310 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
Dfec_process.cpp63 size_t blocks = fec_div_round_up(count, FEC_BLOCKSIZE); in process() local
65 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; in process()
/system/extras/verity/fec/tests/
Dfec.py36 blocks = int(math.ceil(float(size) / blocksize))
37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
/system/sepolicy/public/
Dupdate_verifier.te12 # Read all blocks in dm wrapped system partition.
/system/sepolicy/prebuilts/api/26.0/public/
Dupdate_verifier.te12 # Read all blocks in dm wrapped system partition.
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc.h167 uint8_t blocks; member
328 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc,

123