Lines Matching refs:cmd

86     AHCICommandHeader cmd;  in verify_state()  local
108 ahci_get_command_header(ahci, i, j, &cmd); in verify_state()
109 g_assert_cmphex(cmd.prdtl, ==, ahci->port[i].prdtl[j]); in verify_state()
110 g_assert_cmphex(cmd.ctba, ==, ahci->port[i].ctba[j]); in verify_state()
913 uint8_t cmd; in ahci_test_max() local
917 cmd = CMD_READ_MAX_EXT; in ahci_test_max()
919 cmd = CMD_READ_MAX; in ahci_test_max()
922 port = ahci_test_nondata(ahci, cmd); in ahci_test_max()
1024 AHCICommand *cmd; in test_dma_fragmented() local
1043 cmd = ahci_command_create(CMD_WRITE_DMA); in test_dma_fragmented()
1044 ahci_command_adjust(cmd, 0, ptr, bufsize, 32); in test_dma_fragmented()
1045 ahci_command_commit(ahci, cmd, px); in test_dma_fragmented()
1046 ahci_command_issue(ahci, cmd); in test_dma_fragmented()
1047 ahci_command_verify(ahci, cmd); in test_dma_fragmented()
1048 ahci_command_free(cmd); in test_dma_fragmented()
1050 cmd = ahci_command_create(CMD_READ_DMA); in test_dma_fragmented()
1051 ahci_command_adjust(cmd, 0, ptr, bufsize, 32); in test_dma_fragmented()
1052 ahci_command_commit(ahci, cmd, px); in test_dma_fragmented()
1053 ahci_command_issue(ahci, cmd); in test_dma_fragmented()
1054 ahci_command_verify(ahci, cmd); in test_dma_fragmented()
1055 ahci_command_free(cmd); in test_dma_fragmented()
1104 AHCICommand *cmd; in test_flush_retry() local
1123 cmd = ahci_guest_io_halt(ahci, port, CMD_FLUSH_CACHE, 0, 0, 0); in test_flush_retry()
1124 ahci_guest_io_resume(ahci, cmd); in test_flush_retry()
1216 AHCICommand *cmd; in ahci_halted_io_test() local
1239 cmd = ahci_guest_io_halt(ahci, port, cmd_write, in ahci_halted_io_test()
1243 ahci_guest_io_resume(ahci, cmd); in ahci_halted_io_test()
1281 AHCICommand *cmd; in ahci_migrate_halted_io() local
1313 cmd = ahci_guest_io_halt(src, port, cmd_write, in ahci_migrate_halted_io()
1316 ahci_guest_io_resume(dst, cmd); in ahci_migrate_halted_io()
1349 AHCICommand *cmd; in test_flush_migrate() local
1375 cmd = ahci_command_create(CMD_FLUSH_CACHE); in test_flush_migrate()
1376 ahci_command_commit(src, cmd, px); in test_flush_migrate()
1377 ahci_command_issue_async(src, cmd); in test_flush_migrate()
1386 ahci_command_wait(dst, cmd); in test_flush_migrate()
1387 ahci_command_verify(dst, cmd); in test_flush_migrate()
1389 ahci_command_free(cmd); in test_flush_migrate()
1430 AHCICommand *cmd; in test_reset_pending_callback() local
1474 cmd = ahci_command_create(CMD_WRITE_DMA_EXT); in test_reset_pending_callback()
1475 ahci_command_adjust(cmd, offset2, ptr2, bufsize, 0); in test_reset_pending_callback()
1476 ahci_command_commit(ahci, cmd, port); in test_reset_pending_callback()
1477 ahci_command_issue_async(ahci, cmd); in test_reset_pending_callback()
1481 ahci_command_free(cmd); in test_reset_pending_callback()
1550 static int ahci_cb_cmp_buff(AHCIQState *ahci, AHCICommand *cmd, in ahci_cb_cmp_buff() argument
1568 static void ahci_test_cdrom(int nsectors, bool dma, uint8_t cmd, in ahci_test_cdrom() argument
1595 ahci_exec(ahci, ahci_port_select(ahci), cmd, &opts); in ahci_test_cdrom()