Lines Matching refs:spb

224         u32                       spb;         /* sectors per block */  member
383 s->next_db = entry + s->spb + s->bm_secs; in find_next_free_block()
527 s->spb = s->vhd.header.block_size >> VHD_SECTOR_SHIFT; in vhd_initialize_dynamic_disk()
528 s->bm_secs = secs_round_up_no_zero(s->spb >> 3); in vhd_initialize_dynamic_disk()
633 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()
1196 sec = sector % s->spb; in read_bitmap_cache_span()
1197 blk = sector / s->spb; in read_bitmap_cache_span()
1200 return MIN(nr_secs, s->spb - sec); in read_bitmap_cache_span()
1206 for (ret = 0; sec < s->spb && ret < nr_secs; sec++, ret++) in read_bitmap_cache_span()
1333 req->treq.sec = s->bat.pbw_blk * s->spb; in schedule_zero_bm_write()
1417 size = vhd_sectors_to_bytes(s->spb + s->bm_secs + gap); in allocate_block()
1458 blk = treq.sec / s->spb; in schedule_data_read()
1459 sec = treq.sec % s->spb; in schedule_data_read()
1503 blk = treq.sec / s->spb; in schedule_data_write()
1504 sec = treq.sec % s->spb; in schedule_data_write()
1577 req->treq.sec = blk * s->spb; in schedule_bitmap_read()
1620 req->treq.sec = blk * s->spb; in schedule_bitmap_write()
1650 blk = treq.sec / s->spb; in __vhd_queue_request()
1694 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_read()
1711 err = schedule_bitmap_read(s, 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()
1799 err = schedule_bitmap_read(s, clone.sec / s->spb); in vhd_queue_write()
1809 clone.secs = MIN(clone.secs, s->spb - (clone.sec % s->spb)); in vhd_queue_write()
1851 "err: %d\n", r->treq.sec, r->treq.sec / s->spb, err); in signal_completion()
1888 u32 sec = r->treq.sec % s->spb; in start_new_bitmap_transaction()
2009 s->next_db = s->bat.pbw_offset + s->spb + s->bm_secs; in finish_bat_write()
2038 blk = req->treq.sec / s->spb; in finish_zero_bm_write()
2072 blk = req->treq.sec / s->spb; in finish_bitmap_read()
2124 blk = req->treq.sec / s->spb; in finish_bitmap_write()
2145 req->treq.sec, req->treq.sec / s->spb); in finish_data_read()
2162 blk = req->treq.sec / s->spb; in finish_data_write()
2163 sec = req->treq.sec % s->spb; in finish_data_write()
2172 req->treq.sec / s->spb, tx->started, tx->finished); in finish_data_write()
2184 req->treq.sec, req->treq.sec / s->spb); in finish_data_write()
2205 io->u.c.nbytes, req->treq.sec / s->spb, in vhd_complete()
2206 bat_entry(s, req->treq.sec / s->spb)); in vhd_complete()