Home
last modified time | relevance | path

Searched refs:spb (Results 1 – 10 of 10) sorted by relevance

/xen-4.10.0-shim-comet/tools/blktap2/vhd/lib/
A Dvhd-util-coalesce.c71 sec = block * vhd->spb; in vhd_util_coalesce_block()
80 err = vhd_io_read(vhd, buf, sec, vhd->spb); in vhd_util_coalesce_block()
86 err = vhd_io_write(parent, buf, sec, vhd->spb); in vhd_util_coalesce_block()
88 err = __raw_io_write(parent_fd, buf, sec, vhd->spb); in vhd_util_coalesce_block()
96 for (i = 0; i < vhd->spb; i++) { in vhd_util_coalesce_block()
100 for (secs = 0; i + secs < vhd->spb; secs++) in vhd_util_coalesce_block()
A Dlibvhd.c693 blk += ctx->spb + ctx->bm_secs; in vhd_end_of_data()
2048 b.spb = bat->spb; in vhd_write_bat()
2295 block = sector / ctx->spb; in vhd_offset()
3007 blk = sector / ctx->spb; in __vhd_io_dynamic_read_link()
3008 sec = sector % ctx->spb; in __vhd_io_dynamic_read_link()
3014 cnt = MIN(secs, ctx->spb); in __vhd_io_dynamic_read_link()
3028 cnt = MIN(secs, ctx->spb - sec); in __vhd_io_dynamic_read_link()
3268 blk = sector / ctx->spb; in __vhd_io_dynamic_write()
3269 sec = sector % ctx->spb; in __vhd_io_dynamic_write()
3285 cnt = MIN(secs, ctx->spb - sec); in __vhd_io_dynamic_write()
[all …]
A Dvhd-util-resize.c61 return secs / vhd->spb; in secs_to_blocks_down()
69 blocks = secs / vhd->spb; in secs_to_blocks_up()
70 if (secs % vhd->spb) in secs_to_blocks_up()
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()
575 end = blk + vhd->spb + vhd->bm_secs; in vhd_next_block_offset()
832 new_bat.spb = vhd->bat.spb; in vhd_add_bat_entries()
A Dvhd-util-read.c334 blk = cur / vhd->spb; in vhd_print_logical_to_physical()
335 lsec = cur % vhd->spb; in vhd_print_logical_to_physical()
447 blk = cur / vhd->spb; in vhd_test_bitmap()
448 sec = cur % vhd->spb; in vhd_test_bitmap()
A Dvhd-util-scan.c669 vhd->spb = vhd->header.block_size >> VHD_SECTOR_SHIFT; in vhd_util_scan_read_volume_headers()
670 vhd->bm_secs = secs_round_up_no_zero(vhd->spb >> 3); in vhd_util_scan_read_volume_headers()
A Dlibvhd-journal.c812 bat->spb = vhd->header.block_size >> VHD_SECTOR_SHIFT; in vhd_journal_read_bat()
1389 size = vhd_sectors_to_bytes(vhd->spb); in vhd_journal_add_block()
A Dvhd-util-check.c557 block_size = vhd->spb + vhd->bm_secs; in vhd_util_check_bat()
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dblock-vhd.c633 s->spb = s->spp = 1; in __vhd_open()
643 SPB = s->spb; in __vhd_open()
1024 n = s->spb >> 3; in bitmap_full()
1148 blk = sector / s->spb; in read_bitmap_cache()
1149 sec = sector % s->spb; in read_bitmap_cache()
1694 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_read()
1715 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_read()
1722 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_read()
1776 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_write()
1798 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_write()
[all …]
/xen-4.10.0-shim-comet/tools/blktap2/include/
A Dlibvhd.h131 uint32_t spb; member
147 uint32_t spb; member
/xen-4.10.0-shim-comet/tools/blktap2/vhd/
A Dvhd-update.c119 size = vhd_bytes_padded(journal->vhd.spb / 8); in update_vhd()

Completed in 25 milliseconds