/xen/xen/xsm/flask/ss/ |
A D | avtab.c | 45 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 D | hashtab.c | 15 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 D | policydb.c | 188 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 D | conditional.c | 192 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 D | hashtab.h | 16 void *key; member 25 u32 (*hash_value)(struct hashtab *h, const void *key); 43 const void *key),
|
A D | conditional.h | 66 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 D | keyhandler.c | 85 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 D | bsearch.c | 32 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 D | xs_tdb_dump.c | 40 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 D | xenstored_transaction.c | 173 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 D | tdb.c | 302 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 D | tdb.h | 107 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 D | menubox.c | 270 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 D | checklist.c | 195 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 D | yesno.c | 31 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 D | inputbox.c | 35 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 D | trie.ml | 19 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 D | keyhandler.h | 20 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 D | nconf.c | 311 .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 D | disk_crypto.h | 5 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 D | disk_crypto.c | 22 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 D | mgmt_authority.c | 55 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 D | mini-os.c | 401 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 D | parse-support-md | 79 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 D | xenstore-chmod.1.pod | 3 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>.
|