Lines Matching defs:hash
51 * ref_hash hash tables.
80 * @object_lock: lock that protects the object_hash hash table.
82 * @object_hash: hash table for fast lookup of object global names.
103 * @hash: Hash entry for the per-file object reference hash.
113 * This is similar to an idr object, but it also has a hash table entry
123 struct drm_hash_item hash;
247 struct drm_hash_item *hash;
252 ret = drm_ht_find_item_rcu(ht, key, &hash);
259 return drm_hash_entry(hash, struct ttm_ref_object, hash)->obj;
267 struct drm_hash_item *hash;
272 ret = drm_ht_find_item_rcu(ht, key, &hash);
275 base = drm_hash_entry(hash, struct ttm_ref_object, hash)->obj;
313 struct drm_hash_item *hash;
317 if (unlikely(drm_ht_find_item_rcu(ht, base->handle, &hash) != 0))
325 ref = drm_hash_entry(hash, struct ttm_ref_object, hash);
351 struct drm_hash_item *hash;
367 ret = drm_ht_find_item_rcu(ht, base->handle, &hash);
370 ref = drm_hash_entry(hash, struct ttm_ref_object, hash);
391 ref->hash.key = base->handle;
398 ret = drm_ht_insert_item_rcu(ht, &ref->hash);
430 (void)drm_ht_remove_item_rcu(ht, &ref->hash);
448 struct drm_hash_item *hash;
452 ret = drm_ht_find_item(ht, key, &hash);
457 ref = drm_hash_entry(hash, struct ttm_ref_object, hash);