/qemu/hw/usb/ |
H A D | u2f-emulated.c | 107 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 …]
|
H A D | u2f-passthru.c | 120 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() 499 key->hidraw_fd = fd; in u2f_passthru_realize() 500 u2f_passthru_reset(key); in u2f_passthru_realize() [all …]
|
H A D | canokey.c | 70 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 …]
|
H A D | u2f.c | 144 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/ |
H A D | qdict.c | 61 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 …]
|
H A D | block-qdict.c | 29 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/ |
H A D | replay-input.c | 22 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/ |
H A D | keyval.c | 118 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 …]
|
H A D | qtree.c | 119 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/ |
H A D | check-qdict.c | 73 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 …]
|
H A D | test-crypto-cipher.c | 82 .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 …]
|
H A D | test-crypto-pbkdf.c | 37 const char *key; member 58 .key = "password", 72 .key = "password", 86 .key = "password", 100 .key = "password", 160 .key = "password", 172 .key = "password", 237 .key = "", 399 uint8_t key[32]; in test_pbkdf_timing() local 403 memset(key, 0x5d, sizeof(key)); in test_pbkdf_timing() [all …]
|
H A D | test-crypto-afsplit.c | 32 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 …]
|
H A D | test-crypto-akcipher.c | 666 const uint8_t *key; member 696 .key = rsa1024_public_key, 704 .key = rsa1024_private_key, 712 .key = rsa2048_public_key, 720 .key = rsa2048_private_key, 728 .key = rsa_public_key_lack_element, 756 .key = NULL, 763 .key = NULL, 777 .key = rsa_public_key_extra_elem, 961 g_assert(key == NULL); in test_rsakey() [all …]
|
/qemu/include/qapi/qmp/ |
H A D | qdict.h | 22 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/ |
H A D | utils.c | 106 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/ |
H A D | colo.c | 22 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/ |
H A D | 210.out | 30 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 …]
|
H A D | 198.out | 52 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/ |
H A D | rocker-hmp-cmds.c | 84 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 …]
|
H A D | rocker_of_dpa.c | 131 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() 1678 OfDpaFlowKey *key = &flow->key; in of_dpa_cmd_add_acl() local [all …]
|
/qemu/include/qemu/ |
H A D | qtree.h | 69 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/ |
H A D | input.c | 165 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 212 InputKeyEvent *key; in qemu_input_event_trace() local 222 key = evt->u.key.data; in qemu_input_event_trace() 223 switch (key->key->type) { in qemu_input_event_trace() 227 trace_input_event_key_number(idx, key->key->u.number.data, in qemu_input_event_trace() 231 name = QKeyCode_str(key->key->u.qcode.data); in qemu_input_event_trace() 362 evt->u.key.data->key->type == KEY_VALUE_KIND_NUMBER)); in qemu_input_event_send() 374 evt->u.key.data->key->u.qcode.data == Q_KEY_CODE_SYSRQ) { in qemu_input_event_send() 375 evt->u.key.data->key->u.qcode.data = Q_KEY_CODE_PRINT; in qemu_input_event_send() [all …]
|
/qemu/tests/qtest/libqos/ |
H A D | fw_cfg.c | 21 void qfw_cfg_select(QFWCFG *fw_cfg, uint16_t key) in qfw_cfg_select() argument 23 fw_cfg->select(fw_cfg, key); in qfw_cfg_select() 33 qfw_cfg_select(fw_cfg, key); in qfw_cfg_get() 37 uint16_t qfw_cfg_get_u16(QFWCFG *fw_cfg, uint16_t key) in qfw_cfg_get_u16() argument 40 qfw_cfg_get(fw_cfg, key, &value, sizeof(value)); in qfw_cfg_get_u16() 44 uint32_t qfw_cfg_get_u32(QFWCFG *fw_cfg, uint16_t key) in qfw_cfg_get_u32() argument 47 qfw_cfg_get(fw_cfg, key, &value, sizeof(value)); in qfw_cfg_get_u32() 51 uint64_t qfw_cfg_get_u64(QFWCFG *fw_cfg, uint16_t key) in qfw_cfg_get_u64() argument 54 qfw_cfg_get(fw_cfg, key, &value, sizeof(value)); in qfw_cfg_get_u64() 60 qtest_writew(fw_cfg->qts, fw_cfg->base, key); in mm_fw_cfg_select() [all …]
|
/qemu/crypto/ |
H A D | cipher-nettle.c.inc | 534 des_set_key(&ctx->key, key); 560 des3_set_key(&ctx->key, key); 587 aes128_set_encrypt_key(&ctx->key[0], key); 588 aes128_set_decrypt_key(&ctx->key[1], key); 616 aes192_set_encrypt_key(&ctx->key[0], key); 617 aes192_set_decrypt_key(&ctx->key[1], key); 672 cast5_set_key(&ctx->key, nkey, key); 701 serpent_set_key(&ctx->key, nkey, key); 730 twofish_set_key(&ctx->key, nkey, key); 747 sm4_set_encrypt_key(&ctx->key[0], key); [all …]
|