Home
last modified time | relevance | path

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

12

/openbmc/qemu/hw/block/
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 stl_be_p(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 stl_be_p(q, nb_sectors); in cdrom_read_toc_raw()
H A Dhd-geometry.c62 uint64_t nb_sectors; in guess_disk_lchs() local
64 blk_get_geometry(blk, &nb_sectors); in guess_disk_lchs()
84 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs()
101 uint64_t nb_sectors; in guess_chs_for_size() local
104 blk_get_geometry(blk, &nb_sectors); in guess_chs_for_size()
106 cylinders = nb_sectors / (16 * 63); in guess_chs_for_size()
H A Dvirtio-blk.c293 int i = 0, start = 0, num_reqs = 0, niov = 0, nb_sectors = 0; in virtio_blk_submit_multireq() local
317 if (sector_num + nb_sectors != req->sector_num || in virtio_blk_submit_multireq()
320 nb_sectors > (max_transfer - in virtio_blk_submit_multireq()
329 nb_sectors = niov = 0; in virtio_blk_submit_multireq()
333 nb_sectors += req->qiov.size / BDRV_SECTOR_SIZE; in virtio_blk_submit_multireq()
361 uint64_t nb_sectors = size >> BDRV_SECTOR_BITS; in virtio_blk_sect_range_ok() local
364 if (nb_sectors > BDRV_REQUEST_MAX_SECTORS) { in virtio_blk_sect_range_ok()
374 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in virtio_blk_sect_range_ok()
/openbmc/qemu/hw/ide/
H A Datapi.c60 return !s->tray_open && s->nb_sectors > 0; in media_present()
446 lba, nb_sectors); in ide_atapi_cmd_read()
982 unsigned int nb_sectors, lba; in cmd_read() local
985 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_read()
988 nb_sectors = lduw_be_p(buf + 7); in cmd_read()
990 nb_sectors = ldl_be_p(buf + 6); in cmd_read()
992 if (nb_sectors == 0) { in cmd_read()
1011 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_read_cd()
1014 if (nb_sectors == 0) { in cmd_read_cd()
1056 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_seek()
[all …]
H A Dcore.c122 put_le16(p + 100, s->nb_sectors); in ide_identify_size()
123 put_le16(p + 101, s->nb_sectors >> 16); in ide_identify_size()
124 put_le16(p + 102, s->nb_sectors >> 32); in ide_identify_size()
125 put_le16(p + 103, s->nb_sectors >> 48); in ide_identify_size()
1196 uint64_t nb_sectors; in ide_cd_change_cb() local
1200 s->nb_sectors = nb_sectors; in ide_cd_change_cb()
1624 if (s->nb_sectors == 0) { in cmd_read_native_max()
2575 uint64_t nb_sectors; in ide_resize_cb() local
2582 s->nb_sectors = nb_sectors; in ide_resize_cb()
2607 uint64_t nb_sectors; in ide_init_drive() local
[all …]
H A Dide-internal.h438 QEMUIOVector *iov, int nb_sectors,
/openbmc/qemu/hw/scsi/
H A Dscsi-disk.c883 uint64_t nb_sectors; in media_is_dvd() local
896 uint64_t nb_sectors; in media_is_cd() local
1349 uint64_t nb_sectors; in scsi_disk_emulate_mode_sense() local
1463 uint64_t nb_sectors; in scsi_disk_emulate_read_toc() local
1874 int nb_sectors; member
1961 data->nb_sectors = nb_sectors * (s->qdev.blocksize / BDRV_SECTOR_SIZE); in scsi_disk_emulate_write_same()
2031 uint64_t nb_sectors; in scsi_disk_emulate_command() local
2143 nb_sectors--; in scsi_disk_emulate_command()
2402 uint64_t nb_sectors; in scsi_disk_reset() local
2409 if (nb_sectors) { in scsi_disk_reset()
[all …]
/openbmc/qemu/block/
H A Dparallels.c133 int nb_sectors) in cluster_remainder() argument
136 return MIN(nb_sectors, ret); in cluster_remainder()
146 int nb_sectors, int *pnum) in block_status() argument
151 while (nb_sectors > 0 || start_off == -2) { in block_status()
163 nb_sectors -= to_end; in block_status()
252 int nb_sectors, int *pnum) in allocate_clusters() argument
453 while (nb_sectors > 0) { in parallels_co_writev()
476 nb_sectors -= n; in parallels_co_writev()
496 while (nb_sectors > 0) { in parallels_co_readv()
527 nb_sectors -= n; in parallels_co_readv()
[all …]
H A Discsi.c128 int nb_sectors; member
448 assert(nb_sectors <= BDRV_REQUEST_MAX_SECTORS); in is_sector_request_lun_aligned()
450 nb_sectors << BDRV_SECTOR_BITS, in is_sector_request_lun_aligned()
626 num_sectors = sector_qemu2lun(nb_sectors, iscsilun); in iscsi_co_writev()
678 nb_sectors * BDRV_SECTOR_SIZE);
686 nb_sectors * BDRV_SECTOR_SIZE);
821 nb_sectors * BDRV_SECTOR_SIZE) && in iscsi_co_readv()
828 if (nb_sectors >= ISCSI_CHECKALLOC_THRES && in iscsi_co_readv()
830 nb_sectors * BDRV_SECTOR_SIZE) && in iscsi_co_readv()
850 pnum >= nb_sectors * BDRV_SECTOR_SIZE + head) { in iscsi_co_readv()
[all …]
H A Dbochs.c253 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in bochs_co_preadv() local
264 while (nb_sectors > 0) { in bochs_co_preadv()
283 nb_sectors--; in bochs_co_preadv()
H A Dparallels.h48 uint64_t nb_sectors; member
H A Dvhdx.c1128 int nb_sectors, VHDXSectorInfo *sinfo) in vhdx_block_translate() argument
1146 if (sinfo->sectors_avail > nb_sectors) { in vhdx_block_translate()
1147 sinfo->sectors_avail = nb_sectors; in vhdx_block_translate()
1182 vhdx_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, in vhdx_co_readv() argument
1195 while (nb_sectors > 0) { in vhdx_co_readv()
1203 vhdx_block_translate(s, sector_num, nb_sectors, &sinfo); in vhdx_co_readv()
1236 nb_sectors -= sinfo.sectors_avail; in vhdx_co_readv()
1336 vhdx_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, in vhdx_co_writev() argument
1362 while (nb_sectors > 0) { in vhdx_co_writev()
1370 vhdx_block_translate(s, sector_num, nb_sectors, &sinfo); in vhdx_co_writev()
[all …]
H A Dcloop.c260 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in cloop_co_preadv() local
268 for (i = 0; i < nb_sectors; i++) { in cloop_co_preadv()
H A Dgluster.c1179 int64_t sector_num, int nb_sectors, in qemu_gluster_co_rw() argument
1185 size_t size = nb_sectors * BDRV_SECTOR_SIZE; in qemu_gluster_co_rw()
1222 int nb_sectors, in qemu_gluster_co_readv() argument
1225 return qemu_gluster_co_rw(bs, sector_num, nb_sectors, qiov, 0); in qemu_gluster_co_readv()
1230 int nb_sectors, in qemu_gluster_co_writev() argument
1234 return qemu_gluster_co_rw(bs, sector_num, nb_sectors, qiov, 1); in qemu_gluster_co_writev()
H A Dqed.c1394 int nb_sectors, int flags) in qed_co_request() argument
1399 .end_pos = (sector_num + nb_sectors) * BDRV_SECTOR_SIZE, in qed_co_request()
1405 trace_qed_aio_setup(bs->opaque, &acb, sector_num, nb_sectors, NULL, flags); in qed_co_request()
1412 bdrv_qed_co_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, in bdrv_qed_co_readv() argument
1415 return qed_co_request(bs, sector_num, qiov, nb_sectors, 0); in bdrv_qed_co_readv()
1419 bdrv_qed_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, in bdrv_qed_co_writev() argument
1422 return qed_co_request(bs, sector_num, qiov, nb_sectors, QED_AIOCB_WRITE); in bdrv_qed_co_writev()
H A Dvvfat.c1481 for(i=0;i<nb_sectors;i++,sector_num++) { in vvfat_read()
1545 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in vvfat_co_preadv() local
1557 ret = vvfat_read(bs, sector_num, buf, nb_sectors); in vvfat_co_preadv()
2979 const uint8_t *buf, int nb_sectors) in vvfat_write() argument
2994 if (sector_num == s->offset_to_bootsector && nb_sectors == 1) { in vvfat_write()
3031 last_cluster = sector2cluster(s, sector_num + nb_sectors - 1); in vvfat_write()
3058 if (end > sector_num + nb_sectors) in vvfat_write()
3059 end = sector_num + nb_sectors; in vvfat_write()
3089 nb_sectors * BDRV_SECTOR_SIZE, buf, 0); in vvfat_write()
3116 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in vvfat_co_pwritev() local
[all …]
H A Dssh.c1123 int nb_sectors, QEMUIOVector *qiov) in ssh_co_readv() argument
1130 nb_sectors * BDRV_SECTOR_SIZE, qiov); in ssh_co_readv()
1197 int nb_sectors, QEMUIOVector *qiov, in ssh_co_writev() argument
1205 nb_sectors * BDRV_SECTOR_SIZE, qiov); in ssh_co_writev()
H A Ddmg.c734 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in dmg_co_preadv() local
742 for (i = 0; i < nb_sectors; i++) { in dmg_co_preadv()
/openbmc/qemu/block/export/
H A Dvirtio-blk-handler.c29 uint64_t nb_sectors; in virtio_blk_sect_range_ok() local
36 nb_sectors = size >> VIRTIO_BLK_SECTOR_BITS; in virtio_blk_sect_range_ok()
39 if (nb_sectors > BDRV_REQUEST_MAX_SECTORS) { in virtio_blk_sect_range_ok()
46 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in virtio_blk_sect_range_ok()
/openbmc/qemu/include/hw/scsi/
H A Dscsi.h110 int cdrom_read_toc(int nb_sectors, uint8_t *buf, int msf, int start_track);
111 int cdrom_read_toc_raw(int nb_sectors, uint8_t *buf, int msf, int session_num);
/openbmc/qemu/include/hw/ide/
H A Dide-dev.h61 int64_t nb_sectors; member
/openbmc/qemu/tests/qtest/
H A Dpflash-cfi02-test.c346 uint32_t nb_sectors = flash_query_1(c, FLASH_ADDR(base + 0)) + in test_geometry() local
350 g_assert_cmphex(nb_sectors, ==, c->nb_blocs[region]); in test_geometry()
355 for (uint32_t i = 0; i < nb_sectors; ++i) { in test_geometry()
H A Dide-test.c204 int nb_sectors, PrdtEntry *prdt, int prdt_entries, in send_dma_request() argument
206 uint64_t sector, int nb_sectors)) in send_dma_request()
263 qpci_io_writeb(dev, ide_bar, reg_nsectors, nb_sectors); in send_dma_request()
272 post_exec(dev, ide_bar, sector, nb_sectors); in send_dma_request()
/openbmc/qemu/
H A Dqemu-img.c1824 int nb_sectors, uint8_t *buf) in convert_co_read() argument
1829 assert(nb_sectors <= s->buf_sectors); in convert_co_read()
1830 while (nb_sectors > 0) { in convert_co_read()
1869 nb_sectors -= n; in convert_co_read()
1878 int nb_sectors, uint8_t *buf, in convert_co_write() argument
1883 while (nb_sectors > 0) { in convert_co_write()
1884 int n = nb_sectors; in convert_co_write()
1934 nb_sectors -= n; in convert_co_write()
1942 int nb_sectors) in convert_co_copy_range() argument
1946 while (nb_sectors > 0) { in convert_co_copy_range()
[all …]
/openbmc/qemu/docs/devel/testing/
H A Dblkverify.rst63 blkverify: read sector_num=0 nb_sectors=4 contents mismatch in sector 0

12