Lines Matching refs:type
47 if (key->type == &key_type_keyring) in keyring_key_to_ptr()
168 unsigned long hash, type; in hash_key_type_and_desc() local
173 type = (unsigned long)index_key->type; in hash_key_type_and_desc()
174 acc = mult_64x32_and_fold(type, desc_len + 13); in hash_key_type_and_desc()
203 if (index_key->type != &key_type_keyring && (hash & fan_mask) == 0) in hash_key_type_and_desc()
205 else if (index_key->type == &key_type_keyring && (hash & fan_mask) != 0) in hash_key_type_and_desc()
222 if (index_key->type->flags & KEY_TYPE_NET_DOMAIN) in key_set_index_key()
282 return (unsigned long)index_key->type; in keyring_get_key_chunk()
314 return key->index_key.type == index_key->type && in keyring_compare_object()
351 seg_a = (unsigned long)a->type; in keyring_diff_objects()
352 seg_b = (unsigned long)b->type; in keyring_diff_objects()
465 key->type->name, key->serial, ctx->count, ctx->buflen); in keyring_read_iterator()
559 const struct key_type *type, in restrict_link_reject() argument
588 if (key->type != ctx->index_key.type) { in keyring_search_iterator()
684 ctx->index_key.type->name, in search_nested_keyrings()
916 if (keyring->type != &key_type_keyring) in keyring_search_rcu()
942 struct key_type *type, in keyring_search() argument
947 .index_key.type = type, in keyring_search()
961 if (type->match_preparse) { in keyring_search()
962 ret = type->match_preparse(&ctx.match_data); in keyring_search()
971 if (type->match_free) in keyring_search()
972 type->match_free(&ctx.match_data); in keyring_search()
1005 keyres->key->type == &key_type_keyring) { in keyring_detect_restriction_cycle()
1025 int keyring_restrict(key_ref_t keyring_ref, const char *type, in keyring_restrict() argument
1036 if (keyring->type != &key_type_keyring) in keyring_restrict()
1039 if (!type) { in keyring_restrict()
1042 restrict_type = key_type_lookup(type); in keyring_restrict()
1109 keyring->serial, index_key->type->name, index_key->description); in find_key_to_update()
1243 if (keyring->type != &key_type_keyring) in __key_link_lock()
1251 if (index_key->type == &key_type_keyring) in __key_link_lock()
1266 if (l_keyring->type != &key_type_keyring || in __key_move_lock()
1267 u_keyring->type != &key_type_keyring) in __key_move_lock()
1285 if (index_key->type == &key_type_keyring) in __key_move_lock()
1302 keyring->serial, index_key->type->name, index_key->description); in __key_link_begin()
1354 if (key->type == &key_type_keyring) in __key_link_check_live_key()
1388 BUG_ON(index_key->type == NULL); in __key_link_end()
1389 kenter("%d,%s,", keyring->serial, index_key->type->name); in __key_link_end()
1400 if (index_key->type == &key_type_keyring) in __key_link_end()
1411 return keyring->restrict_link->check(keyring, key->type, &key->payload, in __key_link_check_restriction()
1474 if (keyring->type != &key_type_keyring) in __key_unlink_lock()
1651 if (keyring->type != &key_type_keyring) in keyring_clear()