Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 110) sorted by relevance

12345

/qemu/tests/qemu-iotests/
H A D271156 alloc="0"; zero=""
160 alloc="0 1"; zero=""
222 alloc=""; zero=""
247 alloc="13"; zero=""
251 alloc="14"; zero=""
253 alloc=""; zero="14"
351 alloc=""; zero=""
467 alloc=""; zero=""
584 alloc="0"; zero=""
618 alloc=""; zero=""
[all …]
/qemu/tests/qtest/
H A De1000e-test.c52 uint64_t data = guest_alloc(alloc, sizeof(buffer)); in e1000e_send_verify()
82 guest_free(alloc, data); in e1000e_send_verify()
109 uint64_t data = guest_alloc(alloc, sizeof(buffer)); in e1000e_receive_verify()
130 guest_free(alloc, data); in e1000e_receive_verify()
138 static void test_e1000e_tx(void *obj, void *data, QGuestAllocator * alloc) in test_e1000e_tx() argument
150 e1000e_send_verify(d, data, alloc); in test_e1000e_tx()
153 static void test_e1000e_rx(void *obj, void *data, QGuestAllocator * alloc) in test_e1000e_rx() argument
165 e1000e_receive_verify(d, data, alloc); in test_e1000e_rx()
169 QGuestAllocator *alloc) in test_e1000e_multiple_transfers() argument
185 e1000e_send_verify(d, data, alloc); in test_e1000e_multiple_transfers()
[all …]
H A Digb-test.c56 uint64_t data = guest_alloc(alloc, sizeof(buffer)); in igb_send_verify()
85 guest_free(alloc, data); in igb_send_verify()
112 uint64_t data = guest_alloc(alloc, sizeof(buffer)); in igb_receive_verify()
133 guest_free(alloc, data); in igb_receive_verify()
141 static void test_igb_tx(void *obj, void *data, QGuestAllocator * alloc) in test_igb_tx() argument
153 igb_send_verify(d, data, alloc); in test_igb_tx()
156 static void test_igb_rx(void *obj, void *data, QGuestAllocator * alloc) in test_igb_rx() argument
168 igb_receive_verify(d, data, alloc); in test_igb_rx()
172 QGuestAllocator *alloc) in test_igb_multiple_transfers() argument
188 igb_send_verify(d, data, alloc); in test_igb_multiple_transfers()
[all …]
H A Dvirtio-iommu-test.c24 static QGuestAllocator *alloc; variable
76 ro_addr = guest_alloc(alloc, ro_size); in send_attach_detach()
77 wr_addr = guest_alloc(alloc, wr_size); in send_attach_detach()
87 guest_free(alloc, ro_addr); in send_attach_detach()
88 guest_free(alloc, wr_addr); in send_attach_detach()
132 guest_free(alloc, ro_addr); in send_map()
133 guest_free(alloc, wr_addr); in send_map()
172 guest_free(alloc, ro_addr); in send_unmap()
173 guest_free(alloc, wr_addr); in send_unmap()
183 alloc = t_alloc; in test_attach_detach()
[all …]
H A Dtulip-test.c37 static void *tulip_pci_create(void *pci_bus, QGuestAllocator *alloc, void *addr) in tulip_pci_create() argument
48 static void tulip_large_tx(void *obj, void *data, QGuestAllocator *alloc) in tulip_large_tx() argument
60 context_pa = guest_alloc(alloc, sizeof(context)); in tulip_large_tx()
61 guest_pa = guest_alloc(alloc, 4096); in tulip_large_tx()
73 guest_free(alloc, context_pa); in tulip_large_tx()
74 guest_free(alloc, guest_pa); in tulip_large_tx()
H A Dvirtio-scsi-test.c37 static QGuestAllocator *alloc; variable
54 addr = guest_alloc(alloc, alloc_size); in qvirtio_scsi_alloc()
114 guest_free(alloc, req_addr); in virtio_scsi_do_command()
115 guest_free(alloc, resp_addr); in virtio_scsi_do_command()
116 guest_free(alloc, data_in_addr); in virtio_scsi_do_command()
117 guest_free(alloc, data_out_addr); in virtio_scsi_do_command()
141 vs->vq[i] = qvirtqueue_setup(dev, alloc, i); in qvirtio_scsi_init()
185 alloc = t_alloc; in test_unaligned_write_same()
228 alloc = t_alloc; in test_unmap_large_lba()
251 alloc = t_alloc; in test_write_to_cdrom()
[all …]
H A Dvhost-user-blk-test.c137 guest_free(alloc, req_addr); in test_invalid_discard_write_zeroes()
162 guest_free(alloc, req_addr); in test_invalid_discard_write_zeroes()
187 guest_free(alloc, req_addr); in test_invalid_discard_write_zeroes()
212 guest_free(alloc, req_addr); in test_invalid_discard_write_zeroes()
265 guest_free(alloc, req_addr); in test_basic()
293 guest_free(alloc, req_addr); in test_basic()
325 guest_free(alloc, req_addr); in test_basic()
355 guest_free(alloc, req_addr); in test_basic()
386 guest_free(alloc, req_addr); in test_basic()
414 guest_free(alloc, req_addr); in test_basic()
[all …]
H A Dufs-test.c253 static void ufs_init(QUfs *ufs, QGuestAllocator *alloc) in ufs_init() argument
327 guest_alloc(alloc, nutrs * UTP_COMMAND_DESCRIPTOR_SIZE); in ufs_init()
364 static void ufs_exit(QUfs *ufs, QGuestAllocator *alloc) in ufs_exit() argument
367 guest_free(alloc, ufs->utrlba); in ufs_exit()
368 guest_free(alloc, ufs->utmrlba); in ufs_exit()
369 guest_free(alloc, ufs->cmd_desc_addr); in ufs_exit()
370 guest_free(alloc, ufs->data_buffer_addr); in ufs_exit()
434 ufs_init(ufs, alloc); in ufstest_init()
458 ufs_exit(ufs, alloc); in ufstest_init()
501 ufs_init(ufs, alloc); in ufstest_read_write()
[all …]
H A Dvirtio-net-test.c32 QGuestAllocator *alloc, QVirtQueue *vq, in rx_test() argument
52 req_addr = guest_alloc(alloc, 64); in rx_test()
65 guest_free(alloc, req_addr); in rx_test()
69 QGuestAllocator *alloc, QVirtQueue *vq, in tx_test() argument
79 req_addr = guest_alloc(alloc, 64); in tx_test()
87 guest_free(alloc, req_addr); in tx_test()
99 QGuestAllocator *alloc, QVirtQueue *vq, in rx_stop_cont_test() argument
120 req_addr = guest_alloc(alloc, 64); in rx_stop_cont_test()
144 guest_free(alloc, req_addr); in rx_stop_cont_test()
/qemu/tests/qtest/libqos/
H A Drtas.c30 static uint64_t qrtas_call(QTestState *qts, QGuestAllocator *alloc, in qrtas_call() argument
38 target_args = guest_alloc(alloc, nargs * sizeof(uint32_t)); in qrtas_call()
39 target_ret = guest_alloc(alloc, nret * sizeof(uint32_t)); in qrtas_call()
45 guest_free(alloc, target_ret); in qrtas_call()
46 guest_free(alloc, target_args); in qrtas_call()
51 int qrtas_get_time_of_day(QTestState *qts, QGuestAllocator *alloc, in qrtas_get_time_of_day() argument
57 res = qrtas_call(qts, alloc, "get-time-of-day", 0, NULL, 8, ret); in qrtas_get_time_of_day()
75 uint32_t qrtas_ibm_read_pci_config(QTestState *qts, QGuestAllocator *alloc, in qrtas_ibm_read_pci_config() argument
86 res = qrtas_call(qts, alloc, "ibm,read-pci-config", 4, args, 2, ret); in qrtas_ibm_read_pci_config()
98 int qrtas_ibm_write_pci_config(QTestState *qts, QGuestAllocator *alloc, in qrtas_ibm_write_pci_config() argument
[all …]
H A Dppc64_pseries-machine.c36 QGuestAllocator alloc; member
54 QGuestAllocator *alloc) in qos_create_QSPAPR_host() argument
57 qpci_init_spapr(&host->pci, qts, alloc); in qos_create_QSPAPR_host()
65 alloc_destroy(&machine->alloc); in spapr_destructor()
72 return &machine->alloc; in spapr_get_driver()
96 spapr_alloc_init(&machine->alloc, qts, ALLOC_NO_FLAGS); in qos_create_machine_spapr()
98 qos_create_QSPAPR_host(&machine->bridge, qts, &machine->alloc); in qos_create_machine_spapr()
H A Dx86_64_pc-machine.c37 QGuestAllocator alloc; member
55 QGuestAllocator *alloc) in qos_create_i440FX_host() argument
58 qpci_init_pc(&host->pci, qts, alloc); in qos_create_i440FX_host()
66 alloc_destroy(&machine->alloc); in pc_destructor()
73 return &machine->alloc; in pc_get_driver()
97 pc_alloc_init(&machine->alloc, qts, ALLOC_NO_FLAGS); in qos_create_machine_pc()
98 qos_create_i440FX_host(&machine->bridge, qts, &machine->alloc); in qos_create_machine_pc()
H A Darm-virt-machine.c38 QGuestAllocator alloc; member
46 alloc_destroy(&machine->alloc); in virt_destructor()
53 return &machine->alloc; in virt_get_driver()
77 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_virt()
84 qos_create_generic_pcihost(&machine->bridge, qts, &machine->alloc); in qos_create_machine_arm_virt()
H A Dpci-spapr.c91 return qrtas_ibm_read_pci_config(bus->qts, s->alloc, s->buid, in qpci_spapr_config_readb()
99 return qrtas_ibm_read_pci_config(bus->qts, s->alloc, s->buid, in qpci_spapr_config_readw()
107 return qrtas_ibm_read_pci_config(bus->qts, s->alloc, s->buid, in qpci_spapr_config_readl()
116 qrtas_ibm_write_pci_config(bus->qts, s->alloc, s->buid, in qpci_spapr_config_writeb()
125 qrtas_ibm_write_pci_config(bus->qts, s->alloc, s->buid, in qpci_spapr_config_writew()
134 qrtas_ibm_write_pci_config(bus->qts, s->alloc, s->buid, in qpci_spapr_config_writel()
154 QGuestAllocator *alloc) in qpci_init_spapr() argument
161 qpci->alloc = alloc; in qpci_init_spapr()
207 QPCIBus *qpci_new_spapr(QTestState *qts, QGuestAllocator *alloc) in qpci_new_spapr() argument
210 qpci_init_spapr(qpci, qts, alloc); in qpci_new_spapr()
H A Dlibqos.c25 ops->alloc_init(&qs->alloc, qs->qts, ALLOC_NO_FLAGS); in qtest_vboot()
26 qs->pcibus = ops->qpci_new(qs->qts, &qs->alloc); in qtest_vboot()
60 alloc_destroy(&qs->alloc); in qtest_common_shutdown()
107 migrate_allocator(&from->alloc, &to->alloc); in migrate()
137 migrate_allocator(&from->alloc, &to->alloc); in migrate()
H A Driscv-virt-machine.c58 QGuestAllocator alloc; member
66 alloc_destroy(&machine->alloc); in virt_destructor()
73 return &machine->alloc; in virt_get_driver()
108 alloc_init(&machine->alloc, 0, in qos_create_machine_riscv_virt()
115 qos_create_generic_pcihost(&machine->bridge, qts, &machine->alloc); in qos_create_machine_riscv_virt()
H A Dlibqos.h12 QPCIBus *(*qpci_new)(QTestState *qts, QGuestAllocator *alloc);
19 QGuestAllocator alloc; member
37 return guest_alloc(&q->alloc, bytes); in qmalloc()
42 guest_free(&q->alloc, addr); in qfree()
H A Darm-imx25-pdk-machine.c35 QGuestAllocator alloc; member
43 return &machine->alloc; in imx25_pdk_get_driver()
64 alloc_destroy(&machine->alloc); in imx25_pdk_destructor()
71 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_imx25_pdk()
H A Darm-n800-machine.c35 QGuestAllocator alloc; member
43 return &machine->alloc; in n800_get_driver()
64 alloc_destroy(&machine->alloc); in n800_destructor()
71 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_n800()
H A Darm-xilinx-zynq-a9-machine.c30 QGuestAllocator alloc; member
42 return &machine->alloc; in xilinx_zynq_a9_get_driver()
63 alloc_destroy(&machine->alloc); in xilinx_zynq_a9_destructor()
70 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_xilinx_zynq_a9()
H A Daarch64-xlnx-zcu102-machine.c30 QGuestAllocator alloc; member
42 return &machine->alloc; in xlnx_zcu102_get_driver()
63 alloc_destroy(&machine->alloc); in xlnx_zcu102_destructor()
70 alloc_init(&machine->alloc, 0, in qos_create_machine_aarch64_xlnx_zcu102()
H A Darm-raspi2-machine.c34 QGuestAllocator alloc; member
42 return &machine->alloc; in raspi2_get_driver()
63 alloc_destroy(&machine->alloc); in raspi2_destructor()
70 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_raspi2()
H A Darm-sabrelite-machine.c34 QGuestAllocator alloc; member
42 return &machine->alloc; in sabrelite_get_driver()
63 alloc_destroy(&machine->alloc); in sabrelite_destructor()
70 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_sabrelite()
H A Darm-smdkc210-machine.c34 QGuestAllocator alloc; member
42 return &machine->alloc; in smdkc210_get_driver()
63 alloc_destroy(&machine->alloc); in smdkc210_destructor()
70 alloc_init(&machine->alloc, 0, in qos_create_machine_arm_smdkc210()
H A Dvirtio-pci.h75 QGuestAllocator *alloc, uint16_t entry);
77 QGuestAllocator *alloc, uint16_t entry);
81 QGuestAllocator *alloc,
84 QGuestAllocator *alloc);

12345