Home
last modified time | relevance | path

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

/device/google/bonito/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 …]
/device/google/marlin/recovery/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 …]
/device/google/crosshatch/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 …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/ufs/
Dufs.c685 unsigned int blk_num, blk_size; in ufs_enum() local
700 ufs_read_capacity(i, &blk_num, &blk_size); in ufs_enum()
701 if (blk_num && blk_size) { in ufs_enum()
703 i, blk_num, blk_size); in ufs_enum()