Lines Matching refs:hash
47 struct vmwgfx_hash_item hash; member
86 struct vmwgfx_hash_item *hash; in vmw_cmdbuf_res_lookup() local
89 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_lookup()
90 if (hash->key == key) in vmw_cmdbuf_res_lookup()
91 return hlist_entry(hash, struct vmw_cmdbuf_res, hash)->res; in vmw_cmdbuf_res_lookup()
109 hash_del_rcu(&entry->hash.head); in vmw_cmdbuf_res_free()
170 hash_add_rcu(entry->man->resources, &entry->hash.head, in vmw_cmdbuf_res_revert()
171 entry->hash.key); in vmw_cmdbuf_res_revert()
207 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
208 hash_add_rcu(man->resources, &cres->hash.head, cres->hash.key); in vmw_cmdbuf_res_add()
241 struct vmwgfx_hash_item *hash; in vmw_cmdbuf_res_remove() local
244 hash_for_each_possible_rcu(man->resources, hash, head, key) { in vmw_cmdbuf_res_remove()
245 if (hash->key == key) { in vmw_cmdbuf_res_remove()
246 entry = hlist_entry(hash, struct vmw_cmdbuf_res, hash); in vmw_cmdbuf_res_remove()
259 hash_del_rcu(&entry->hash.head); in vmw_cmdbuf_res_remove()