HomeSort by relevance Sort by last modified time
    Searched refs:nb_sectors (Results 1 - 25 of 25) sorted by null

  /external/qemu/hw/
cdrom.c 41 int cdrom_read_toc(int nb_sectors, uint8_t *buf, int msf, int start_track)
73 lba_to_msf(q, nb_sectors);
76 cpu_to_be32wu((uint32_t *)q, nb_sectors);
85 int cdrom_read_toc_raw(int nb_sectors, uint8_t *buf, int msf, int session_num)
127 lba_to_msf(q, nb_sectors);
130 cpu_to_be32wu((uint32_t *)q, nb_sectors);
scsi-disk.h 33 int cdrom_read_toc(int nb_sectors, uint8_t *buf, int msf, int start_track);
34 int cdrom_read_toc_raw(int nb_sectors, uint8_t *buf, int msf, int session_num);
scsi-disk.c 351 uint64_t nb_sectors; local
753 bdrv_get_geometry(s->bdrv, &nb_sectors);
754 nb_sectors /= s->cluster_size;
756 if (nb_sectors) {
757 nb_sectors--;
759 s->max_lba = nb_sectors;
761 if (nb_sectors > UINT32_MAX)
762 nb_sectors = UINT32_MAX;
763 outbuf[0] = (nb_sectors >> 24) & 0xff;
764 outbuf[1] = (nb_sectors >> 16) & 0xff
935 uint64_t nb_sectors; local
    [all...]
  /external/qemu/block/
cow.c 134 int nb_sectors, int *num_same)
138 if (nb_sectors == 0) {
139 *num_same = nb_sectors;
148 for (*num_same = 1; *num_same < nb_sectors; (*num_same)++) {
157 int nb_sectors)
162 for (i = 0; i < nb_sectors; i++) {
173 uint8_t *buf, int nb_sectors)
178 while (nb_sectors > 0) {
179 if (cow_is_allocated(bs, sector_num, nb_sectors, &n)) {
195 nb_sectors -= n
    [all...]
raw.c 36 const uint8_t *buf, int nb_sectors)
44 if (sector_num == 0 && nb_sectors > 0) {
52 uint8_t *buf, int nb_sectors)
54 return bdrv_read(bs->file, sector_num, buf, nb_sectors);
70 const uint8_t *buf, int nb_sectors)
72 if (check_write_unsafe(bs, sector_num, buf, nb_sectors)) {
80 ret = bdrv_write(bs->file, 1, buf + 512, nb_sectors - 1);
88 return bdrv_write(bs->file, sector_num, buf, nb_sectors);
92 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
95 return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque)
    [all...]
raw-posix-aio.h 31 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
40 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
parallels.c 44 uint32_t nb_sectors; member in struct:parallels_header
86 bs->total_sectors = le32_to_cpu(ph.nb_sectors);
120 uint8_t *buf, int nb_sectors)
122 while (nb_sectors > 0) {
130 nb_sectors--;
qcow.c 219 int nb_sectors, int enc,
228 for(i = 0; i < nb_sectors; i++) {
380 int nb_sectors, int *pnum)
389 if (n > nb_sectors)
390 n = nb_sectors;
447 uint8_t *buf, int nb_sectors)
453 while (nb_sectors > 0) {
457 if (n > nb_sectors)
458 n = nb_sectors;
481 nb_sectors -= n
495 int nb_sectors; member in struct:QCowAIOCB
    [all...]
nbd.c 97 uint8_t *buf, int nb_sectors)
106 request.len = nb_sectors * 512;
127 const uint8_t *buf, int nb_sectors)
136 request.len = nb_sectors * 512;
vpc.c 373 uint8_t *buf, int nb_sectors)
380 while (nb_sectors > 0) {
385 if (sectors > nb_sectors) {
386 sectors = nb_sectors;
399 nb_sectors -= sectors;
407 const uint8_t *buf, int nb_sectors)
414 while (nb_sectors > 0) {
419 if (sectors > nb_sectors) {
420 sectors = nb_sectors;
434 nb_sectors -= sectors
    [all...]
qcow2.c 297 int nb_sectors, int *pnum)
302 *pnum = nb_sectors;
315 int64_t sector_num, uint8_t *buf, int nb_sectors)
318 if ((sector_num + nb_sectors) <= bs->total_sectors)
319 return nb_sectors;
324 memset(buf + n1 * 512, 0, 512 * (nb_sectors - n1));
493 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
511 acb->remaining_sectors = nb_sectors;
520 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
525 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0)
794 uint64_t nb_sectors; local
    [all...]
