Lines Matching defs:key
73 static inline unsigned translate_hash_key_size(struct translate_key *key)
76 sizeof(struct translate_element) * (TRANSLATE_MAX_ATTRIBS - key->nr_elements);
80 static inline unsigned create_key(struct translate_key *key)
83 unsigned size = translate_hash_key_size(key);
84 /*debug_printf("key size = %d, (els = %d)\n",
85 size, key->nr_elements);*/
86 hash_key = cso_construct_key(key, size);
91 struct translate_key *key)
93 unsigned hash_key = create_key(key);
97 key, sizeof(*key));
101 translate = translate_create(key);