Lines Matching refs:key
399 kfree(elt->key); in tracing_map_elt_free()
414 elt->key = kzalloc(map->key_size, GFP_KERNEL); in tracing_map_elt_alloc()
415 if (!elt->key) { in tracing_map_elt_alloc()
505 static inline bool keys_match(void *key, void *test_key, unsigned key_size) in keys_match() argument
509 if (memcmp(key, test_key, key_size)) in keys_match()
516 __tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only) in __tracing_map_insert() argument
523 key_hash = jhash(key, map->key_size, 0); in __tracing_map_insert()
531 test_key = entry->key; in __tracing_map_insert()
536 keys_match(key, val->key, map->key_size)) { in __tracing_map_insert()
566 if (!cmpxchg(&entry->key, 0, key_hash)) { in __tracing_map_insert()
572 entry->key = 0; in __tracing_map_insert()
576 memcpy(elt->key, key, map->key_size); in __tracing_map_insert()
639 struct tracing_map_elt *tracing_map_insert(struct tracing_map *map, void *key) in tracing_map_insert() argument
641 return __tracing_map_insert(map, key, false); in tracing_map_insert()
661 struct tracing_map_elt *tracing_map_lookup(struct tracing_map *map, void *key) in tracing_map_lookup() argument
663 return __tracing_map_insert(map, key, true); in tracing_map_lookup()
853 if (memcmp(a->key, b->key, a->elt->map->key_size)) in cmp_entries_dup()
912 val_a = elt_a->key + field->offset; in cmp_entries_key()
913 val_b = elt_b->key + field->offset; in cmp_entries_key()
952 create_sort_entry(void *key, struct tracing_map_elt *elt) in create_sort_entry() argument
960 sort_entry->key = key; in create_sort_entry()
971 void *key; in detect_dups() local
979 key = sort_entries[0]->key; in detect_dups()
981 if (!memcmp(sort_entries[i]->key, key, key_size)) { in detect_dups()
985 key = sort_entries[i]->key; in detect_dups()
1092 if (!entry->key || !entry->val) in tracing_map_sort_entries()
1095 entries[n_entries] = create_sort_entry(entry->val->key, in tracing_map_sort_entries()