Lines Matching +full:cdrom +full:- +full:test
2 * IDE test cases
30 #include "libqos/pci-pc.h"
31 #include "libqos/malloc-pc.h"
132 g_autofree char *full_fmt = g_strdup_printf("-machine pc %s", cmdline_fmt); in ide_test_start()
199 /* 2-byte range, 6-byte LBA */ in trim_range_le()
224 /* Assuming we only test data reads w/ ATAPI, otherwise we need to know in send_dma_request()
313 "-drive file=%s,if=ide,cache=writeback,format=raw " in test_bmdma_setup()
314 "-global ide-hd.serial=%s -global ide-hd.ver=%s", in test_bmdma_setup()
406 const uint64_t bad_range = trim_range_le(TEST_IMAGE_SIZE / 512 - 1, 2); in test_bmdma_trim()
451 * This test is developed according to the Programming Interface for
509 /* Test the request */ in test_bmdma_various_prdts()
515 /* Now test aborting the same request */ in test_bmdma_various_prdts()
560 while (bytes--) { in string_cpu_to_be16()
575 "-blockdev driver=file,node-name=hda,filename=%s " in test_specify()
576 "-device ide-hd,drive=hda,bus=ide.0,unit=0 ", in test_specify()
617 "-drive file=%s,if=ide,cache=writeback,format=raw " in test_identify()
618 "-global ide-hd.serial=%s -global ide-hd.ver=%s", in test_identify()
667 "-blockdev driver=file,node-name=hda,filename=%s " in test_diagnostic()
668 "-blockdev driver=file,node-name=hdb,filename=%s " in test_diagnostic()
669 "-device ide-hd,drive=hda,bus=ide.0,unit=0 " in test_diagnostic()
670 "-device ide-hd,drive=hdb,bus=ide.0,unit=1 ", in test_diagnostic()
736 "-drive file=blkdebug::%s,if=ide,cache=writeback,format=raw", in test_flush()
747 g_free(qtest_hmp(qts, "qemu-io ide0-hd0 \"break flush_to_os A\"")); in test_flush()
759 g_free(qtest_hmp(qts, "qemu-io ide0-hd0 \"resume A\"")); in test_flush()
786 "-drive file=blkdebug:%s:%s,if=ide,cache=writeback,format=raw," in test_pci_retry_flush()
852 qts = ide_test_start("-device ide-cd,bus=ide.0"); in test_flush_empty_drive()
965 /* Prepopulate the CDROM with an interesting pattern */ in cdrom_pio_impl()
973 "-drive if=none,file=%s,media=cdrom,format=raw,id=sr0,index=0 " in cdrom_pio_impl()
974 "-device ide-cd,drive=sr0,bus=ide.0", tmp_path[0]); in cdrom_pio_impl()
990 /* SCSI CDB (READ10) -- read n*2048 bytes from block 0 */ in cdrom_pio_impl()
994 * If BYTE_COUNT_LIMIT is odd, we transfer BYTE_COUNT_LIMIT - 1 bytes. in cdrom_pio_impl()
1003 size_t rem = (rxsize / 2) - offset; in cdrom_pio_impl()
1042 /* Test a few loops of the PIO DRQ mechanism. */ in test_cdrom_pio_large()
1059 "-drive if=none,file=%s,media=cdrom,format=raw,id=sr0,index=0 " in test_cdrom_dma()
1060 "-device ide-cd,drive=sr0,bus=ide.0", tmp_path[0]); in test_cdrom_dma()
1105 debug_path = g_strdup_printf("%s/qtest-blkdebug.XXXXXX", base); in main()
1139 qtest_add_func("/ide/cdrom/pio", test_cdrom_pio); in main()
1140 qtest_add_func("/ide/cdrom/pio_large", test_cdrom_pio_large); in main()
1141 qtest_add_func("/ide/cdrom/dma", test_cdrom_dma); in main()