Home
last modified time | relevance | path

Searched refs:nb_sectors (Results 1 – 11 of 11) sorted by relevance

/external/qemu/block/
Draw.c36 const uint8_t *buf, int nb_sectors) in check_write_unsafe() argument
44 if (sector_num == 0 && nb_sectors > 0) { in check_write_unsafe()
52 uint8_t *buf, int nb_sectors) in raw_read() argument
54 return bdrv_read(bs->file, sector_num, buf, nb_sectors); in raw_read()
70 const uint8_t *buf, int nb_sectors) in raw_write() argument
72 if (check_write_unsafe(bs, sector_num, buf, nb_sectors)) { in raw_write()
80 ret = bdrv_write(bs->file, 1, buf + 512, nb_sectors - 1); in raw_write()
88 return bdrv_write(bs->file, sector_num, buf, nb_sectors); in raw_write()
92 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_readv() argument
95 return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_readv()
[all …]
Dqcow2.c297 int nb_sectors, int *pnum) in qcow_is_allocated() argument
302 *pnum = nb_sectors; in qcow_is_allocated()
315 int64_t sector_num, uint8_t *buf, int nb_sectors) in qcow2_backing_read1() argument
318 if ((sector_num + nb_sectors) <= bs->total_sectors) in qcow2_backing_read1()
319 return nb_sectors; in qcow2_backing_read1()
324 memset(buf + n1 * 512, 0, 512 * (nb_sectors - n1)); in qcow2_backing_read1()
493 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
511 acb->remaining_sectors = nb_sectors; in qcow_aio_setup()
520 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
525 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in qcow_aio_readv()
[all …]
Draw-posix-aio.h31 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
40 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
Draw-posix.c386 uint8_t *buf, int nb_sectors) in raw_read() argument
391 nb_sectors * BDRV_SECTOR_SIZE); in raw_read()
392 if (ret == (nb_sectors * BDRV_SECTOR_SIZE)) in raw_read()
476 const uint8_t *buf, int nb_sectors) in raw_write() argument
480 nb_sectors * BDRV_SECTOR_SIZE); in raw_write()
481 if (ret == (nb_sectors * BDRV_SECTOR_SIZE)) in raw_write()
503 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_submit() argument
522 nb_sectors, cb, opaque, type); in raw_aio_submit()
527 return paio_submit(bs, s->fd, sector_num, qiov, nb_sectors, in raw_aio_submit()
532 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_readv() argument
[all …]
Draw-win32.c109 uint8_t *buf, int nb_sectors) in raw_read() argument
116 int count = nb_sectors * 512; in raw_read()
130 const uint8_t *buf, int nb_sectors) in raw_write() argument
137 int count = nb_sectors * 512; in raw_write()
Dqcow2-cluster.c324 int nb_sectors, int enc, in qcow2_encrypt_sectors() argument
333 for(i = 0; i < nb_sectors; i++) { in qcow2_encrypt_sectors()
346 uint8_t *buf, int nb_sectors) in qcow_read() argument
352 while (nb_sectors > 0) { in qcow_read()
353 n = nb_sectors; in qcow_read()
389 nb_sectors -= n; in qcow_read()
Dqcow2.h170 int64_t sector_num, uint8_t *buf, int nb_sectors);
196 int nb_sectors, int enc,
/external/qemu/
Dblock.c48 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
51 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
58 uint8_t *buf, int nb_sectors);
60 const uint8_t *buf, int nb_sectors);
899 int nb_sectors) in bdrv_check_request() argument
902 nb_sectors * BDRV_SECTOR_SIZE); in bdrv_check_request()
907 uint8_t *buf, int nb_sectors) in bdrv_read() argument
913 if (bdrv_check_request(bs, sector_num, nb_sectors)) in bdrv_read()
916 return drv->bdrv_read(bs, sector_num, buf, nb_sectors); in bdrv_read()
920 int nb_sectors, int dirty) in set_dirty_bitmap() argument
[all …]
Dposix-aio-compat.c569 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in paio_submit() argument
586 acb->aio_nbytes = nb_sectors * 512; in paio_submit()
/external/qemu/include/block/
Dblock_int.h57 uint8_t *buf, int nb_sectors);
59 const uint8_t *buf, int nb_sectors);
64 int nb_sectors, int *pnum);
69 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
72 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
87 const uint8_t *buf, int nb_sectors);
Dblock.h78 uint8_t *buf, int nb_sectors);
80 const uint8_t *buf, int nb_sectors);
88 const uint8_t *buf, int nb_sectors);
114 QEMUIOVector *iov, int nb_sectors,
117 QEMUIOVector *iov, int nb_sectors,
126 int nb_sectors; member
150 int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
198 const uint8_t *buf, int nb_sectors);