Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/qemu/hw/usb/
A Du2f-emulated.c107 key->pending_out_end = 0; in u2f_emulated_reset()
108 key->pending_out_num = 0; in u2f_emulated_reset()
122 ++key->pending_out_num; in u2f_pending_out_add()
137 --key->pending_out_num; in u2f_pending_out_get()
166 qemu_cond_wait(&key->key_cond, &key->key_mutex); in u2f_emulated_thread()
267 if (!u2f_emulated_setup_counter(key->counter, &key->synced_counter)) { in u2f_emulated_setup_vdev_manualy()
303 if (key->cert != NULL || key->privkey != NULL || key->entropy != NULL in u2f_emulated_realize()
305 if (key->cert != NULL && key->privkey != NULL in u2f_emulated_realize()
306 && key->entropy != NULL && key->counter != NULL) { in u2f_emulated_realize()
315 rc = u2f_emu_vdev_new_from_dir(&key->vdev, key->dir); in u2f_emulated_realize()
[all …]
A Du2f-passthru.c120 timer_del(&key->timer); in u2f_passthru_reset()
121 qemu_set_fd_handler(key->hidraw_fd, NULL, NULL, key); in u2f_passthru_reset()
134 u2f_passthru_reset(key); in u2f_timeout_check()
200 u2f_passthru_reset(key); in u2f_transaction_close()
251 qemu_set_fd_handler(key->hidraw_fd, u2f_passthru_read, NULL, key); in u2f_transaction_start()
252 timer_init_ms(&key->timer, QEMU_CLOCK_VIRTUAL, u2f_timeout_check, key); in u2f_transaction_start()
463 u2f_passthru_reset(key); in u2f_passthru_unrealize()
472 if (key->hidraw == NULL) { in u2f_passthru_realize()
497 key->hidraw_fd = fd; in u2f_passthru_realize()
498 u2f_passthru_reset(key); in u2f_passthru_realize()
[all …]
A Dcanokey.c70 CanoKeyState *key = base; in canokey_emu_stall_ep() local
80 CanoKeyState *key = base; in canokey_emu_set_address() local
81 key->dev.addr = addr; in canokey_emu_set_address()
89 CanoKeyState *key = base; in canokey_emu_prepare_receive() local
90 key->ep_out[ep] = pbuf; in canokey_emu_prepare_receive()
101 memcpy(key->ep_in[ep_in] + key->ep_in_size[ep_in], in canokey_emu_transmit()
177 memcpy(data, key->ep_in[0], key->ep_in_size[0]); in canokey_handle_control()
249 in_len = MIN(key->ep_in_size[ep_in] - key->ep_in_pos[ep_in], in canokey_handle_data()
252 key->ep_in[ep_in] + key->ep_in_pos[ep_in], in_len); in canokey_handle_data()
255 if (key->ep_in_pos[ep_in] == key->ep_in_size[ep_in]) { in canokey_handle_data()
[all …]
A Du2f.c144 key->pending_in_start = 0; in u2f_key_reset()
145 key->pending_in_end = 0; in u2f_key_reset()
146 key->pending_in_num = 0; in u2f_key_reset()
153 u2f_key_reset(key); in u2f_key_handle_reset()
180 data[0] = key->idle; in u2f_key_handle_control()
216 index = key->pending_in_end; in u2f_pending_in_add()
218 ++key->pending_in_num; in u2f_pending_in_add()
233 --key->pending_in_num; in u2f_pending_in_get()
271 usb_wakeup(key->ep, 0); in u2f_send_to_guest()
280 kc->unrealize(key); in u2f_key_unrealize()
[all …]
/qemu/qobject/
A Dqdict.c61 entry->key = g_strdup(key); in alloc_entry()
85 return entry->key; in qdict_entry_key()
97 if (!strcmp(entry->key, key)) { in qdict_find()
120 bucket = tdb_hash(key) % QDICT_BUCKET_MAX; in qdict_put_obj()
121 entry = qdict_find(qdict, key, bucket); in qdict_put_obj()
128 entry = alloc_entry(key, value); in qdict_put_obj()
151 qdict_put(qdict, key, qnull()); in qdict_put_null()
164 entry = qdict_find(qdict, key, tdb_hash(key) % QDICT_BUCKET_MAX); in qdict_get()
368 assert(e->key != NULL); in qentry_destroy()
372 g_free(e->key); in qentry_destroy()
[all …]
A Dblock-qdict.c29 if (qdict_haskey(dst, key)) { in qdict_copy_default()
33 val = qdict_get(src, key); in qdict_copy_default()
45 if (qdict_haskey(dst, key)) { in qdict_set_default_str()
49 qdict_put_str(dst, key, val); in qdict_set_default_str()
100 char *key, *new_key; in qdict_flatten_qdict() local
111 key = new_key = g_strdup_printf("%s.%s", prefix, entry->key); in qdict_flatten_qdict()
113 key = entry->key; in qdict_flatten_qdict()
298 separator = key; in qdict_split_flat_key()
304 *prefix = g_strndup(key, separator - key); in qdict_split_flat_key()
307 *prefix = g_strdup(key); in qdict_split_flat_key()
[all …]
/qemu/replay/
A Dreplay-input.c22 InputKeyEvent *key; in replay_save_input_event() local
30 key = evt->u.key.data; in replay_save_input_event()
31 replay_put_dword(key->key->type); in replay_save_input_event()
33 switch (key->key->type) { in replay_save_input_event()
35 replay_put_qword(key->key->u.number.data); in replay_save_input_event()
39 replay_put_dword(key->key->u.qcode.data); in replay_save_input_event()
81 key.key = &keyValue; in replay_read_input_event()
90 evt.u.key.data = &key; in replay_read_input_event()
91 evt.u.key.data->key->type = replay_get_dword(); in replay_read_input_event()
93 switch (evt.u.key.data->key->type) { in replay_read_input_event()
[all …]
/qemu/util/
A Dkeyval.c118 if (*key < '0' || *key > '9') { in key_to_index()
156 (int)(key_cursor - key), key); in keyval_parse_put()
196 key = params; in keyval_parse_one()
215 key_end = key + len; in keyval_parse_one()
222 s = key; in keyval_parse_one()
235 (int)(key_end - key), key); in keyval_parse_one()
246 if (s != key) { in keyval_parse_one()
276 (int)(s - key), key); in keyval_parse_one()
409 char *key; in keyval_listify() local
448 g_free(key); in keyval_listify()
[all …]
A Dqtree.c119 q_tree_node_new(gpointer key, in q_tree_node_new() argument
129 node->key = key; in q_tree_node_new()
444 gpointer key, in q_tree_insert_node() argument
473 gpointer key, in q_tree_insert() argument
528 gpointer key, in q_tree_replace() argument
558 int cmp = tree->key_compare(key, node->key, tree->key_compare_data); in q_tree_insert_internal()
572 node->key = key; in q_tree_insert_internal()
678 gconstpointer key) in q_tree_remove() argument
708 gconstpointer key) in q_tree_steal() argument
745 int cmp = tree->key_compare(key, node->key, tree->key_compare_data); in q_tree_remove_internal()
[all …]
/qemu/tests/unit/
A Dcheck-qdict.c73 const char *key = "test"; in qdict_get_test() local
91 const char *key = "int"; in qdict_get_int_test() local
106 const char *key = "int"; in qdict_get_try_int_test() local
127 const char *key = "key"; in qdict_get_str_test() local
143 const char *key = "key"; in qdict_get_try_str_test() local
166 const char *key = "test"; in qdict_haskey_test() local
183 qdict_del(tests_dict, key); in qdict_del_test()
238 const char *key = "exists"; in qdict_put_exists_test() local
281 remove_dots(key); in read_line()
290 char key[128]; in qdict_stress_test() local
[all …]
A Dtest-crypto-cipher.c82 .key =
137 .key =
196 .key =
225 .key =
238 .key =
403 .key =
420 .key =
437 .key =
661 nkey = unhex_string(data->key, &key); in test_cipher()
755 key, sizeof(key), in test_cipher_null_iv()
[all …]
A Dtest-crypto-pbkdf.c36 const char *key; member
57 .key = "password",
71 .key = "password",
85 .key = "password",
99 .key = "password",
159 .key = "password",
171 .key = "password",
236 .key = "",
414 uint8_t key[32]; in test_pbkdf_timing_sha256() local
418 memset(key, 0x5d, sizeof(key)); in test_pbkdf_timing_sha256()
[all …]
A Dtest-crypto-afsplit.c32 const uint8_t *key; member
42 .key = (const uint8_t *)
74 .key = (const uint8_t *)
83 .key = (const uint8_t *)
94 .key = (const uint8_t *)
141 data->key, splitkey, in test_afsplit()
146 splitkey, key, in test_afsplit()
150 actual = hex_string(key, data->blocklen); in test_afsplit()
159 memset(key, 0, data->blocklen); in test_afsplit()
167 actual = hex_string(key, data->blocklen); in test_afsplit()
[all …]
/qemu/include/qapi/qmp/
A Dqdict.h22 char *key; member
43 void qdict_del(QDict *qdict, const char *key);
44 int qdict_haskey(const QDict *qdict, const char *key);
45 QObject *qdict_get(const QDict *qdict, const char *key);
50 #define qdict_put(qdict, key, obj) \ argument
51 qdict_put_obj(qdict, key, QOBJECT(obj))
55 void qdict_put_null(QDict *qdict, const char *key);
59 int64_t qdict_get_int(const QDict *qdict, const char *key);
60 bool qdict_get_bool(const QDict *qdict, const char *key);
61 QList *qdict_get_qlist(const QDict *qdict, const char *key);
[all …]
/qemu/scsi/
A Dutils.c106 sense.key = in_buf[2]; in scsi_parse_sense_buf()
113 sense.key = in_buf[1]; in scsi_parse_sense_buf()
129 buf[2] = sense.key; in scsi_build_sense_buf()
136 buf[1] = sense.key; in scsi_build_sense_buf()
157 .key = NO_SENSE , .asc = 0x00 , .ascq = 0x00
162 .key = NOT_READY, .asc = 0x04, .ascq = 0x03
167 .key = NOT_READY, .asc = 0x3a, .ascq = 0x00
172 .key = NOT_READY, .asc = 0x53, .ascq = 0x02
282 .key = NOT_READY, .asc = 0x04, .ascq = 0x00
357 switch (key) { in scsi_sense_is_guest_recoverable()
[all …]
/qemu/net/
A Dcolo.c22 const ConnectionKey *key = opaque; in connection_key_hash() local
27 a += key->src.s_addr; in connection_key_hash()
28 b += key->dst.s_addr; in connection_key_hash()
29 c += (key->src_port | key->dst_port << 16); in connection_key_hash()
32 a += key->ip_proto; in connection_key_hash()
104 key->src = pkt->ip->ip_dst; in extract_ip_and_port()
105 key->dst = pkt->ip->ip_src; in extract_ip_and_port()
109 key->src = pkt->ip->ip_src; in extract_ip_and_port()
120 key->ip_proto = pkt->ip->ip_p; in fill_connection_key()
122 switch (key->ip_proto) { in fill_connection_key()
[all …]
/qemu/tests/qemu-iotests/
A D210.out30 key offset: 4096
34 key offset: 262144
37 key offset: 520192
40 key offset: 778240
54 master key iters: XXX
83 key offset: 4096
87 key offset: 69632
107 master key iters: XXX
139 key offset: 4096
163 master key iters: XXX
[all …]
A D198.out52 key offset: 4096
56 key offset: 262144
59 key offset: 520192
62 key offset: 778240
65 key offset: 1036288
76 master key iters: 1024
98 key offset: 4096
102 key offset: 262144
105 key offset: 520192
108 key offset: 778240
[all …]
/qemu/hw/net/rocker/
A Drocker-hmp-cmds.c84 RockerOfDpaFlowKey *key = flow->key; in hmp_rocker_of_dpa_flows() local
90 key->priority, key->tbl_id, flow->hits); in hmp_rocker_of_dpa_flows()
93 key->priority, key->tbl_id); in hmp_rocker_of_dpa_flows()
96 if (key->has_in_pport) { in hmp_rocker_of_dpa_flows()
103 if (key->has_vlan_id) { in hmp_rocker_of_dpa_flows()
111 if (key->has_tunnel_id) { in hmp_rocker_of_dpa_flows()
118 if (key->has_eth_type) { in hmp_rocker_of_dpa_flows()
141 if (key->eth_src) { in hmp_rocker_of_dpa_flows()
158 if (key->eth_dst) { in hmp_rocker_of_dpa_flows()
182 if (key->has_ip_tos) { in hmp_rocker_of_dpa_flows()
[all …]
A Drocker_of_dpa.c131 OfDpaFlowKey key; member
1064 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_ig_port() local
1101 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_vlan() local
1165 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_term_mac() local
1261 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_bridging() local
1294 if (key->eth.vlan_id && key->tunnel_id) { in of_dpa_cmd_add_bridging()
1423 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_unicast_routing() local
1515 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_multicast_routing() local
1644 key->ip.tos = 0; in of_dpa_cmd_add_acl_ip()
1676 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_acl() local
[all …]
/qemu/hw/virtio/
A Dcbor-helpers.c17 .key = cbor_move(key), in qemu_cbor_map_add()
23 cbor_incref(pair.key); in qemu_cbor_map_add()
47 key_cbor = cbor_build_string(key); in qemu_cbor_add_bool_to_map()
77 key_cbor = cbor_build_string(key); in qemu_cbor_add_uint8_to_map()
108 key_cbor = cbor_build_string(key); in qemu_cbor_add_map_to_map()
139 key_cbor = cbor_build_string(key); in qemu_cbor_add_bytestring_to_map()
168 key_cbor = cbor_build_string(key); in qemu_cbor_add_null_to_map()
198 key_cbor = cbor_build_string(key); in qemu_cbor_add_string_to_map()
228 key_cbor = cbor_build_string(key); in qemu_cbor_add_uint8_array_to_map()
269 key_cbor = cbor_build_uint8(key); in qemu_cbor_add_uint8_key_bytestring_to_map()
[all …]
/qemu/include/hw/virtio/
A Dcbor-helpers.h16 bool qemu_cbor_map_add(cbor_item_t *map, cbor_item_t *key, cbor_item_t *value);
20 bool qemu_cbor_add_bool_to_map(cbor_item_t *map, const char *key, bool value);
22 bool qemu_cbor_add_uint8_to_map(cbor_item_t *map, const char *key,
25 bool qemu_cbor_add_map_to_map(cbor_item_t *map, const char *key,
29 bool qemu_cbor_add_bytestring_to_map(cbor_item_t *map, const char *key,
32 bool qemu_cbor_add_null_to_map(cbor_item_t *map, const char *key);
34 bool qemu_cbor_add_string_to_map(cbor_item_t *map, const char *key,
37 bool qemu_cbor_add_uint8_array_to_map(cbor_item_t *map, const char *key,
40 bool qemu_cbor_add_uint8_key_bytestring_to_map(cbor_item_t *map, uint8_t key,
43 bool qemu_cbor_add_uint64_to_map(cbor_item_t *map, const char *key,
/qemu/include/qemu/
A Dqtree.h69 gpointer key,
72 gpointer key,
75 gconstpointer key);
77 gconstpointer key);
79 gconstpointer key);
135 gpointer key, in q_tree_insert() argument
138 g_tree_insert(tree, key, value); in q_tree_insert()
145 g_tree_replace(tree, key, value); in q_tree_replace()
151 return g_tree_remove(tree, key); in q_tree_remove()
157 return g_tree_steal(tree, key); in q_tree_steal()
[all …]
/qemu/ui/
A Dinput.c165 evt->u.key.data->key->type == KEY_VALUE_KIND_NUMBER) { in qmp_input_send_event()
166 KeyValue *key = evt->u.key.data->key; in qmp_input_send_event() local
181 InputKeyEvent *key; in qemu_input_event_trace() local
191 key = evt->u.key.data; in qemu_input_event_trace()
192 switch (key->key->type) { in qemu_input_event_trace()
196 trace_input_event_key_number(idx, key->key->u.number.data, in qemu_input_event_trace()
200 name = QKeyCode_str(key->key->u.qcode.data); in qemu_input_event_trace()
326 evt->u.key.data->key->type == KEY_VALUE_KIND_NUMBER)); in qemu_input_event_send()
338 evt->u.key.data->key->u.qcode.data == Q_KEY_CODE_SYSRQ) { in qemu_input_event_send()
339 evt->u.key.data->key->u.qcode.data = Q_KEY_CODE_PRINT; in qemu_input_event_send()
[all …]
/qemu/hw/nvram/
A Dfw_cfg.c110 if (key & FW_CFG_ARCH_LOCAL) { in key_name()
280 s->cur_entry = key; in fw_cfg_select()
290 trace_fw_cfg_select(s, key, trace_key_name(key), ret); in fw_cfg_select()
626 key &= FW_CFG_ENTRY_MASK; in fw_cfg_update_mr()
706 key &= FW_CFG_ENTRY_MASK; in fw_cfg_add_bytes_callback()
725 key &= FW_CFG_ENTRY_MASK; in fw_cfg_modify_bytes_read()
741 trace_fw_cfg_add_bytes(key, trace_key_name(key), len); in fw_cfg_add_bytes()
749 trace_fw_cfg_add_string(key, trace_key_name(key), value); in fw_cfg_add_string()
768 trace_fw_cfg_add_i16(key, trace_key_name(key), value); in fw_cfg_add_i16()
788 trace_fw_cfg_add_i32(key, trace_key_name(key), value); in fw_cfg_add_i32()
[all …]

Completed in 43 milliseconds

12345678910>>...17