Lines Matching refs:block_size
1128 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()
1188 uint32_t block_size = 0; in gpt_get_header() local
1209 block_size = gpt_get_block_size(fd); in gpt_get_header()
1210 if (block_size == 0) in gpt_get_header()
1218 hdr = (uint8_t*)malloc(block_size); in gpt_get_header()
1224 hdr_offset = block_size; in gpt_get_header()
1226 hdr_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_get_header()
1233 if (blk_rw(fd, 0, hdr_offset, hdr, block_size)) { in gpt_get_header()
1256 uint32_t block_size = 0; in gpt_get_pentry_arr() local
1268 block_size = gpt_get_block_size(fd); in gpt_get_pentry_arr()
1269 if (!block_size) { in gpt_get_pentry_arr()
1274 pentries_start = GET_8_BYTES(hdr + PENTRIES_OFFSET) * block_size; in gpt_get_pentry_arr()
1302 uint32_t block_size = 0; in gpt_set_pentry_arr() local
1311 block_size = gpt_get_block_size(fd); in gpt_set_pentry_arr()
1312 if (!block_size) { in gpt_set_pentry_arr()
1317 ALOGI("%s : Block size is %d", __func__, block_size); in gpt_set_pentry_arr()
1318 pentries_start = GET_8_BYTES(hdr + PENTRIES_OFFSET) * block_size; in gpt_set_pentry_arr()
1437 disk->block_size = gpt_get_block_size(fd); in gpt_disk_get_disk_info()