Lines Matching refs:hash
123 struct vmwgfx_hash_item hash; member
143 struct vmwgfx_hash_item *hash; in ttm_tfile_find_ref_rcu() local
145 hash_for_each_possible_rcu(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref_rcu()
146 if (hash->key == key) { in ttm_tfile_find_ref_rcu()
147 *p_hash = hash; in ttm_tfile_find_ref_rcu()
158 struct vmwgfx_hash_item *hash; in ttm_tfile_find_ref() local
160 hash_for_each_possible(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref()
161 if (hash->key == key) { in ttm_tfile_find_ref()
162 *p_hash = hash; in ttm_tfile_find_ref()
258 struct vmwgfx_hash_item *hash; in ttm_base_object_lookup() local
262 ret = ttm_tfile_find_ref(tfile, key, &hash); in ttm_base_object_lookup()
265 base = hlist_entry(hash, struct ttm_ref_object, hash)->obj; in ttm_base_object_lookup()
296 struct vmwgfx_hash_item *hash; in ttm_ref_object_add() local
307 ret = ttm_tfile_find_ref_rcu(tfile, base->handle, &hash); in ttm_ref_object_add()
310 ref = hlist_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_add()
326 ref->hash.key = base->handle; in ttm_ref_object_add()
332 hash_add_rcu(tfile->ref_hash, &ref->hash.head, ref->hash.key); in ttm_ref_object_add()
352 hash_del_rcu(&ref->hash.head); in ttm_ref_object_release()
365 struct vmwgfx_hash_item *hash; in ttm_ref_object_base_unref() local
369 ret = ttm_tfile_find_ref(tfile, key, &hash); in ttm_ref_object_base_unref()
374 ref = hlist_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_base_unref()