Lines Matching refs:BDRV_SECTOR_SIZE
1156 int64_t end = QEMU_ALIGN_DOWN(n, BDRV_SECTOR_SIZE); in find_nonzero()
1158 for (i = 0; i < end; i += BDRV_SECTOR_SIZE) { in find_nonzero()
1159 if (!buffer_is_zero(buf + i, BDRV_SECTOR_SIZE)) { in find_nonzero()
1189 is_zero = buffer_is_zero(buf, BDRV_SECTOR_SIZE); in is_allocated_sectors()
1191 buf += BDRV_SECTOR_SIZE; in is_allocated_sectors()
1192 if (is_zero != buffer_is_zero(buf, BDRV_SECTOR_SIZE)) { in is_allocated_sectors()
1253 buf += BDRV_SECTOR_SIZE * *pnum; in is_allocated_sectors_min()
1261 buf += BDRV_SECTOR_SIZE * *pnum; in is_allocated_sectors_min()
1293 chsize = BDRV_SECTOR_SIZE; in compare_buffers()
1739 uint64_t offset = (sector_num - src_cur_offset) * BDRV_SECTOR_SIZE; in convert_iteration_sectors()
1752 count = n * BDRV_SECTOR_SIZE; in convert_iteration_sectors()
1767 count = BDRV_SECTOR_SIZE; in convert_iteration_sectors()
1780 n = DIV_ROUND_UP(count, BDRV_SECTOR_SIZE); in convert_iteration_sectors()
1861 memset(buf, 0, BDRV_SECTOR_SIZE); in convert_co_read()
1870 buf += n * BDRV_SECTOR_SIZE; in convert_co_read()
1907 !buffer_is_zero(buf, n * BDRV_SECTOR_SIZE))) in convert_co_write()
1935 buf += n * BDRV_SECTOR_SIZE; in convert_co_write()
1988 buf = blk_blockalign(s->target, s->buf_sectors * BDRV_SECTOR_SIZE); in convert_co_do_copy()
2032 sector_num * BDRV_SECTOR_SIZE, strerror(-ret)); in convert_co_do_copy()
2037 memset(buf, 0x00, n * BDRV_SECTOR_SIZE); in convert_co_do_copy()
2063 sector_num * BDRV_SECTOR_SIZE, strerror(-ret)); in convert_co_do_copy()
2262 .buf_sectors = IO_BUF_SIZE / BDRV_SECTOR_SIZE, in img_convert()
2338 } else if (!QEMU_IS_ALIGNED(sval, BDRV_SECTOR_SIZE) || in img_convert()
2339 sval / BDRV_SECTOR_SIZE > MAX_BUF_SECTORS) { in img_convert()
2343 BDRV_SECTOR_SIZE, MAX_BUF_SECTORS * BDRV_SECTOR_SIZE); in img_convert()
2347 s.min_sparse = sval / BDRV_SECTOR_SIZE; in img_convert()
2508 BDRV_SECTOR_SIZE); in img_convert()
2511 bdi.cluster_size / BDRV_SECTOR_SIZE); in img_convert()
2580 s.total_sectors * BDRV_SECTOR_SIZE, &error_abort); in img_convert()
2741 BDRV_SECTOR_SIZE)); in img_convert()
2779 s.cluster_sectors = bdi.cluster_size / BDRV_SECTOR_SIZE; in img_convert()