/lib/ |
D | test_static_keys.c | 37 struct static_key *key; member 41 #define test_key_func(key, branch) \ argument 42 static bool key ## _ ## branch(void) \ 44 return branch(&key); \ 47 static void invert_key(struct static_key *key) in invert_key() argument 49 if (static_key_enabled(key)) in invert_key() 50 static_key_disable(key); in invert_key() 52 static_key_enable(key); in invert_key() 61 if (previous != keys[i].key) { in invert_keys() 62 invert_key(keys[i].key); in invert_keys() [all …]
|
D | btree.c | 135 static void dec_key(struct btree_geo *geo, unsigned long *key) in dec_key() argument 141 val = key[i]; in dec_key() 142 key[i] = val - 1; in dec_key() 159 unsigned long *key) in setkey() argument 161 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey() 208 unsigned long *key) in btree_last() argument 219 longcpy(key, bkey(geo, node, 0), geo->keylen); in btree_last() 225 unsigned long *key) in keycmp() argument 227 return longcmp(bkey(geo, node, pos), key, geo->keylen); in keycmp() 230 static int keyzero(struct btree_geo *geo, unsigned long *key) in keyzero() argument [all …]
|
D | siphash.c | 35 v3 ^= key->key[1]; \ 36 v2 ^= key->key[0]; \ 37 v1 ^= key->key[1]; \ 38 v0 ^= key->key[0]; 52 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_aligned() argument 85 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_unaligned() argument 123 u64 siphash_1u64(const u64 first, const siphash_key_t *key) in siphash_1u64() argument 140 u64 siphash_2u64(const u64 first, const u64 second, const siphash_key_t *key) in siphash_2u64() argument 163 const siphash_key_t *key) in siphash_3u64() argument 191 const u64 forth, const siphash_key_t *key) in siphash_4u64() argument [all …]
|
D | digsig.c | 67 static int digsig_verify_rsa(struct key *key, in digsig_verify_rsa() argument 84 down_read(&key->sem); in digsig_verify_rsa() 85 ukp = user_key_payload_locked(key); in digsig_verify_rsa() 179 up_read(&key->sem); in digsig_verify_rsa() 199 int digsig_verify(struct key *keyring, const char *sig, int siglen, in digsig_verify() 206 struct key *key; in digsig_verify() local 223 key = ERR_CAST(kref); in digsig_verify() 225 key = key_ref_to_ptr(kref); in digsig_verify() 227 key = request_key(&key_type_user, name, NULL); in digsig_verify() 229 if (IS_ERR(key)) { in digsig_verify() [all …]
|
D | test_static_key_base.c | 34 static void invert_key(struct static_key *key) in invert_key() argument 36 if (static_key_enabled(key)) in invert_key() 37 static_key_disable(key); in invert_key() 39 static_key_enable(key); in invert_key() 46 invert_key(&base_inv_true_key.key); in test_static_key_base_init() 47 invert_key(&base_inv_false_key.key); in test_static_key_base_init()
|
D | once.c | 9 struct static_key_true *key; member 17 BUG_ON(!static_key_enabled(work->key)); in once_deferred() 18 static_branch_disable(work->key); in once_deferred() 22 static void once_disable_jump(struct static_key_true *key) in once_disable_jump() argument 31 w->key = key; in once_disable_jump()
|
D | rbtree_test.c | 19 u32 key; member 35 u32 key = node->key; in insert() local 39 if (key < rb_entry(parent, struct test_node, rb)->key) in insert() 52 u32 key = node->key; in insert_cached() local 57 if (key < rb_entry(parent, struct test_node, rb)->key) in insert_cached() 89 u32 key = node->key; in RB_DECLARE_CALLBACKS_MAX() local 98 if (key < parent->key) in RB_DECLARE_CALLBACKS_MAX() 113 u32 key = node->key; in insert_augmented_cached() local 123 if (key < parent->key) in insert_augmented_cached() 153 nodes[i].key = prandom_u32_state(&rnd); in init() [all …]
|
D | test_rhashtable.c | 89 const struct test_obj_val *val = arg->key; in my_cmpfn() 145 struct test_obj_val key = { in test_rht_lookup() local 152 obj = rhashtable_lookup_fast(ht, &key, test_rht_params); in test_rht_lookup() 155 pr_warn("Test failed: Could not find key %u\n", key.id); in test_rht_lookup() 159 key.id); in test_rht_lookup() 246 struct test_obj_val key = { in test_rhashtable() local 251 obj = rhashtable_lookup_fast(ht, &key, test_rht_params); in test_rhashtable() 313 struct test_obj_val key = { in test_rhltable() local 319 h = rhltable_lookup(&rhlt, &key, test_rht_params); in test_rhltable() 538 const char *key; in test_insert_dup() local [all …]
|
D | bsearch.c | 31 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument 32 int (*cmp)(const void *key, const void *elt)) in bsearch() argument 39 result = cmp(key, pivot); in bsearch()
|
D | bucket_locks.c | 16 const char *name, struct lock_class_key *key) in __alloc_bucket_spinlocks() argument 39 lockdep_init_map(&tlocks[i].dep_map, name, key, 0); in __alloc_bucket_spinlocks()
|
D | test_objagg.c | 38 struct tokey key; member 51 struct tokey key; in world_obj_get() local 54 key.id = key_id; in world_obj_get() 55 objagg_obj = objagg_obj_get(objagg, &key); in world_obj_get() 93 const struct tokey *key = obj; in delta_check() local 94 int diff = key->id - parent_key->id; in delta_check() 103 struct tokey *key = obj; in delta_create() local 104 int diff = key->id - parent_key->id; in delta_create() 130 struct tokey *key = obj; in root_create() local 136 memcpy(&root->key, key, sizeof(root->key)); in root_create() [all …]
|
D | extable.c | 95 static int cmp_ex_search(const void *key, const void *elt) in cmp_ex_search() argument 98 unsigned long _key = *(unsigned long *)key; in cmp_ex_search()
|
D | rhashtable.c | 481 const void *key, struct rhash_head *obj) in rhashtable_lookup_one() argument 485 .key = key, in rhashtable_lookup_one() 497 if (!key || in rhashtable_lookup_one() 580 static void *rhashtable_try_insert(struct rhashtable *ht, const void *key, in rhashtable_try_insert() argument 605 hash, key, obj); in rhashtable_try_insert() 622 void *rhashtable_insert_slow(struct rhashtable *ht, const void *key, in rhashtable_insert_slow() argument 629 data = rhashtable_try_insert(ht, key, obj); in rhashtable_insert_slow() 961 static u32 rhashtable_jhash2(const void *key, u32 length, u32 seed) in rhashtable_jhash2() argument 963 return jhash2(key, length, seed); in rhashtable_jhash2()
|
D | percpu_counter.c | 123 struct lock_class_key *key) in __percpu_counter_init() argument 128 lockdep_set_class(&fbc->lock, key); in __percpu_counter_init()
|
D | kobject_uevent.c | 118 const char *next, *buf_end, *key; in kobject_action_args() local 149 key = ++next; in kobject_action_args() 150 if (key > buf_end) in kobject_action_args() 169 key_len, key, (int) (next - buf), buf)) in kobject_action_args()
|
D | dynamic_debug.c | 196 static_branch_disable(&dp->key.dd_key_true); in ddebug_change() 198 static_branch_enable(&dp->key.dd_key_true); in ddebug_change()
|
D | objagg.c | 919 return ops->hints_obj_cmp ? ops->hints_obj_cmp(ptr, arg->key) : in objagg_hints_obj_cmp() 920 memcmp(ptr, arg->key, ht->p.key_len); in objagg_hints_obj_cmp()
|
D | Kconfig.debug | 405 bool "Magic SysRq key" 419 hex "Enable magic SysRq key functions by default" 423 Specifies which SysRq key functions are enabled by default. 428 bool "Enable magic SysRq key over serial" 435 magic SysRq key. 1963 Test the static key interfaces.
|
/lib/crypto/ |
D | des.c | 699 int des_expand_key(struct des_ctx *ctx, const u8 *key, unsigned int keylen) in des_expand_key() argument 704 return des_ekey(ctx->expkey, key) ? 0 : -ENOKEY; in des_expand_key() 823 int des3_ede_expand_key(struct des3_ede_ctx *ctx, const u8 *key, in des3_ede_expand_key() argument 832 err = des3_ede_verify_key(key, keylen, true); in des3_ede_expand_key() 836 des_ekey(pe, key); pe += DES_EXPKEY_WORDS; key += DES_KEY_SIZE; in des3_ede_expand_key() 837 dkey(pe, key); pe += DES_EXPKEY_WORDS; key += DES_KEY_SIZE; in des3_ede_expand_key() 838 des_ekey(pe, key); in des3_ede_expand_key()
|