Lines Matching refs:hash
126 struct vmwgfx_hash_item hash; member
146 struct vmwgfx_hash_item *hash; in ttm_tfile_find_ref_rcu() local
148 hash_for_each_possible_rcu(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref_rcu()
149 if (hash->key == key) { in ttm_tfile_find_ref_rcu()
150 *p_hash = hash; in ttm_tfile_find_ref_rcu()
161 struct vmwgfx_hash_item *hash; in ttm_tfile_find_ref() local
163 hash_for_each_possible(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref()
164 if (hash->key == key) { in ttm_tfile_find_ref()
165 *p_hash = hash; in ttm_tfile_find_ref()
261 struct vmwgfx_hash_item *hash; in ttm_base_object_lookup() local
265 ret = ttm_tfile_find_ref(tfile, key, &hash); in ttm_base_object_lookup()
268 base = hlist_entry(hash, struct ttm_ref_object, hash)->obj; in ttm_base_object_lookup()
299 struct vmwgfx_hash_item *hash; in ttm_ref_object_add() local
310 ret = ttm_tfile_find_ref_rcu(tfile, base->handle, &hash); in ttm_ref_object_add()
313 ref = hlist_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_add()
329 ref->hash.key = base->handle; in ttm_ref_object_add()
335 hash_add_rcu(tfile->ref_hash, &ref->hash.head, ref->hash.key); in ttm_ref_object_add()
355 hash_del_rcu(&ref->hash.head); in ttm_ref_object_release()
368 struct vmwgfx_hash_item *hash; in ttm_ref_object_base_unref() local
372 ret = ttm_tfile_find_ref(tfile, key, &hash); in ttm_ref_object_base_unref()
377 ref = hlist_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_base_unref()