Home
last modified time | relevance | path

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

/hardware/qcom/msm8998/gpt-utils/
Dgpt-utils.cpp293 uint32_t blk_size = 0; in gpt2_set_boot_chain() local
296 if (ioctl(fd, BLKSSZGET, &blk_size) != 0) { in gpt2_set_boot_chain()
302 gpt_header = (uint8_t*)malloc(blk_size); in gpt2_set_boot_chain()
308 gpt2_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt2_set_boot_chain()
317 r = blk_rw(fd, 0, blk_size, gpt_header, blk_size); in gpt2_set_boot_chain()
324 GET_8_BYTES(gpt_header + PENTRIES_OFFSET) * blk_size; in gpt2_set_boot_chain()
349 r = blk_rw(fd, 0, gpt2_header_offset, gpt_header, blk_size); in gpt2_set_boot_chain()
355 GET_8_BYTES(gpt_header + PENTRIES_OFFSET) * blk_size; in gpt2_set_boot_chain()
373 r = blk_rw(fd, 1, gpt2_header_offset, gpt_header, blk_size); in gpt2_set_boot_chain()
406 uint32_t blk_size = 0; in gpt_get_state() local
[all …]