Home
last modified time | relevance | path

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

/device/google/sunfish/gpt-utils/
Dgpt-utils.cpp409 int64_t gpt_header_offset; in gpt_get_state() local
428 gpt_header_offset = blk_size; in gpt_get_state()
430 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_get_state()
431 if (gpt_header_offset < 0) { in gpt_get_state()
437 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_get_state()
475 int64_t gpt_header_offset; in gpt_set_state() local
492 gpt_header_offset = blk_size; in gpt_set_state()
494 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_set_state()
495 if (gpt_header_offset < 0) { in gpt_set_state()
500 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_set_state()
[all …]
/device/google/coral/gpt-utils/
Dgpt-utils.cpp409 int64_t gpt_header_offset; in gpt_get_state() local
428 gpt_header_offset = blk_size; in gpt_get_state()
430 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_get_state()
431 if (gpt_header_offset < 0) { in gpt_get_state()
437 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_get_state()
475 int64_t gpt_header_offset; in gpt_set_state() local
492 gpt_header_offset = blk_size; in gpt_set_state()
494 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_set_state()
495 if (gpt_header_offset < 0) { in gpt_set_state()
500 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_set_state()
[all …]
/device/google/redbull/gpt-utils/
Dgpt-utils.cpp409 int64_t gpt_header_offset; in gpt_get_state() local
428 gpt_header_offset = blk_size; in gpt_get_state()
430 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_get_state()
431 if (gpt_header_offset < 0) { in gpt_get_state()
437 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_get_state()
475 int64_t gpt_header_offset; in gpt_set_state() local
492 gpt_header_offset = blk_size; in gpt_set_state()
494 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_set_state()
495 if (gpt_header_offset < 0) { in gpt_set_state()
500 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_set_state()
[all …]