Lines Matching refs:hash

122 	struct drm_hash_item hash;  member
176 &base->hash, in ttm_base_object_init()
191 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); in ttm_base_object_init()
205 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); in ttm_release_base()
233 struct drm_hash_item *hash; in ttm_base_object_lookup() local
238 ret = drm_ht_find_item_rcu(ht, key, &hash); in ttm_base_object_lookup()
241 base = drm_hash_entry(hash, struct ttm_ref_object, hash)->obj; in ttm_base_object_lookup()
255 struct drm_hash_item *hash; in ttm_base_object_lookup_for_ref() local
260 ret = drm_ht_find_item_rcu(ht, key, &hash); in ttm_base_object_lookup_for_ref()
263 base = drm_hash_entry(hash, struct ttm_base_object, hash); in ttm_base_object_lookup_for_ref()
287 struct drm_hash_item *hash; in ttm_ref_object_exists() local
291 if (unlikely(drm_ht_find_item_rcu(ht, base->hash.key, &hash) != 0)) in ttm_ref_object_exists()
299 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_exists()
325 struct drm_hash_item *hash; in ttm_ref_object_add() local
337 ret = drm_ht_find_item_rcu(ht, base->hash.key, &hash); in ttm_ref_object_add()
340 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_add()
358 ref->hash.key = base->hash.key; in ttm_ref_object_add()
365 ret = drm_ht_insert_item_rcu(ht, &ref->hash); in ttm_ref_object_add()
397 (void)drm_ht_remove_item_rcu(ht, &ref->hash); in ttm_ref_object_release()
415 struct drm_hash_item *hash; in ttm_ref_object_base_unref() local
419 ret = drm_ht_find_item(ht, key, &hash); in ttm_ref_object_base_unref()
424 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_base_unref()
637 *handle = base->hash.key; in ttm_prime_fd_to_handle()