Home
last modified time | relevance | path

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

123

/illumos-kvm-cmd/
H A Dqdict.c79 entry->key = qemu_strdup(key); in alloc_entry()
103 return entry->key; in qdict_entry_key()
115 if (!strcmp(entry->key, key)) in qdict_find()
161 entry = qdict_find(qdict, key, tdb_hash(key) % QDICT_BUCKET_MAX); in qdict_get()
192 obj = qdict_get(qdict, key); in qdict_get_obj()
303 obj = qdict_get(qdict, key); in qdict_get_try_int()
321 obj = qdict_get(qdict, key); in qdict_get_try_bool()
340 obj = qdict_get(qdict, key); in qdict_get_try_str()
409 assert(e->key != NULL); in qentry_destroy()
413 qemu_free(e->key); in qentry_destroy()
[all …]
H A Dcheck-qdict.c59 qemu_free(ent->key); in START_TEST()
96 const char *key = "test"; in START_TEST() local
112 const char *key = "int"; in START_TEST() local
125 const char *key = "int"; in START_TEST() local
137 const char *key = "key"; in START_TEST() local
151 const char *key = "key"; in START_TEST() local
170 const char *key = "test"; in START_TEST() local
184 qdict_del(tests_dict, key); in START_TEST()
272 remove_dots(key); in read_line()
281 char key[128]; in START_TEST() local
[all …]
H A Dqdict.h24 char *key; member
41 void qdict_del(QDict *qdict, const char *key);
42 int qdict_haskey(const QDict *qdict, const char *key);
43 QObject *qdict_get(const QDict *qdict, const char *key);
52 #define qdict_put(qdict, key, obj) \ argument
53 qdict_put_obj(qdict, key, QOBJECT(obj))
56 double qdict_get_double(const QDict *qdict, const char *key);
57 int64_t qdict_get_int(const QDict *qdict, const char *key);
58 int qdict_get_bool(const QDict *qdict, const char *key);
59 QList *qdict_get_qlist(const QDict *qdict, const char *key);
[all …]
H A Daes.h14 AES_KEY *key);
16 AES_KEY *key);
19 const AES_KEY *key);
21 const AES_KEY *key);
23 const unsigned long length, const AES_KEY *key,
H A Daes.c732 AES_KEY *key) { in AES_set_encrypt_key() argument
738 if (!userKey || !key) in AES_set_encrypt_key()
743 rk = key->rd_key; in AES_set_encrypt_key()
746 key->rounds = 10; in AES_set_encrypt_key()
748 key->rounds = 12; in AES_set_encrypt_key()
750 key->rounds = 14; in AES_set_encrypt_key()
833 AES_KEY *key) { in AES_set_decrypt_key() argument
844 rk = key->rd_key; in AES_set_decrypt_key()
886 const AES_KEY *key) { in AES_encrypt() argument
895 rk = key->rd_key; in AES_encrypt()
[all …]
H A Dqerror.c340 const char *end, *key; in append_field() local
354 key = qstring_get_str(key_qs); in append_field()
357 obj = qdict_get(qdict, key); in append_field()
359 qerror_abort(qerror, "key '%s' not found in QDict", key); in append_field()
364 qstring_append(outstr, qdict_get_str(qdict, key)); in append_field()
367 qstring_append_int(outstr, qdict_get_int(qdict, key)); in append_field()
H A Dballoon.c65 static void print_balloon_stat(const char *key, QObject *obj, void *opaque) in print_balloon_stat() argument
69 if (strcmp(key, "actual")) in print_balloon_stat()
70 monitor_printf(mon, ",%s=%" PRId64, key, in print_balloon_stat()
H A Djson-parser.c272 QObject *key, *token = NULL, *value, *peek; in parse_pair() local
276 key = parse_value(ctxt, &working, ap); in parse_pair()
277 if (!key || qobject_type(key) != QTYPE_QSTRING) { in parse_pair()
294 qdict_put_obj(dict, qstring_get_str(qobject_to_qstring(key)), value); in parse_pair()
297 qobject_decref(key); in parse_pair()
305 qobject_decref(key); in parse_pair()
H A Dmonitor.c3960 *key = NULL; in key_get_info()
3969 *key = str; in key_get_info()
4028 char *key; in monitor_parse_command() local
4348 qemu_free(key); in monitor_parse_command()
4349 key = NULL; in monitor_parse_command()
4363 qemu_free(key); in monitor_parse_command()
4583 const KeyDef *key; in monitor_find_completion() local
4657 for(key = key_defs; key->name != NULL; key++) { in monitor_find_completion()
4823 key = qstring_new(); in qdict_from_args_type()
4826 cur_qs = key; in qdict_from_args_type()
[all …]
H A Dqjson.c83 static void to_json_dict_iter(const char *key, QObject *obj, void *opaque) in to_json_dict_iter() argument
98 qkey = qstring_from_str(key); in to_json_dict_iter()
/illumos-kvm-cmd/hw/
H A Dfw_cfg.c89 s->cur_entry = key; in fw_cfg_select()
231 int arch = !!(key & FW_CFG_ARCH_LOCAL); in fw_cfg_add_bytes()
233 key &= FW_CFG_ENTRY_MASK; in fw_cfg_add_bytes()
235 if (key >= FW_CFG_MAX_ENTRY) in fw_cfg_add_bytes()
238 s->entries[arch][key].data = data; in fw_cfg_add_bytes()
239 s->entries[arch][key].len = len; in fw_cfg_add_bytes()
274 int arch = !!(key & FW_CFG_ARCH_LOCAL); in fw_cfg_add_callback()
276 if (!(key & FW_CFG_WRITE_CHANNEL)) in fw_cfg_add_callback()
279 key &= FW_CFG_ENTRY_MASK; in fw_cfg_add_callback()
284 s->entries[arch][key].data = data; in fw_cfg_add_callback()
[all …]
H A Dapplesmc.c64 const char *key; member
74 uint8_t key[4]; member
104 if (!memcmp(d->key, s->key, 4)) { in applesmc_fill_data()
105 smc_debug("Key matched (%s Len=%d Data=%s)\n", d->key, in applesmc_fill_data()
121 s->key[s->read_pos] = val; in applesmc_io_data_writeb()
127 smc_debug("Key = %c%c%c%c Len = %d\n", s->key[0], in applesmc_io_data_writeb()
128 s->key[1], s->key[2], s->key[3], val); in applesmc_io_data_writeb()
168 static void applesmc_add_key(struct AppleSMCStatus *s, const char *key, in applesmc_add_key() argument
174 def->key = key; in applesmc_add_key()
H A Dmac_dbdma.c394 if (!addr || key > KEY_STREAM3) { in start_output()
419 if (!addr || key > KEY_STREAM3) { in start_input()
445 if (key != KEY_SYSTEM) { in load_word()
484 if (key != KEY_SYSTEM) { in store_word()
539 uint16_t cmd, key; in channel_run() local
562 key = le16_to_cpu(current->command) & 0x0700; in channel_run()
566 if (key == KEY_STREAM4) { in channel_run()
590 if (key < KEY_REGS) { in channel_run()
592 key = KEY_SYSTEM; in channel_run()
611 load_word(ch, key, phy_addr, req_count); in channel_run()
[all …]
H A Dfw_cfg.h57 int fw_cfg_add_bytes(FWCfgState *s, uint16_t key, uint8_t *data, uint32_t len);
58 int fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value);
59 int fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value);
60 int fw_cfg_add_i64(FWCfgState *s, uint16_t key, uint64_t value);
61 int fw_cfg_add_callback(FWCfgState *s, uint16_t key, FWCfgCallback callback,
H A Dusb-hid.c67 uint8_t key[16]; member
512 uint8_t hid_code, key; in usb_keyboard_process_keycode() local
521 key = keycode & 0x7f; in usb_keyboard_process_keycode()
549 if (s->key[i] == hid_code) { in usb_keyboard_process_keycode()
550 s->key[i] = s->key[-- s->keys]; in usb_keyboard_process_keycode()
551 s->key[s->keys] = 0x00; in usb_keyboard_process_keycode()
558 if (s->key[i] == hid_code) in usb_keyboard_process_keycode()
561 if (s->keys < sizeof(s->key)) in usb_keyboard_process_keycode()
562 s->key[s->keys ++] = hid_code; in usb_keyboard_process_keycode()
673 memcpy(buf + 2, s->key, MIN(8, len) - 2); in usb_keyboard_poll()
[all …]
H A Delf_ops.h65 struct elf_sym *key = (struct elf_sym *)s0; in glue() local
68 if (key->st_value < sym->st_value) { in glue()
70 } else if (key->st_value >= sym->st_value + sym->st_size) { in glue()
80 struct elf_sym key; in glue() local
83 key.st_value = orig_addr; in glue()
85 sym = bsearch(&key, syms, s->disas_num_syms, sizeof(*syms), glue(symfind, SZ)); in glue()
/illumos-kvm-cmd/kvm/
H A Dkvm_stat15 def val(key): argument
17 return dict([(key, val(key)) for key in self._fields])
275 def wanted(key): argument
281 self.values = dict([(key, None)
288 oldval = self.values[key]
289 newval = new[key]
320 for key in sorted(s.keys(), key = sortkey):
323 values = s[key]
327 screen.addstr(row, col, key)
354 for key in sorted(s.keys()):
[all …]
/illumos-kvm-cmd/ui/
H A Dx_keymap.c160 uint8_t translate_xfree86_keycode(const int key) in translate_xfree86_keycode() argument
162 return x_keycode_to_pc_keycode[key]; in translate_xfree86_keycode()
165 uint8_t translate_evdev_keycode(const int key) in translate_evdev_keycode() argument
167 return evdev_keycode_to_pc_keycode[key]; in translate_evdev_keycode()
H A Dx_keymap.h28 uint8_t translate_xfree86_keycode(const int key);
30 uint8_t translate_evdev_keycode(const int key);
H A Dsdl.c584 keycode = sdl_keyevent_to_keycode(&ev->key); in sdl_refresh()
613 if (ev->key.keysym.mod & (KMOD_LCTRL | KMOD_RCTRL)) { in sdl_refresh()
614 switch(ev->key.keysym.sym) { in sdl_refresh()
626 switch(ev->key.keysym.sym) { in sdl_refresh()
642 } else if (ev->key.keysym.unicode != 0) { in sdl_refresh()
643 kbd_put_keysym(ev->key.keysym.unicode); in sdl_refresh()
648 mod_state = (ev->key.keysym.mod & gui_grab_code); in sdl_refresh()
650 mod_state = (ev->key.keysym.mod & in sdl_refresh()
680 sdl_process_key(&ev->key); in sdl_refresh()
H A Dd3des.c67 void deskey(unsigned char *key, int edf) in deskey() argument
76 pc1m[j] = (key[l >> 3] & bytebit[m]) ? 1 : 0; in deskey()
/illumos-kvm-cmd/kvm/scripts/
H A Dvmxcap71 def first_bit(key): argument
72 if type(key) is tuple:
73 return key[0]
75 return key
76 for bits in sorted(self.bits.keys(), key = first_bit):
/illumos-kvm-cmd/slirp/
H A Dtftp.c119 const char *key, uint32_t value, in tftp_send_oack() argument
140 key) + 1; in tftp_send_oack()
341 const char *key, *value; in tftp_handle_rrq() local
343 key = (const char *)&tp->x.tp_buf[k]; in tftp_handle_rrq()
344 k += strlen(key) + 1; in tftp_handle_rrq()
354 if (strcasecmp(key, "tsize") == 0) { in tftp_handle_rrq()
/illumos-kvm-cmd/target-ppc/
H A Dhelper.c132 static inline int pp_check(int key, int pp, int nx) in pp_check() argument
139 if (key == 0) { in pp_check()
239 access = pp_check(ctx->key, pp, ctx->nx); in _pte_check()
472 int key, pp, valid, prot; in bat_601_size_prot() local
482 key = (*BATu >> 3) & 1; in bat_601_size_prot()
484 key = (*BATu >> 2) & 1; in bat_601_size_prot()
485 prot = pp_check(key, pp, 0); in bat_601_size_prot()
878 ctx->key = ((attr & 0x40) && (pr != 0)) || in get_segment()
909 ctx->key, ds, ctx->nx, vsid); in get_segment()
1033 if ((rw == 1 || ctx->key != 1) && (rw == 0 || ctx->key != 0)) { in get_segment()
[all …]
/illumos-kvm-cmd/linux-user/x86_64/
H A Dsyscall.h66 int key; member

Completed in 200 milliseconds

123