• Home
  • Raw
  • Download

Lines Matching refs:blk_size

293     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
410 if (ioctl(fd, BLKSSZGET, &blk_size) != 0) { in gpt_get_state()
415 gpt_header = (uint8_t*)malloc(blk_size); in gpt_get_state()
421 gpt_header_offset = blk_size; in gpt_get_state()
423 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_get_state()
430 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_get_state()
472 uint32_t blk_size = 0; in gpt_set_state() local
474 if (ioctl(fd, BLKSSZGET, &blk_size) != 0) { in gpt_set_state()
479 gpt_header = (uint8_t*)malloc(blk_size); in gpt_set_state()
485 gpt_header_offset = blk_size; in gpt_set_state()
487 gpt_header_offset = lseek64(fd, 0, SEEK_END) - blk_size; in gpt_set_state()
493 if (blk_rw(fd, 0, gpt_header_offset, gpt_header, blk_size)) { in gpt_set_state()
513 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, blk_size)) { in gpt_set_state()