Lines Matching refs:blk

1517 vhdx_create_new_headers(BlockBackend *blk, uint64_t image_size,  in vhdx_create_new_headers()  argument
1520 BlockDriverState *bs = blk_bs(blk); in vhdx_create_new_headers()
1583 vhdx_create_new_metadata(BlockBackend *blk, uint64_t image_size, in vhdx_create_new_metadata() argument
1676 ret = blk_co_pwrite(blk, metadata_offset, VHDX_HEADER_BLOCK_SIZE, buffer, 0); in vhdx_create_new_metadata()
1681 ret = blk_co_pwrite(blk, metadata_offset + (64 * KiB), in vhdx_create_new_metadata()
1703 vhdx_create_bat(BlockBackend *blk, BDRVVHDXState *s, in vhdx_create_bat() argument
1728 ret = blk_co_truncate(blk, data_file_offset, false, PREALLOC_MODE_OFF, in vhdx_create_bat()
1734 ret = blk_co_truncate(blk, data_file_offset + image_size, false, in vhdx_create_bat()
1746 has_zero_init = bdrv_has_zero_init(blk_bs(blk)); in vhdx_create_bat()
1768 vhdx_update_bat_table_entry(blk_bs(blk), s, &sinfo, &unused, &unused, in vhdx_create_bat()
1773 ret = blk_co_pwrite(blk, file_offset, length, s->bat, 0); in vhdx_create_bat()
1795 vhdx_create_new_region_table(BlockBackend *blk, uint64_t image_size, in vhdx_create_new_region_table() argument
1867 ret = vhdx_create_bat(blk, s, image_size, type, use_zero_blocks, in vhdx_create_new_region_table()
1874 ret = blk_co_pwrite(blk, VHDX_REGION_TABLE_OFFSET, VHDX_HEADER_BLOCK_SIZE, in vhdx_create_new_region_table()
1881 ret = blk_co_pwrite(blk, VHDX_REGION_TABLE2_OFFSET, VHDX_HEADER_BLOCK_SIZE, in vhdx_create_new_region_table()
1915 BlockBackend *blk = NULL; in vhdx_co_create() local
2011 blk = blk_co_new_with_bs(bs, BLK_PERM_WRITE | BLK_PERM_RESIZE, BLK_PERM_ALL, in vhdx_co_create()
2013 if (!blk) { in vhdx_co_create()
2017 blk_set_allow_write_beyond_eof(blk, true); in vhdx_co_create()
2026 ret = blk_co_pwrite(blk, VHDX_FILE_ID_OFFSET, sizeof(signature), &signature, in vhdx_co_create()
2033 ret = blk_co_pwrite(blk, VHDX_FILE_ID_OFFSET + sizeof(signature), in vhdx_co_create()
2043 ret = vhdx_create_new_headers(blk, image_size, log_size); in vhdx_co_create()
2050 ret = vhdx_create_new_region_table(blk, image_size, block_size, 512, in vhdx_co_create()
2058 ret = vhdx_create_new_metadata(blk, image_size, block_size, 512, in vhdx_co_create()
2067 blk_co_unref(blk); in vhdx_co_create()