Home | History | Annotate | Download | only in qemu

Lines Matching refs:BDRV_SECTOR_SIZE

796     buf = g_malloc(COMMIT_BUF_SECTORS * BDRV_SECTOR_SIZE);
901 return bdrv_check_byte_request(bs, sector_num * BDRV_SECTOR_SIZE,
902 nb_sectors * BDRV_SECTOR_SIZE);
978 uint8_t tmp_buf[BDRV_SECTOR_SIZE];
985 len = (BDRV_SECTOR_SIZE - offset) & (BDRV_SECTOR_SIZE - 1);
992 memcpy(buf, tmp_buf + (offset & (BDRV_SECTOR_SIZE - 1)), len);
1023 uint8_t tmp_buf[BDRV_SECTOR_SIZE];
1030 len = (BDRV_SECTOR_SIZE - offset) & (BDRV_SECTOR_SIZE - 1);
1037 memcpy(tmp_buf + (offset & (BDRV_SECTOR_SIZE - 1)), buf, len);
1102 return bdrv_pwrite_sync(bs, BDRV_SECTOR_SIZE * sector_num,
1103 buf, BDRV_SECTOR_SIZE * nb_sectors);
1140 return bs->total_sectors * BDRV_SECTOR_SIZE;
1174 uint8_t buf[BDRV_SECTOR_SIZE];
1677 (uint64_t)BDRV_SECTOR_SIZE);
1996 bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
2026 bs->wr_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
2424 iov.iov_len = nb_sectors * BDRV_SECTOR_SIZE;
2455 iov.iov_len = nb_sectors * BDRV_SECTOR_SIZE;