Home
last modified time | relevance | path

Searched full:response (Results 1 – 25 of 265) sorted by relevance

1234567891011

/qemu/tests/qtest/
H A Dtest-netfilter.c18 QDict *response; in add_one_netfilter() local
20 response = qmp("{'execute': 'object-add'," in add_one_netfilter()
29 g_assert(response); in add_one_netfilter()
30 g_assert(!qdict_haskey(response, "error")); in add_one_netfilter()
31 qobject_unref(response); in add_one_netfilter()
33 response = qmp("{'execute': 'object-del'," in add_one_netfilter()
37 g_assert(response); in add_one_netfilter()
38 g_assert(!qdict_haskey(response, "error")); in add_one_netfilter()
39 qobject_unref(response); in add_one_netfilter()
45 QDict *response; in remove_netdev_with_one_netfilter() local
[all …]
H A Dpvpanic-test.c18 QDict *response, *data; in test_panic_nopause() local
28 response = qtest_qmp_eventwait_ref(qts, "GUEST_PANICKED"); in test_panic_nopause()
29 g_assert(qdict_haskey(response, "data")); in test_panic_nopause()
30 data = qdict_get_qdict(response, "data"); in test_panic_nopause()
33 qobject_unref(response); in test_panic_nopause()
41 QDict *response, *data; in test_panic() local
51 response = qtest_qmp_eventwait_ref(qts, "GUEST_PANICKED"); in test_panic()
52 g_assert(qdict_haskey(response, "data")); in test_panic()
53 data = qdict_get_qdict(response, "data"); in test_panic()
56 qobject_unref(response); in test_panic()
[all …]
H A Dpvpanic-pci-test.c25 QDict *response, *data; in test_panic_nopause() local
43 response = qtest_qmp_eventwait_ref(qts, "GUEST_PANICKED"); in test_panic_nopause()
44 g_assert(qdict_haskey(response, "data")); in test_panic_nopause()
45 data = qdict_get_qdict(response, "data"); in test_panic_nopause()
48 qobject_unref(response); in test_panic_nopause()
58 QDict *response, *data; in test_panic() local
76 response = qtest_qmp_eventwait_ref(qts, "GUEST_PANICKED"); in test_panic()
77 g_assert(qdict_haskey(response, "data")); in test_panic()
78 data = qdict_get_qdict(response, "data"); in test_panic()
81 qobject_unref(response); in test_panic()
[all …]
H A Dqom-test.c22 QDict *response, *tuple, *tmp; in test_properties() local
30 response = qtest_qmp(qts, "{ 'execute': 'qom-list'," in test_properties()
32 g_assert(response); in test_properties()
35 qobject_unref(response); in test_properties()
39 g_assert(qdict_haskey(response, "return")); in test_properties()
40 list = qobject_to(QList, qdict_get(response, "return")); in test_properties()
80 qobject_unref(response); in test_properties()
86 QDict *response; in test_machine() local
95 response = qtest_qmp(qts, "{ 'execute': 'qom-list-properties'," in test_machine()
98 g_assert(response); in test_machine()
[all …]
H A Demc141x-test.c20 QDict *response; in qmp_emc1414_get_temperature() local
23 response = qmp("{ 'execute': 'qom-get', 'arguments': { 'path': %s, " in qmp_emc1414_get_temperature()
25 g_assert(qdict_haskey(response, "return")); in qmp_emc1414_get_temperature()
26 ret = qdict_get_int(response, "return"); in qmp_emc1414_get_temperature()
27 qobject_unref(response); in qmp_emc1414_get_temperature()
33 QDict *response; in qmp_emc1414_set_temperature() local
35 response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': %s, " in qmp_emc1414_set_temperature()
37 g_assert(qdict_haskey(response, "return")); in qmp_emc1414_set_temperature()
38 qobject_unref(response); in qmp_emc1414_set_temperature()
H A Dlibqtest.c788 QDict *response = qtest_qmp_receive_dict(s); in qtest_qmp_receive() local
790 if (!qdict_get_try_str(response, "event")) { in qtest_qmp_receive()
791 return response; in qtest_qmp_receive()
795 !s->eventCB(s, qdict_get_str(response, "event"), in qtest_qmp_receive()
796 response, s->eventData)) { in qtest_qmp_receive()
798 s->pending_events = g_list_append(s->pending_events, response); in qtest_qmp_receive()
800 qobject_unref(response); in qtest_qmp_receive()
870 QDict *response; in qtest_qmp_fds() local
873 response = qtest_vqmp_fds(s, fds, fds_num, fmt, ap); in qtest_qmp_fds()
875 return response; in qtest_qmp_fds()
[all …]
H A Ddrive_del-test.c23 QDict *response; in look_for_drive0() local
28 response = qtest_qmp(qts, "{'execute': %s}", command); in look_for_drive0()
29 g_assert(response && qdict_haskey(response, "return")); in look_for_drive0()
30 ret = qdict_get_qlist(response, "return"); in look_for_drive0()
41 qobject_unref(response); in look_for_drive0()
70 QDict *response; in blockdev_add_with_media() local
72 response = qtest_qmp(qts, in blockdev_add_with_media()
84 g_assert(response); in blockdev_add_with_media()
85 g_assert(qdict_haskey(response, "return")); in blockdev_add_with_media()
86 qobject_unref(response); in blockdev_add_with_media()
[all …]
H A Dtmp105-test.c23 QDict *response; in qmp_tmp105_get_temperature() local
26 response = qmp("{ 'execute': 'qom-get', 'arguments': { 'path': %s, " in qmp_tmp105_get_temperature()
28 g_assert(qdict_haskey(response, "return")); in qmp_tmp105_get_temperature()
29 ret = qdict_get_int(response, "return"); in qmp_tmp105_get_temperature()
30 qobject_unref(response); in qmp_tmp105_get_temperature()
36 QDict *response; in qmp_tmp105_set_temperature() local
38 response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': %s, " in qmp_tmp105_set_temperature()
40 g_assert(qdict_haskey(response, "return")); in qmp_tmp105_set_temperature()
41 qobject_unref(response); in qmp_tmp105_set_temperature()
H A Dlibqmp.c35 QDict *response; member
52 error_prepend(&err, "QMP JSON response parsing failed: "); in qmp_response()
57 g_assert(!qmp->response); in qmp_response()
58 qmp->response = qobject_to(QDict, obj); in qmp_response()
59 g_assert(qmp->response); in qmp_response()
67 qmp.response = NULL; in qmp_fd_receive()
69 while (!qmp.response) { in qmp_fd_receive()
93 return qmp.response; in qmp_fd_receive()
204 QDict *response; in qmp_fd() local
207 response = qmp_fdv(fd, fmt, ap); in qmp_fd()
[all …]
H A Dlsm303dlhc-mag-test.c29 QDict *response; in qmp_lsm303dlhc_mag_get_property() local
32 response = qmp("{ 'execute': 'qom-get', 'arguments': { 'path': %s, " in qmp_lsm303dlhc_mag_get_property()
34 g_assert(qdict_haskey(response, "return")); in qmp_lsm303dlhc_mag_get_property()
35 ret = qdict_get_int(response, "return"); in qmp_lsm303dlhc_mag_get_property()
36 qobject_unref(response); in qmp_lsm303dlhc_mag_get_property()
43 QDict *response; in qmp_lsm303dlhc_mag_set_property() local
45 response = qmp("{ 'execute': 'qom-set', 'arguments': { 'path': %s, " in qmp_lsm303dlhc_mag_set_property()
47 g_assert(qdict_haskey(response, "return")); in qmp_lsm303dlhc_mag_set_property()
48 qobject_unref(response); in qmp_lsm303dlhc_mag_set_property()
H A Dufs-test.c482 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufs_init()
493 g_assert_cmpuint(rsp_upiu.header.response, ==, in ufs_init()
696 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufstest_query_flag_request()
707 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufstest_query_flag_request()
715 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufstest_query_flag_request()
723 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufstest_query_flag_request()
731 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufstest_query_flag_request()
739 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufstest_query_flag_request()
747 g_assert_cmpuint(rsp_upiu.header.response, ==, in ufstest_query_flag_request()
755 g_assert_cmpuint(rsp_upiu.header.response, ==, in ufstest_query_flag_request()
[all …]
/qemu/hw/virtio/
H A Dvirtio-nsm.c68 * Error response structure:
88 static bool error_response(struct iovec *response, enum NSMResponseTypes error, in error_response() argument
104 len = cbor_serialize(root, response->iov_base, response->iov_len); in error_response()
106 error_setg(errp, "Response buffer is small for %s response", in error_response()
110 response->iov_len = len; in error_response()
120 error_setg(errp, "Failed to initialize %s response", error_string(error)); in error_response()
125 * GetRandom response structure:
138 struct iovec *response, Error **errp) in handle_get_random() argument
161 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_get_random()
163 if (error_response(response, NSM_INPUT_TOO_LARGE, errp)) { in handle_get_random()
[all …]
/qemu/tests/qtest/libqos/
H A Dvirtio-9p-client.h90 /* user supplied tag number being returned with response (optional) */
101 /* data being received from 9p server as 'Rwalk' response (optional) */
108 /* do we expect an Rlerror response, if yes which error code? (optional) */
124 /* user supplied tag number being returned with response (optional) */
132 /* do we expect an Rlerror response, if yes which error code? (optional) */
146 /* user supplied tag number being returned with response (optional) */
152 /* data being received from 9p server as 'Rattach' response (optional) */
159 /* do we expect an Rlerror response, if yes which error code? (optional) */
173 /* user supplied tag number being returned with response (optional) */
179 /* data being received from 9p server as 'Rgetattr' response (optional) */
[all …]
/qemu/hw/sd/
H A Dssi-sd.c60 uint8_t response[5]; member
113 * to avoid conflict between CMD12 response and next data block, in OBJECT_DECLARE_SIMPLE_TYPE()
153 s->response[0] = 0; in OBJECT_DECLARE_SIMPLE_TYPE()
158 s->response[0] = SSI_DUMMY; in OBJECT_DECLARE_SIMPLE_TYPE()
177 s->response[0] = 4; in OBJECT_DECLARE_SIMPLE_TYPE()
180 /* CMD8/CMD58 returns R3/R7 response */ in OBJECT_DECLARE_SIMPLE_TYPE()
183 s->response[0] = 1; in OBJECT_DECLARE_SIMPLE_TYPE()
184 memcpy(&s->response[1], longresp, 4); in OBJECT_DECLARE_SIMPLE_TYPE()
186 BADF("Unexpected response to cmd %d\n", s->cmd); in OBJECT_DECLARE_SIMPLE_TYPE()
189 s->response[0] = 4; in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
H A Dpl181.c42 uint32_t response[4]; member
74 VMSTATE_UINT32_ARRAY(response, PL181State, 4),
175 uint8_t response[16]; in pl181_do_command() local
181 rlen = sdbus_do_command(&s->sdbus, &request, response); in pl181_do_command()
189 s->response[0] = ldl_be_p(&response[0]); in pl181_do_command()
191 s->response[1] = s->response[2] = s->response[3] = 0; in pl181_do_command()
193 s->response[1] = ldl_be_p(&response[4]); in pl181_do_command()
194 s->response[2] = ldl_be_p(&response[8]); in pl181_do_command()
195 s->response[3] = ldl_be_p(&response[12]) & ~1; in pl181_do_command()
313 return s->response[0]; in pl181_read()
[all …]
H A Dallwinner-sdhost.c49 REG_SD_RESP0 = 0x20, /* Response Zero */
50 REG_SD_RESP1 = 0x24, /* Response One */
51 REG_SD_RESP2 = 0x28, /* Response Two */
52 REG_SD_RESP3 = 0x2C, /* Response Three */
70 REG_SD_RES_CRC = 0x110, /* Response CRC from card/eMMC */
254 /* If the command has a response, store it in the response registers */ in allwinner_sdhost_send_command()
257 s->response[0] = ldl_be_p(&resp[0]); in allwinner_sdhost_send_command()
258 s->response[1] = s->response[2] = s->response[3] = 0; in allwinner_sdhost_send_command()
261 s->response[0] = ldl_be_p(&resp[12]); in allwinner_sdhost_send_command()
262 s->response[1] = ldl_be_p(&resp[8]); in allwinner_sdhost_send_command()
[all …]
/qemu/include/hw/s390x/
H A Ds390-pci-clp.h15 /* CLP common request & response block size */
30 /* CLP Response Codes */
70 /* request or response block header length */
73 /* Number of function handles fitting in response block */
95 /* List PCI functions response */
118 /* Query PCI function response */
153 /* Query PCI function group response */
187 /* Set PCI function response */
199 ClpRspListPci response; member
204 ClpRspSetPci response; member
[all …]
/qemu/backends/tpm/
H A Dtpm_ioctl.h25 * Every response from a command involving a TPM command execution must hold
38 } resp; /* response */
48 } resp; /* response */
60 } resp; /* response */
72 } resp; /* response */
88 } resp; /* response */
101 } resp; /* response */
107 * ppc64le only ~7k; keep the response below a 4k page size
118 * first bytes of the state blob will be part of the response to the ioctl(); a
135 } resp; /* response */
[all …]
/qemu/hw/hyperv/
H A Dtrace-events25 hv_balloon_incoming_unballoon(uint32_t trans_id) "incoming unballoon response %"PRIu32
27 …d(uint32_t trans_id, uint32_t result, uint32_t count) "incoming hot add response %"PRIu32", result…
29 … trans_id, uint32_t range_count, uint32_t more_pages) "incoming balloon response %"PRIu32", ranges…
31 …e(uint64_t count, uint64_t start, unsigned int both) "processing remove response range %"PRIu64" @…
32 …countrange, uint64_t startrange, uint64_t starthpr, unsigned int both) "response range hole %"PRIu…
33 …64_t counthpr, uint64_t starthpr, uint64_t removed, unsigned int both) "response common range %"PR…
34 …se_remainder(uint64_t count, uint64_t start, unsigned int both) "remove response remaining range %…
/qemu/pc-bios/s390-ccw/
H A Dvirtio-scsi.h24 /* command-specific response values */
50 uint8_t status; /* first check for .response */
51 uint8_t response; /* then for .status */ member
59 uint8_t v = r->response; in virtio_scsi_response_msg()
67 return r->response == VIRTIO_SCSI_S_OK && r->status == CDB_STATUS_GOOD; in virtio_scsi_response_ok()
/qemu/tests/qemu-iotests/
H A Dcommon.qemu41 # Wait for expected QMP response from QEMU. Will time out
49 # in the response.
52 # response is not echoed out.
67 # $2: A string to search for in the response; if found, this indicates
69 # $3: A string to search for in the response; if found, this indicates
146 echo "Wrong response matching ${failure_match} on handle ${h}"
153 # Sends QMP or HMP command to QEMU, and waits for the expected response
158 # String that the QEMU response should contain. If it is a null
159 # string, do not wait for a response
162 # until either timeout, or a response. If it is not set, or <=0,
[all …]
/qemu/docs/specs/
H A Dppc-spapr-uv-hcalls.rst50 response, opening a new TPM session if one has not already been opened.
56 request. Caller may use the same address for both request and response.
62 response. Caller may use the same address for both request and response.
65 is the maximum request/response size supported by most TPM implementations,
88 ``r4``: For ``TPM_COMM_OP_EXECUTE``, the size of the response will be stored
/qemu/hw/tpm/
H A Dtrace-events32 tpm_spapr_do_crq_tpm_get_rtce_buffer_size(size_t buffersize) "response: buffer size is %zu"
33 tpm_spapr_do_crq_get_version(uint32_t version) "response: version %u"
34 tpm_spapr_do_crq_prepare_to_suspend(void) "response: preparing to suspend"
37 tpm_spapr_post_load(void) "Delivering TPM response after resume"
38 tpm_spapr_caught_response(uint32_t v) "Caught response to deliver after resume: %u bytes"
/qemu/include/standard-headers/linux/
H A Dvirtio_scsi.h65 /* Response, followed by sense data and data-in */
71 uint8_t response; /* Response values */ member
84 uint8_t response; member
96 uint8_t response; member
124 /* Response codes */
/qemu/scripts/ci/
H A Dgitlab-pipeline-status57 response = connection.getresponse()
58 if response.code != http.HTTPStatus.OK:
59 msg = "Received unsuccessful response: %s (%s)" % (response.code,
60 response.reason)
62 return json.loads(response.read())
67 Returns the JSON content of the pipeline status API response

1234567891011