Lines Matching refs:sector
748 int64_t sector, total_sectors; in bdrv_commit() local
796 for (sector = 0; sector < total_sectors; sector += n) { in bdrv_commit()
797 if (drv->bdrv_is_allocated(bs, sector, COMMIT_BUF_SECTORS, &n)) { in bdrv_commit()
799 if (bdrv_read(bs, sector, buf, n) != 0) { in bdrv_commit()
804 if (bdrv_write(bs->backing_hd, sector, buf, n) != 0) { in bdrv_commit()
1158 uint8_t sector; /* starting sector */ member
2084 if (req1->sector > req2->sector) { in multiwrite_req_compare()
2086 } else if (req1->sector < req2->sector) { in multiwrite_req_compare()
2110 int64_t oldreq_last = reqs[outidx].sector + reqs[outidx].nb_sectors; in multiwrite_merge()
2114 if (reqs[i].sector <= oldreq_last) { in multiwrite_merge()
2138 size = (reqs[i].sector - reqs[outidx].sector) << 9; in multiwrite_merge()
2142 if (reqs[i].sector > oldreq_last) { in multiwrite_merge()
2143 size_t zero_bytes = (reqs[i].sector - oldreq_last) << 9; in multiwrite_merge()
2159 reqs[outidx].sector = reqs[i].sector; in multiwrite_merge()
2228 acb = bdrv_aio_writev(bs, reqs[i].sector, reqs[i].qiov, in bdrv_aio_multiwrite()
2640 int bdrv_get_dirty(BlockDriverState *bs, int64_t sector) in bdrv_get_dirty() argument
2642 int64_t chunk = sector / (int64_t)BDRV_SECTORS_PER_DIRTY_CHUNK; in bdrv_get_dirty()
2645 (sector << BDRV_SECTOR_BITS) < bdrv_getlength(bs)) { in bdrv_get_dirty()