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()
258 unsigned int last_block = 0; in move_chunks_up_to_len() local
[all …]
/system/vold/
DEncryptInplace.cpp343 static u64 last_block = (u64)-1; in log_progress_f2fs() local
346 if (completed || (last_block != (u64)-1 && block != last_block + 1)) { in log_progress_f2fs()
347 LOG(INFO) << "Encrypted to block " << last_block; in log_progress_f2fs()
348 last_block = -1; in log_progress_f2fs()
352 if (!completed && (last_block == (u64)-1 || block != last_block + 1)) { in log_progress_f2fs()
358 last_block = block; in log_progress_f2fs()
/system/core/fs_mgr/libfiemap_writer/
Dfiemap_writer.cpp542 for (uint32_t last_block, block_number = 0; block_number < num_blocks; block_number++) { in ReadFibmap() local
553 if (!extents->empty() && block == last_block + 1) { in ReadFibmap()
561 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.cc1664 uint16_t length = p_resp->len, xx, block, first_block, last_block, num_blocks; in rw_i93_sm_detect_ndef() local
1943 last_block = (p_i93->ndef_tlv_last_offset / p_i93->block_size); in rw_i93_sm_detect_ndef()
1946 if (block <= last_block) { in rw_i93_sm_detect_ndef()
1964 + (p_i93->block_size * (block - last_block) + 1) - in rw_i93_sm_detect_ndef()
1979 last_block = (p_i93->ndef_tlv_last_offset / p_i93->block_size); in rw_i93_sm_detect_ndef()
1984 if ((block + p_i93->rw_offset) <= last_block) { in rw_i93_sm_detect_ndef()