Searched refs:vhd_sectors_to_bytes (Results 1 – 8 of 8) sorted by relevance
/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/ |
A D | vhd-util-coalesce.c | 42 off = lseek(fd, vhd_sectors_to_bytes(sec), SEEK_SET); in __raw_io_write() 45 vhd_sectors_to_bytes(sec), -errno); in __raw_io_write() 49 ret = write(fd, buf, vhd_sectors_to_bytes(secs)); in __raw_io_write() 50 if (ret == vhd_sectors_to_bytes(secs)) in __raw_io_write() 54 vhd_sectors_to_bytes(secs), ret, -errno); in __raw_io_write() 106 buf + vhd_sectors_to_bytes(i), in vhd_util_coalesce_block() 110 buf + vhd_sectors_to_bytes(i), in vhd_util_coalesce_block()
|
A D | vhd-util-resize.c | 85 new_eof = vhd->footer.curr_size - vhd_sectors_to_bytes(secs); in vhd_fixed_shrink() 138 size = vhd_sectors_to_bytes(secs); in vhd_fixed_grow() 248 size = vhd_sectors_to_bytes(vhd->bm_secs); in vhd_move_block() 253 src_off = vhd_sectors_to_bytes(src_off); in vhd_move_block() 275 size = vhd_sectors_to_bytes(vhd->spb); in vhd_move_block() 292 vhd_sectors_to_bytes(vhd->bm_secs + vhd->spb)); in vhd_move_block() 307 off = vhd_sectors_to_bytes(vhd->bat.bat[dest]); in vhd_clobber_block() 661 vhd_sectors_to_bytes(fb.offset), in vhd_check_for_clobber() 904 bat_size = vhd_sectors_to_bytes(bat_secs); in vhd_dynamic_grow() 911 map_size = vhd_sectors_to_bytes(map_secs); in vhd_dynamic_grow() [all …]
|
A D | vhd-util-read.c | 326 if (vhd_sectors_to_bytes(sector + count) > vhd->footer.curr_size) { in vhd_print_logical_to_physical() 340 offset = vhd_sectors_to_bytes(offset); in vhd_print_logical_to_physical() 369 conv(hex, vhd_sectors_to_bytes(offset)))); in vhd_print_bat() 420 vhd_sectors_to_bytes(vhd->bm_secs)); in vhd_print_bitmap() 437 if (vhd_sectors_to_bytes(sector + count) > vhd->footer.curr_size) { in vhd_test_bitmap() 490 size = vhd_sectors_to_bytes(vhd->batmap.header.batmap_size); in vhd_print_batmap() 558 if (vhd_sectors_to_bytes(sec + count) > vhd->footer.curr_size) in vhd_read_data() 561 max = MIN(vhd_sectors_to_bytes(count), VHD_BLOCK_SIZE); in vhd_read_data() 573 write_full(STDOUT_FILENO, buf, vhd_sectors_to_bytes(secs)); in vhd_read_data()
|
A D | libvhd.c | 632 hdr_end += vhd_sectors_to_bytes(hdr_secs); in vhd_end_of_headers() 637 vhd_sectors_to_bytes(map_secs)); in vhd_end_of_headers() 698 *end = vhd_sectors_to_bytes(max); in vhd_end_of_data() 1813 off = vhd_sectors_to_bytes(blk); in vhd_read_bitmap() 1863 size = vhd_sectors_to_bytes(ctx->spb); in vhd_read_block() 2159 off = vhd_sectors_to_bytes(blk); in vhd_write_bitmap() 2199 size = vhd_sectors_to_bytes(ctx->spb); in vhd_write_block() 3029 src = data + vhd_sectors_to_bytes(sec); in __vhd_io_dynamic_read_link() 3043 buf += vhd_sectors_to_bytes(cnt); in __vhd_io_dynamic_read_link() 3075 size = vhd_sectors_to_bytes(secs); in __raw_read_link() [all …]
|
A D | libvhd-journal.c | 600 size = vhd_sectors_to_bytes(batmap.header.batmap_size); in vhd_journal_add_batmap() 873 if (entry.size != vhd_sectors_to_bytes(batmap->header.batmap_size)) in vhd_journal_read_batmap_map() 1369 off = vhd_sectors_to_bytes(blk); in vhd_journal_add_block() 1372 size = vhd_sectors_to_bytes(vhd->bm_secs); in vhd_journal_add_block() 1388 off += vhd_sectors_to_bytes(vhd->bm_secs); in vhd_journal_add_block() 1389 size = vhd_sectors_to_bytes(vhd->spb); in vhd_journal_add_block()
|
A D | vhd-util-check.c | 261 vhd_sectors_to_bytes(batmap->header.batmap_size)) > in vhd_util_check_validate_batmap()
|
/xen-4.10.0-shim-comet/tools/blktap2/include/ |
A D | libvhd.h | 169 vhd_sectors_to_bytes(uint64_t sectors) in vhd_sectors_to_bytes() function 177 return vhd_sectors_to_bytes(secs_round_up_no_zero(bytes)); in vhd_bytes_padded() 209 return vhd_sectors_to_bytes(loc->data_space); in vhd_parent_locator_size()
|
/xen-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | block-vhd.c | 1241 vhd_sectors_to_bytes(req->treq.secs), in aio_read() 1257 vhd_sectors_to_bytes(req->treq.secs), in aio_write() 1331 offset = vhd_sectors_to_bytes(lb_end); in schedule_zero_bm_write() 1454 offset = vhd_sectors_to_bytes(treq.sec); in schedule_data_read() 1467 offset = vhd_sectors_to_bytes(offset); in schedule_data_read() 1499 offset = vhd_sectors_to_bytes(treq.sec); in schedule_data_write() 1520 offset = vhd_sectors_to_bytes(offset); in schedule_data_write() 1568 offset = vhd_sectors_to_bytes(offset); in schedule_bitmap_read() 1615 offset = vhd_sectors_to_bytes(offset); in schedule_bitmap_write() 1736 treq.buf += vhd_sectors_to_bytes(clone.secs); in vhd_queue_read() [all …]
|
Completed in 22 milliseconds