Lines Matching full:tx

858     unsigned char *tx = g_malloc(bufsize);  in ahci_test_io_rw_simple()  local
873 generate_pattern(tx, bufsize, AHCI_SECTOR_SIZE); in ahci_test_io_rw_simple()
874 qtest_bufwrite(ahci->parent->qts, ptr, tx, bufsize); in ahci_test_io_rw_simple()
883 g_assert_cmphex(memcmp(tx, rx, bufsize), ==, 0); in ahci_test_io_rw_simple()
886 g_free(tx); in ahci_test_io_rw_simple()
1027 unsigned char *tx = g_malloc(bufsize); in test_dma_fragmented() local
1036 generate_pattern(tx, bufsize, AHCI_SECTOR_SIZE); in test_dma_fragmented()
1041 qtest_bufwrite(ahci->parent->qts, ptr, tx, bufsize); in test_dma_fragmented()
1061 g_assert_cmphex(memcmp(tx, rx, bufsize), ==, 0); in test_dma_fragmented()
1066 g_free(tx); in test_dma_fragmented()
1158 unsigned char *tx = g_malloc(bufsize); in ahci_migrate_simple() local
1174 generate_pattern(tx, bufsize, AHCI_SECTOR_SIZE); in ahci_migrate_simple()
1177 ahci_io(src, px, cmd_write, tx, bufsize, 0); in ahci_migrate_simple()
1182 g_assert_cmphex(memcmp(tx, rx, bufsize), ==, 0); in ahci_migrate_simple()
1187 g_free(tx); in ahci_migrate_simple()
1213 unsigned char *tx = g_malloc(bufsize); in ahci_halted_io_test() local
1233 generate_pattern(tx, bufsize, AHCI_SECTOR_SIZE); in ahci_halted_io_test()
1236 qtest_memwrite(ahci->parent->qts, ptr, tx, bufsize); in ahci_halted_io_test()
1248 g_assert_cmphex(memcmp(tx, rx, bufsize), ==, 0); in ahci_halted_io_test()
1253 g_free(tx); in ahci_halted_io_test()
1278 unsigned char *tx = g_malloc(bufsize); in ahci_migrate_halted_io() local
1305 generate_pattern(tx, bufsize, AHCI_SECTOR_SIZE); in ahci_migrate_halted_io()
1310 qtest_memwrite(src->parent->qts, ptr, tx, bufsize); in ahci_migrate_halted_io()
1322 /* Verify TX and RX are identical */ in ahci_migrate_halted_io()
1323 g_assert_cmphex(memcmp(tx, rx, bufsize), ==, 0); in ahci_migrate_halted_io()
1329 g_free(tx); in ahci_migrate_halted_io()
1553 unsigned char *tx = opts->opaque; in ahci_cb_cmp_buff() local
1562 g_assert_cmphex(memcmp(tx, rx, opts->size), ==, 0); in ahci_cb_cmp_buff()
1572 unsigned char *tx; in ahci_test_cdrom() local
1585 /* Prepare ISO and fill 'tx' buffer */ in ahci_test_cdrom()
1586 fd = prepare_iso(iso_size, &tx, &iso); in ahci_test_cdrom()
1587 opts.opaque = tx; in ahci_test_cdrom()
1598 g_free(tx); in ahci_test_cdrom()
1652 unsigned char *tx; in test_atapi_tray() local
1659 fd = prepare_iso(iso_size, &tx, &iso); in test_atapi_tray()
1733 g_free(tx); in test_atapi_tray()