Home | History | Annotate | Download | only in qemu

Lines Matching refs:tmp_buf

622 tmp_buf[SECTOR_SIZE];
633 if (bdrv_read(bs, sector_num, tmp_buf, 1) < 0)
635 memcpy(buf, tmp_buf + (offset & (SECTOR_SIZE - 1)), len);
656 if (bdrv_read(bs, sector_num, tmp_buf, 1) < 0)
658 memcpy(buf, tmp_buf, count);
666 uint8_t tmp_buf[SECTOR_SIZE];
677 if (bdrv_read(bs, sector_num, tmp_buf, 1) < 0)
679 memcpy(tmp_buf + (offset & (SECTOR_SIZE - 1)), buf, len);
680 if (bdrv_write(bs, sector_num, tmp_buf, 1) < 0)
702 if (bdrv_read(bs, sector_num, tmp_buf, 1) < 0)
704 memcpy(tmp_buf, buf, count);
705 if (bdrv_write(bs, sector_num, tmp_buf, 1) < 0)