Lines Matching refs:spb
693 blk += ctx->spb + ctx->bm_secs; in vhd_end_of_data()
1062 bat->spb = ctx->header.block_size >> VHD_SECTOR_SHIFT; in vhd_read_bat()
1814 size = vhd_bytes_padded(ctx->spb >> 3); in vhd_read_bitmap()
1863 size = vhd_sectors_to_bytes(ctx->spb); in vhd_read_block()
2048 b.spb = bat->spb; in vhd_write_bat()
2199 size = vhd_sectors_to_bytes(ctx->spb); in vhd_write_block()
2295 block = sector / ctx->spb; in vhd_offset()
2300 ctx->bm_secs + (sector % ctx->spb); in vhd_offset()
2345 ctx->spb = ctx->header.block_size >> VHD_SECTOR_SHIFT; in vhd_open_fast()
2346 ctx->bm_secs = secs_round_up_no_zero(ctx->spb >> 3); in vhd_open_fast()
2409 ctx->spb = ctx->header.block_size >> VHD_SECTOR_SHIFT; in vhd_open()
2410 ctx->bm_secs = secs_round_up_no_zero(ctx->spb >> 3); in vhd_open()
2767 ctx->bat.spb = ctx->header.block_size >> VHD_SECTOR_SHIFT; in vhd_create_bat()
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()
3224 size = vhd_sectors_to_bytes(ctx->spb + ctx->bm_secs + gap); in __vhd_io_allocate_block()
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()
3306 for (i = 0; i < ctx->spb; i++) in __vhd_io_dynamic_write()