Home
last modified time | relevance | path

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

12

/illumos-kvm-cmd/hw/
H A Dextboot.c29 uint64_t nb_sectors; member
33 uint16_t nb_sectors; member
73 uint64_t nb_sectors; in extboot_write_cmd() local
83 blen = cmd.xfer.nb_sectors * 512; in extboot_write_cmd()
90 bdrv_get_geometry(bs, &nb_sectors); in extboot_write_cmd()
94 cmd.query_geometry.nb_sectors = nb_sectors; in extboot_write_cmd()
97 err = bdrv_read(bs, cmd.xfer.sector, buf, cmd.xfer.nb_sectors); in extboot_write_cmd()
107 err = bdrv_write(bs, cmd.xfer.sector, buf, cmd.xfer.nb_sectors); in extboot_write_cmd()
H A Dscsi-disk.c721 uint64_t nb_sectors; in scsi_disk_emulate_mode_sense() local
761 nb_sectors = 0; in scsi_disk_emulate_mode_sense()
813 uint64_t nb_sectors; in scsi_disk_emulate_read_toc() local
848 uint64_t nb_sectors; in scsi_disk_emulate_command() local
920 if (!nb_sectors) in scsi_disk_emulate_command()
924 nb_sectors--; in scsi_disk_emulate_command()
961 if (!nb_sectors) in scsi_disk_emulate_command()
965 nb_sectors--; in scsi_disk_emulate_command()
1215 uint64_t nb_sectors; in scsi_disk_reset() local
1221 if (nb_sectors) { in scsi_disk_reset()
[all …]
H A Dcdrom.c41 int cdrom_read_toc(int nb_sectors, uint8_t *buf, int msf, int start_track) in cdrom_read_toc() argument
73 lba_to_msf(q, nb_sectors); in cdrom_read_toc()
76 cpu_to_be32wu((uint32_t *)q, nb_sectors); in cdrom_read_toc()
85 int cdrom_read_toc_raw(int nb_sectors, uint8_t *buf, int msf, int session_num) in cdrom_read_toc_raw() argument
127 lba_to_msf(q, nb_sectors); in cdrom_read_toc_raw()
130 cpu_to_be32wu((uint32_t *)q, nb_sectors); in cdrom_read_toc_raw()
/illumos-kvm-cmd/block/
H A Dcow.c134 int nb_sectors, int *num_same) in cow_is_allocated() argument
138 if (nb_sectors == 0) { in cow_is_allocated()
139 *num_same = nb_sectors; in cow_is_allocated()
157 int nb_sectors) in cow_update_bitmap() argument
162 for (i = 0; i < nb_sectors; i++) { in cow_update_bitmap()
173 uint8_t *buf, int nb_sectors) in cow_read() argument
178 while (nb_sectors > 0) { in cow_read()
195 nb_sectors -= n; in cow_read()
203 const uint8_t *buf, int nb_sectors) in cow_write() argument
209 buf, nb_sectors * 512); in cow_write()
[all …]
H A Draw.c13 uint8_t *buf, int nb_sectors) in raw_read() argument
15 return bdrv_read(bs->file, sector_num, buf, nb_sectors); in raw_read()
19 const uint8_t *buf, int nb_sectors) in raw_write() argument
21 return bdrv_write(bs->file, sector_num, buf, nb_sectors); in raw_write()
25 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_readv() argument
28 return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_readv()
32 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_writev() argument
35 return bdrv_aio_writev(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_writev()
68 static int raw_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors) in raw_discard() argument
70 return bdrv_discard(bs->file, sector_num, nb_sectors); in raw_discard()
H A Dblkverify.c26 int nb_sectors; member
64 acb->nb_sectors); in blkverify_err()
240 int nb_sectors, in blkverify_aio_get() argument
249 acb->nb_sectors = nb_sectors; in blkverify_aio_get()
309 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in blkverify_aio_readv() argument
314 nb_sectors, cb, opaque); in blkverify_aio_readv()
321 if (!bdrv_aio_readv(s->test_file, sector_num, qiov, nb_sectors, in blkverify_aio_readv()
333 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in blkverify_aio_writev() argument
338 nb_sectors, cb, opaque); in blkverify_aio_writev()
340 if (!bdrv_aio_writev(s->test_file, sector_num, qiov, nb_sectors, in blkverify_aio_writev()
[all …]
H A Dqcow.c388 if (n > nb_sectors) in qcow_is_allocated()
389 n = nb_sectors; in qcow_is_allocated()
452 while (nb_sectors > 0) {
456 if (n > nb_sectors)
457 n = nb_sectors;
480 nb_sectors -= n;
494 int nb_sectors; member
535 acb->nb_sectors = nb_sectors; in qcow_aio_setup()
566 acb->nb_sectors -= acb->n; in qcow_aio_read_cb()
570 if (acb->nb_sectors == 0) { in qcow_aio_read_cb()
[all …]
H A Dvdi.c145 int nb_sectors; member
469 if (n_sectors > nb_sectors) { in vdi_is_allocated()
470 n_sectors = nb_sectors; in vdi_is_allocated()
515 acb->nb_sectors = nb_sectors; in vdi_aio_setup()
572 acb->nb_sectors -= acb->n_sectors; in vdi_aio_read_cb()
574 if (acb->nb_sectors == 0) { in vdi_aio_read_cb()
586 if (n_sectors > acb->nb_sectors) { in vdi_aio_read_cb()
587 n_sectors = acb->nb_sectors; in vdi_aio_read_cb()
656 acb->nb_sectors -= acb->n_sectors; in vdi_aio_write_cb()
660 if (acb->nb_sectors == 0) { in vdi_aio_write_cb()
[all …]
H A Dparallels.c44 uint32_t nb_sectors; member
86 bs->total_sectors = le32_to_cpu(ph.nb_sectors); in parallels_open()
120 uint8_t *buf, int nb_sectors) in parallels_read() argument
122 while (nb_sectors > 0) { in parallels_read()
130 nb_sectors--; in parallels_read()
H A Dqcow2.c344 *pnum = nb_sectors; in qcow2_is_allocated()
361 return nb_sectors; in qcow2_backing_read1()
579 acb->remaining_sectors = nb_sectors; in qcow2_aio_setup()
855 uint64_t nb_sectors; in preallocate() local
861 nb_sectors = bdrv_getlength(bs) >> 9; in preallocate()
866 while (nb_sectors) { in preallocate()
885 nb_sectors -= num; in preallocate()
1101 int nb_sectors) in qcow2_discard() argument
1104 nb_sectors); in qcow2_discard()
1155 if (nb_sectors == 0) { in qcow2_write_compressed()
[all …]
H A Dvpc.c371 uint8_t *buf, int nb_sectors) in vpc_read() argument
378 while (nb_sectors > 0) { in vpc_read()
383 if (sectors > nb_sectors) { in vpc_read()
384 sectors = nb_sectors; in vpc_read()
397 nb_sectors -= sectors; in vpc_read()
405 const uint8_t *buf, int nb_sectors) in vpc_write() argument
412 while (nb_sectors > 0) { in vpc_write()
417 if (sectors > nb_sectors) { in vpc_write()
418 sectors = nb_sectors; in vpc_write()
432 nb_sectors -= sectors; in vpc_write()
H A Draw-posix.c420 uint8_t *buf, int nb_sectors) in raw_read() argument
425 nb_sectors * BDRV_SECTOR_SIZE); in raw_read()
426 if (ret == (nb_sectors * BDRV_SECTOR_SIZE)) in raw_read()
515 const uint8_t *buf, int nb_sectors) in raw_write() argument
519 nb_sectors * BDRV_SECTOR_SIZE); in raw_write()
520 if (ret == (nb_sectors * BDRV_SECTOR_SIZE)) in raw_write()
561 nb_sectors, cb, opaque, type); in raw_aio_submit()
574 return raw_aio_submit(bs, sector_num, qiov, nb_sectors, in raw_aio_readv()
582 return raw_aio_submit(bs, sector_num, qiov, nb_sectors, in raw_aio_writev()
776 fl.l_len = (int64_t)nb_sectors << 9; in xfs_discard()
[all …]
H A Dvmdk.c579 if (n > nb_sectors) in vmdk_is_allocated()
580 n = nb_sectors; in vmdk_is_allocated()
586 uint8_t *buf, int nb_sectors) in vmdk_read() argument
592 while (nb_sectors > 0) { in vmdk_read()
596 if (n > nb_sectors) in vmdk_read()
597 n = nb_sectors; in vmdk_read()
613 nb_sectors -= n; in vmdk_read()
637 while (nb_sectors > 0) { in vmdk_write()
640 if (n > nb_sectors) in vmdk_write()
641 n = nb_sectors; in vmdk_write()
[all …]
H A Dnbd.c125 uint8_t *buf, int nb_sectors) in nbd_read() argument
134 request.len = nb_sectors * 512; in nbd_read()
155 const uint8_t *buf, int nb_sectors) in nbd_write() argument
164 request.len = nb_sectors * 512; in nbd_write()
H A Draw-posix-aio.h31 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
40 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
H A Dbochs.c190 uint8_t *buf, int nb_sectors) in bochs_read() argument
194 while (nb_sectors > 0) { in bochs_read()
203 nb_sectors--; in bochs_read()
H A Dqcow2-cluster.c272 int nb_sectors, int enc, in qcow2_encrypt_sectors() argument
281 for(i = 0; i < nb_sectors; i++) { in qcow2_encrypt_sectors()
294 uint8_t *buf, int nb_sectors) in qcow2_read() argument
302 while (nb_sectors > 0) { in qcow2_read()
303 n = nb_sectors; in qcow2_read()
343 nb_sectors -= n; in qcow2_read()
944 int nb_sectors) in qcow2_discard_clusters() argument
951 end_offset = offset + (nb_sectors << BDRV_SECTOR_BITS); in qcow2_discard_clusters()
H A Dqcow2.h174 int64_t sector_num, int nb_sectors);
200 int nb_sectors, int enc,
213 int nb_sectors);
H A Dblkdebug.c357 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in blkdebug_aio_readv() argument
367 bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in blkdebug_aio_readv()
372 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in blkdebug_aio_writev() argument
382 bdrv_aio_writev(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in blkdebug_aio_writev()
/illumos-kvm-cmd/
H A Dblock.c1003 int len, nb_sectors, count; in bdrv_pread() local
1026 if (nb_sectors > 0) { in bdrv_pread()
1029 sector_num += nb_sectors; in bdrv_pread()
1048 int len, nb_sectors, count; in bdrv_pwrite() local
1073 if (nb_sectors > 0) { in bdrv_pwrite()
1207 uint64_t nb_sectors; in guess_disk_lchs() local
1247 uint64_t nb_sectors; in bdrv_guess_geometry() local
1564 *pnum = (n < nb_sectors) ? (n) : (nb_sectors); in bdrv_is_allocated()
2080 int nb_sectors; member
2106 blkdata->nb_sectors = nb_sectors; in blk_dirty_cb_alloc()
[all …]
H A 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,
77 int nb_sectors);
89 const uint8_t *buf, int nb_sectors);
H A Dblock.h79 uint8_t *buf, int nb_sectors);
81 const uint8_t *buf, int nb_sectors);
89 const uint8_t *buf, int nb_sectors);
115 QEMUIOVector *iov, int nb_sectors,
118 QEMUIOVector *iov, int nb_sectors,
127 int nb_sectors; member
150 int bdrv_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors);
152 int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
201 const uint8_t *buf, int nb_sectors);
H A Dqemu-img.c573 int64_t total_sectors, nb_sectors, sector_num, bs_offset; in img_convert() local
781 nb_sectors = total_sectors - sector_num; in img_convert()
782 if (nb_sectors <= 0) in img_convert()
784 if (nb_sectors >= cluster_sectors) in img_convert()
787 n = nb_sectors; in img_convert()
843 nb_sectors = total_sectors - sector_num; in img_convert()
844 if (nb_sectors <= 0) { in img_convert()
847 if (nb_sectors >= (IO_BUF_SIZE / 512)) { in img_convert()
850 n = nb_sectors; in img_convert()
H A Dqemu-io.c971 reqs[i].nb_sectors = reqs[i].qiov->size >> 9; in multiwrite_f()
1490 int nb_sectors, remaining; in alloc_f() local
1503 nb_sectors = cvtnum(argv[2]); in alloc_f()
1505 nb_sectors = 1; in alloc_f()
1507 remaining = nb_sectors; in alloc_f()
1510 ret = bdrv_is_allocated(bs, offset >> 9, nb_sectors, &num); in alloc_f()
1520 sum_alloc, nb_sectors, s1); in alloc_f()
1538 int64_t nb_sectors; in map_f() local
1545 nb_sectors = bs->total_sectors; in map_f()
1548 num_checked = MIN(nb_sectors, INT_MAX); in map_f()
[all …]
/illumos-kvm-cmd/hw/ide/
H A Dcore.c49 return (s->nb_sectors > 0); in media_present()
134 put_le16(p + 60, s->nb_sectors); in ide_identify()
169 put_le16(p + 100, s->nb_sectors); in ide_identify()
962 lba, nb_sectors); in ide_atapi_cmd_read()
1231 int nb_sectors, lba; in ide_atapi_cmd() local
1238 if (nb_sectors == 0) { in ide_atapi_cmd()
1251 if (nb_sectors == 0) { in ide_atapi_cmd()
1590 uint64_t nb_sectors; in cdrom_change_cb() local
1597 s->nb_sectors = nb_sectors; in cdrom_change_cb()
2527 uint64_t nb_sectors; in ide_init_drive() local
[all …]

Completed in 41 milliseconds

12