Lines Matching refs:key
34 int key; member
40 static hashtab_elem_t *lookup_elem_raw(arena_list_head_t *head, __u32 hash, int key) in lookup_elem_raw() argument
45 if (l->hash == hash && l->key == key) in lookup_elem_raw()
51 static int htab_hash(int key) in htab_hash() argument
53 return key; in htab_hash()
56 __weak int htab_lookup_elem(htab_t *htab __arg_arena, int key) in htab_lookup_elem() argument
62 head = select_bucket(htab, key); in htab_lookup_elem()
63 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_lookup_elem()
69 __weak int htab_update_elem(htab_t *htab __arg_arena, int key, int value) in htab_update_elem() argument
75 head = select_bucket(htab, key); in htab_update_elem()
76 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_update_elem()
81 l_new->key = key; in htab_update_elem()
82 l_new->hash = htab_hash(key); in htab_update_elem()