raw-posix.c 386 uint8_t *buf, int nb_sectors)
391 nb_sectors * BDRV_SECTOR_SIZE);
392 if (ret == (nb_sectors * BDRV_SECTOR_SIZE))
476 const uint8_t *buf, int nb_sectors)
480 nb_sectors * BDRV_SECTOR_SIZE);
481 if (ret == (nb_sectors * BDRV_SECTOR_SIZE))
503 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
522 nb_sectors, cb, opaque, type);
527 return paio_submit(bs, s->fd, sector_num, qiov, nb_sectors,
532 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
    [all...]
vmdk.c 571 int nb_sectors, int *pnum)
580 if (n > nb_sectors)
581 n = nb_sectors;
587 uint8_t *buf, int nb_sectors)
593 while (nb_sectors > 0) {
597 if (n > nb_sectors)
598 n = nb_sectors;
614 nb_sectors -= n;
622 const uint8_t *buf, int nb_sectors)
638 while (nb_sectors > 0)
    [all...]
cloop.c 132 uint8_t *buf, int nb_sectors)
137 for(i=0;i<nb_sectors;i++) {
raw-win32.c 109 uint8_t *buf, int nb_sectors)
116 int count = nb_sectors * 512;
130 const uint8_t *buf, int nb_sectors)
137 int count = nb_sectors * 512;
bochs.c 190 uint8_t *buf, int nb_sectors)
194 while (nb_sectors > 0) {
203 nb_sectors--;
qcow2.h 170 int64_t sector_num, uint8_t *buf, int nb_sectors);
196 int nb_sectors, int enc,
dmg.c 268 uint8_t *buf, int nb_sectors)
273 for(i=0;i<nb_sectors;i++) {
qcow2-cluster.c 324 int nb_sectors, int enc,
333 for(i = 0; i < nb_sectors; i++) {
346 uint8_t *buf, int nb_sectors)
352 while (nb_sectors > 0) {
353 n = nb_sectors;
389 nb_sectors -= n;
vvfat.c     [all...]
  /external/qemu/
block.c 46 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
49 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
56 uint8_t *buf, int nb_sectors);
58 const uint8_t *buf, int nb_sectors);
897 int nb_sectors)
900 nb_sectors * BDRV_SECTOR_SIZE);
905 uint8_t *buf, int nb_sectors)
911 if (bdrv_check_request(bs, sector_num, nb_sectors))
914 return drv->bdrv_read(bs, sector_num, buf, nb_sectors);
918 int nb_sectors, int dirty
977 int len, nb_sectors, count; local
1022 int len, nb_sectors, count; local
1176 uint64_t nb_sectors; local
1216 uint64_t nb_sectors; local
    [all...]
block.h 78 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 in struct:BlockRequest
150 int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
198 const uint8_t *buf, int nb_sectors);
block_int.h 57 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);
qemu-io.c 971 reqs[i].nb_sectors = reqs[i].qiov->size >> 9;
1490 int nb_sectors, remaining; local
1503 nb_sectors = cvtnum(argv[2]);
1505 nb_sectors = 1;
1507 remaining = nb_sectors;
1510 ret = bdrv_is_allocated(bs, offset >> 9, nb_sectors, &num);
1519 if (nb_sectors == 1)
1523 sum_alloc, nb_sectors, s1);
1541 int64_t nb_sectors; local
    [all...]
posix-aio-compat.c 569 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
586 acb->aio_nbytes = nb_sectors * 512;
592 //trace_paio_submit(acb, opaque, sector_num, nb_sectors, type);

Completed in 1220 milliseconds