Lines Matching refs:entry

106 				struct vmw_cmdbuf_res *entry)  in vmw_cmdbuf_res_free()  argument
108 list_del(&entry->head); in vmw_cmdbuf_res_free()
109 hash_del_rcu(&entry->hash.head); in vmw_cmdbuf_res_free()
110 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_free()
111 kfree(entry); in vmw_cmdbuf_res_free()
126 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_commit() local
128 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_commit()
129 list_del(&entry->head); in vmw_cmdbuf_res_commit()
130 if (entry->res->func->commit_notify) in vmw_cmdbuf_res_commit()
131 entry->res->func->commit_notify(entry->res, in vmw_cmdbuf_res_commit()
132 entry->state); in vmw_cmdbuf_res_commit()
133 switch (entry->state) { in vmw_cmdbuf_res_commit()
135 entry->state = VMW_CMDBUF_RES_COMMITTED; in vmw_cmdbuf_res_commit()
136 list_add_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_commit()
139 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_commit()
140 kfree(entry); in vmw_cmdbuf_res_commit()
162 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_revert() local
164 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_revert()
165 switch (entry->state) { in vmw_cmdbuf_res_revert()
167 vmw_cmdbuf_res_free(entry->man, entry); in vmw_cmdbuf_res_revert()
170 hash_add_rcu(entry->man->resources, &entry->hash.head, in vmw_cmdbuf_res_revert()
171 entry->hash.key); in vmw_cmdbuf_res_revert()
172 list_move_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_revert()
173 entry->state = VMW_CMDBUF_RES_COMMITTED; in vmw_cmdbuf_res_revert()
240 struct vmw_cmdbuf_res *entry = NULL; in vmw_cmdbuf_res_remove() local
246 entry = hlist_entry(hash, struct vmw_cmdbuf_res, hash); in vmw_cmdbuf_res_remove()
250 if (unlikely(!entry)) in vmw_cmdbuf_res_remove()
253 switch (entry->state) { in vmw_cmdbuf_res_remove()
255 vmw_cmdbuf_res_free(man, entry); in vmw_cmdbuf_res_remove()
259 hash_del_rcu(&entry->hash.head); in vmw_cmdbuf_res_remove()
260 list_del(&entry->head); in vmw_cmdbuf_res_remove()
261 entry->state = VMW_CMDBUF_RES_DEL; in vmw_cmdbuf_res_remove()
262 list_add_tail(&entry->head, list); in vmw_cmdbuf_res_remove()
263 *res_p = entry->res; in vmw_cmdbuf_res_remove()
309 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_man_destroy() local
311 list_for_each_entry_safe(entry, next, &man->list, head) in vmw_cmdbuf_res_man_destroy()
312 vmw_cmdbuf_res_free(man, entry); in vmw_cmdbuf_res_man_destroy()