Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 8 of 8) sorted by relevance

/device/google/bonito/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h138 uint32_t block_size; member
/device/google/coral/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h138 uint32_t block_size; member
/device/google/crosshatch/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h137 uint32_t block_size; member
/device/google/cuttlefish/host/commands/secure_env/
Dencrypted_serializable.cpp255 uint32_t block_size = 0; in Deserialize() local
256 if (!keymaster::copy_uint32_from_buf(buf_ptr, end, &block_size)) { in Deserialize()
260 if (block_size != BLOCK_SIZE) { in Deserialize()
261 LOG(ERROR) << "Unexpected block size: was " << block_size in Deserialize()
/device/google/cuttlefish/tools/
Dcreate_base_image_arm.sh629 block_size=`sudo tune2fs -l ${IMAGE} | grep "Block size:" | sed 's/.*: *//'`
632 fs_size=$(( block_count*block_size ))