Home
last modified time | relevance | path

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

123456

/xen/xen/xsm/flask/ss/
A Davtab.c45 newnode->key = *key; in avtab_insert_node()
76 if ( key->source_type == cur->key.source_type && in avtab_insert()
81 if ( key->source_type < cur->key.source_type ) in avtab_insert()
83 if ( key->source_type == cur->key.source_type && in avtab_insert()
86 if ( key->source_type == cur->key.source_type && in avtab_insert()
116 if ( key->source_type == cur->key.source_type && in avtab_insert_nonunique()
121 if ( key->source_type < cur->key.source_type ) in avtab_insert_nonunique()
123 if ( key->source_type == cur->key.source_type && in avtab_insert_nonunique()
126 if ( key->source_type == cur->key.source_type && in avtab_insert_nonunique()
154 if ( key->source_type < cur->key.source_type ) in avtab_search()
[all …]
A Dhashtab.c15 const void *key), in hashtab_create() argument
37 int hashtab_insert(struct hashtab *h, void *key, void *datum) in hashtab_insert() argument
45 hvalue = h->hash_value(h, key); in hashtab_insert()
48 while ( cur && h->keycmp(h, key, cur->key) > 0 ) in hashtab_insert()
54 if ( cur && (h->keycmp(h, key, cur->key) == 0) ) in hashtab_insert()
60 newnode->key = key; in hashtab_insert()
77 void *hashtab_search(struct hashtab *h, const void *key) in hashtab_search() argument
85 hvalue = h->hash_value(h, key); in hashtab_search()
87 while ( cur != NULL && h->keycmp(h, key, cur->key) > 0 ) in hashtab_search()
90 if ( cur == NULL || (h->keycmp(h, key, cur->key) != 0) ) in hashtab_search()
[all …]
A Dpolicydb.c188 if ( !key ) in roles_init()
201 xfree(key); in roles_init()
511 xfree(key); in perm_destroy()
520 xfree(key); in common_destroy()
534 xfree(key); in class_destroy()
579 xfree(key); in role_destroy()
589 xfree(key); in type_destroy()
598 xfree(key); in user_destroy()
612 xfree(key); in sens_destroy()
622 xfree(key); in cat_destroy()
[all …]
A Dconditional.c192 int cond_destroy_bool(void *key, void *datum, void *p) in cond_destroy_bool() argument
194 xfree(key); in cond_destroy_bool()
210 p->p_bool_val_to_name[booldatum->value - 1] = key; in cond_index_bool()
225 char *key = NULL; in cond_read_bool() local
247 key = xmalloc_array(char, len + 1); in cond_read_bool()
248 if ( !key ) in cond_read_bool()
250 rc = next_entry(key, fp, len); in cond_read_bool()
253 key[len] = 0; in cond_read_bool()
254 if ( hashtab_insert(h, key, booldatum) ) in cond_read_bool()
259 cond_destroy_bool(key, booldatum, NULL); in cond_read_bool()
[all …]
A Dhashtab.h16 void *key; member
25 u32 (*hash_value)(struct hashtab *h, const void *key);
43 const void *key),
A Dconditional.h66 int cond_destroy_bool(void *key, void *datum, void *p);
68 int cond_index_bool(void *key, void *datum, void *datap);
73 void cond_compute_av(struct avtab *ctab, struct avtab_key *key, struct av_decision *avd);
/xen/xen/common/
A Dkeyhandler.c85 if ( key >= ARRAY_SIZE(key_table) || !(h = &key_table[key])->fn ) in handle_keypress()
91 h->irq_callback ? h->irq_fn(key, regs) : h->fn(key); in handle_keypress()
96 keypress_key = key; in handle_keypress()
107 key_table[key].fn = fn; in register_keyhandler()
108 key_table[key].desc = desc; in register_keyhandler()
109 key_table[key].irq_callback = 0; in register_keyhandler()
110 key_table[key].diagnostic = diagnostic; in register_keyhandler()
119 key_table[key].irq_fn = fn; in register_irq_keyhandler()
120 key_table[key].desc = desc; in register_irq_keyhandler()
121 key_table[key].irq_callback = 1; in register_irq_keyhandler()
[all …]
A Dbsearch.c32 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument
33 int (*cmp)(const void *key, const void *elt)) in bsearch() argument
41 result = cmp(key, base + mid * size); in bsearch()
/xen/tools/xenstore/
A Dxs_tdb_dump.c40 TDB_DATA key; in main() local
51 key = tdb_firstkey(tdb); in main()
52 while (key.dptr) { in main()
56 data = tdb_fetch(tdb, key); in main()
60 (int)key.dsize, key.dptr); in main()
63 (int)key.dsize, key.dptr, (int)data.dsize, in main()
70 printf("%.*s: ", (int)key.dsize, key.dptr); in main()
82 key = tdb_nextkey(tdb, key); in main()
A Dxenstored_transaction.c173 key->dptr = (char *)name; in set_tdb_key()
174 key->dsize = strlen(name); in set_tdb_key()
200 TDB_DATA *key) in transaction_prepend() argument
206 set_tdb_key(name, key); in transaction_prepend()
215 set_tdb_key(tdb_name, key); in transaction_prepend()
252 if (key) in access_node()
312 if (key) { in access_node()
343 TDB_DATA key, ta_key, data; in finalize_transaction() local
353 set_tdb_key(i->node, &key); in finalize_transaction()
416 TDB_DATA key; in destroy_transaction() local
[all …]
A Dtdb.c302 for (value = 0x238F13AF * key->dsize, i=0; i < key->dsize; i++) in default_tdb_hash()
407 return !memcmp(off + (char*)tdb->map_ptr, key.dptr, key.dsize);
410 len = key.dsize;
417 key.dptr += len;
418 key.dsize -= len;
1291 if (!key.dptr) {
1332 TDB_DATA key; local
1347 return key;
1395 key.dsize);
1403 return key;
[all …]
A Dtdb.h107 uint32_t (*hash_fn)(TDB_DATA *key);
113 typedef uint32_t (*tdb_hash_func)(TDB_DATA *key);
122 TDB_DATA tdb_fetch(TDB_CONTEXT *tdb, TDB_DATA key);
123 int tdb_delete(TDB_CONTEXT *tdb, TDB_DATA key);
124 int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
127 TDB_DATA tdb_nextkey(TDB_CONTEXT *tdb, TDB_DATA key);
/xen/xen/tools/kconfig/lxdialog/
A Dmenubox.c270 key = wgetch(menu); in dialog_menu()
272 if (key < 256 && isalpha(key)) in dialog_menu()
273 key = tolower(key); in dialog_menu()
295 key == KEY_UP || key == KEY_DOWN || in dialog_menu()
296 key == '-' || key == '+' || in dialog_menu()
297 key == KEY_PPAGE || key == KEY_NPAGE)) { in dialog_menu()
301 if (key == KEY_UP || key == '-') { in dialog_menu()
310 } else if (key == KEY_DOWN || key == '+') { in dialog_menu()
360 switch (key) { in dialog_menu()
386 switch (key) { in dialog_menu()
[all …]
A Dchecklist.c195 while (key != KEY_ESC) { in dialog_checklist()
196 key = wgetch(dialog); in dialog_checklist()
200 if (toupper(key) == toupper(item_str()[0])) in dialog_checklist()
204 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || in dialog_checklist()
205 key == '+' || key == '-') { in dialog_checklist()
206 if (key == KEY_UP || key == '-') { in dialog_checklist()
231 } else if (key == KEY_DOWN || key == '+') { in dialog_checklist()
273 switch (key) { in dialog_checklist()
301 key = KEY_ESC; in dialog_checklist()
304 key = on_key_esc(dialog); in dialog_checklist()
[all …]
A Dyesno.c31 int i, x, y, key = 0, button = 0; in dialog_yesno() local
65 while (key != KEY_ESC) { in dialog_yesno()
66 key = wgetch(dialog); in dialog_yesno()
67 switch (key) { in dialog_yesno()
80 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno()
90 key = on_key_esc(dialog); in dialog_yesno()
100 return key; /* ESC pressed */ in dialog_yesno()
A Dinputbox.c35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
106 while (key != KEY_ESC) { in dialog_inputbox()
107 key = wgetch(dialog); in dialog_inputbox()
110 switch (key) { in dialog_inputbox()
185 if (key < 0x100 && isprint(key)) { in dialog_inputbox()
191 instr[pos] = key; in dialog_inputbox()
193 instr[len] = key; in dialog_inputbox()
221 switch (key) { in dialog_inputbox()
275 key = KEY_ESC; in dialog_inputbox()
278 key = on_key_esc(dialog); in dialog_inputbox()
/xen/tools/ocaml/xenstored/
A Dtrie.ml19 key: 'a; RecordField
24 let _create key value = {
25 key = key;
30 let empty key = {
31 key = key;
55 let mem_node nodes key =
56 List.exists (fun n -> n.Node.key = key) nodes
58 let find_node nodes key =
59 List.find (fun n -> n.Node.key = key) nodes
64 | h :: tl when h.Node.key = key -> node :: tl
[all …]
/xen/xen/include/xen/
A Dkeyhandler.h20 typedef void (keyhandler_fn_t)(unsigned char key);
28 typedef void (irq_keyhandler_fn_t)(unsigned char key,
39 void register_keyhandler(unsigned char key,
43 void register_irq_keyhandler(unsigned char key,
49 extern void handle_keypress(unsigned char key, struct cpu_user_regs *regs);
/xen/xen/tools/kconfig/
A Dnconf.c311 .key = F_HELP,
323 .key = F_INSTS,
329 .key = F_CONF,
335 .key = F_BACK,
341 .key = F_SAVE,
347 .key = F_LOAD,
359 .key = F_EXIT,
472 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
473 *key == '0' + function_keys[i].key){ in process_special_keys()
1026 if (key == '/' || (state->in_search && key == 27)) { in do_match()
[all …]
/xen/stubdom/vtpmmgr/
A Ddisk_crypto.h5 void aes_encrypt_one(void *target, const void *src, const struct key128 *key);
6 void aes_decrypt_one(void *target, const void *src, const struct key128 *key);
8 void aes_setup(aes_context *ctx, const struct key128 *key);
11 void aes_cmac(struct mac128 *target, const void *src, size_t size, const aes_context *key);
12 …aes_cmac_verify(const struct mac128 *target, const void *src, size_t size, const aes_context *key);
A Ddisk_crypto.c22 void aes_setup(aes_context *ctx, const struct key128 *key) in aes_setup() argument
24 aes_setkey_enc(ctx, (void*)key, 128); in aes_setup()
32 void aes_encrypt_one(void *target, const void *src, const struct key128 *key) in aes_encrypt_one() argument
35 aes_setkey_enc(&ctx, (void*)key, 128); in aes_encrypt_one()
39 void aes_decrypt_one(void *target, const void *src, const struct key128 *key) in aes_decrypt_one() argument
42 aes_setkey_dec(&ctx, (void*)key, 128); in aes_decrypt_one()
166 void aes_cmac(struct mac128 *target, const void *src, size_t size, const aes_context *key) in aes_cmac() argument
174 aes_encrypt_ecb(&L, &x, key); in aes_cmac()
180 aes_encrypt_ecb(&x, &y, key); in aes_cmac()
192 aes_encrypt_ecb(target, &x, key); in aes_cmac()
[all …]
A Dmgmt_authority.c55 TPM_KEY key = TPM_KEY_INIT; in do_provision_aik() local
71 &key, &identityBindingSize, &identityBinding); in do_provision_aik()
81 if (key.pubKey.keyLength != 256) in do_provision_aik()
83 if (key.encDataSize != 256) in do_provision_aik()
89 key.pubKey.keyLength, key.encDataSize, identityBindingSize); in do_provision_aik()
91 memcpy(group->id_data.tpm_aik_public, key.pubKey.key, 256); in do_provision_aik()
92 memcpy(group->id_data.tpm_aik_edata, key.encData, 256); in do_provision_aik()
96 free_TPM_KEY(&key); in do_provision_aik()
104 TPM_KEY key = { in do_load_aik() local
123 .pubKey.key = group->id_data.tpm_aik_public, in do_load_aik()
[all …]
/xen/stubdom/grub/
A Dmini-os.c401 char key; in serial_hw_fetch() local
406 read(STDIN_FILENO, &key, 1); in serial_hw_fetch()
407 switch (key) { in serial_hw_fetch()
410 return key; in serial_hw_fetch()
622 if (ev.key.keycode == 42 || ev.key.keycode == 54) { in console_getkey()
624 shift = ev.key.pressed; in console_getkey()
627 if (ev.key.keycode == 58) { in console_getkey()
631 if (ev.key.keycode == 29 || ev.key.keycode == 97) { in console_getkey()
635 if (ev.key.keycode == 56) { in console_getkey()
636 alt = ev.key.pressed; in console_getkey()
[all …]
/xen/docs/
A Dparse-support-md79 my $key = $s->{Key};
83 $sectlist->{$key} //=
87 Key => $key,
91 $sectnode = $sectlist->{$key};
146 my $key = lc $descr;
147 $key =~ y/ /-/;
148 $key =~ y/-0-9A-Za-z//cd;
149 $key = $insection->{Anchor}.'--'.$key;
150 return $key;
510 foreach my $key (keys %$sectlist) {
[all …]
/xen/docs/man/
A Dxenstore-chmod.1.pod3 xenstore-chmod - set the permissions of a Xenstore key
38 The first permission entry is the domain owning the key (the owner)
40 subsequent entries. The key owner always has full access (read,
47 Apply the permissions to the key and all its I<children>.
55 Apply the permissions to the key and all its I<parents>.

Completed in 39 milliseconds

123456