Home
last modified time | relevance | path

Searched refs:last_block (Results 1 – 5 of 5) sorted by relevance

/system/core/libsparse/
Dsparse.cpp73 unsigned int last_block = 0; in sparse_count_chunks() local
77 if (backed_block_block(bb) > last_block) { in sparse_count_chunks()
82 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), s->block_size); in sparse_count_chunks()
84 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) { in sparse_count_chunks()
116 unsigned int last_block = 0; in write_all_blocks() local
121 if (backed_block_block(bb) > last_block) { in write_all_blocks()
122 unsigned int blocks = backed_block_block(bb) - last_block; in write_all_blocks()
127 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), s->block_size); in write_all_blocks()
130 pad = s->len - (int64_t)last_block * s->block_size; in write_all_blocks()
270 unsigned int last_block = 0; in move_chunks_up_to_len() local
[all …]
/system/core/fs_mgr/libsnapshot/
Dcow_writer.cpp54 uint64_t last_block = new_block_start + num_blocks - 1; in AddRawBlocks() local
55 if (!ValidateNewBlock(last_block)) { in AddRawBlocks()
62 uint64_t last_block = new_block_start + num_blocks - 1; in AddZeroBlocks() local
63 if (!ValidateNewBlock(last_block)) { in AddZeroBlocks()
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp645 for (uint32_t last_block, block_number = 0; block_number < num_blocks; block_number++) { in ReadFibmap() local
656 if (!extents->empty() && block == last_block + 1) { in ReadFibmap()
668 last_block = block; in ReadFibmap()
/system/update_engine/sample_images/
Dgenerate_images.sh65 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \
/system/nfc/src/nfc/tags/
Drw_i93.cc1802 uint16_t length = p_resp->len, xx, block, first_block, last_block, num_blocks; in rw_i93_sm_detect_ndef() local
2094 last_block = (p_i93->ndef_tlv_last_offset / p_i93->block_size); in rw_i93_sm_detect_ndef()
2100 if (block <= last_block) { in rw_i93_sm_detect_ndef()
2118 + (p_i93->block_size * (block - last_block) + 1) - in rw_i93_sm_detect_ndef()
2133 last_block = (p_i93->ndef_tlv_last_offset / p_i93->block_size); in rw_i93_sm_detect_ndef()
2138 if ((block + p_i93->rw_offset) <= last_block) { in rw_i93_sm_detect_ndef()