• Home
  • Raw
  • Download

Lines Matching refs:entry

105 				struct vmw_cmdbuf_res *entry)  in vmw_cmdbuf_res_free()  argument
107 list_del(&entry->head); in vmw_cmdbuf_res_free()
108 WARN_ON(drm_ht_remove_item(&man->resources, &entry->hash)); in vmw_cmdbuf_res_free()
109 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_free()
110 kfree(entry); in vmw_cmdbuf_res_free()
125 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_commit() local
127 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_commit()
128 list_del(&entry->head); in vmw_cmdbuf_res_commit()
129 if (entry->res->func->commit_notify) in vmw_cmdbuf_res_commit()
130 entry->res->func->commit_notify(entry->res, in vmw_cmdbuf_res_commit()
131 entry->state); in vmw_cmdbuf_res_commit()
132 switch (entry->state) { in vmw_cmdbuf_res_commit()
134 entry->state = VMW_CMDBUF_RES_COMMITTED; in vmw_cmdbuf_res_commit()
135 list_add_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_commit()
138 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_commit()
139 kfree(entry); in vmw_cmdbuf_res_commit()
162 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_revert() local
165 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_revert()
166 switch (entry->state) { in vmw_cmdbuf_res_revert()
168 vmw_cmdbuf_res_free(entry->man, entry); in vmw_cmdbuf_res_revert()
171 ret = drm_ht_insert_item(&entry->man->resources, in vmw_cmdbuf_res_revert()
172 &entry->hash); in vmw_cmdbuf_res_revert()
173 list_del(&entry->head); in vmw_cmdbuf_res_revert()
174 list_add_tail(&entry->head, &entry->man->list); in vmw_cmdbuf_res_revert()
175 entry->state = VMW_CMDBUF_RES_COMMITTED; in vmw_cmdbuf_res_revert()
248 struct vmw_cmdbuf_res *entry; in vmw_cmdbuf_res_remove() local
257 entry = drm_hash_entry(hash, struct vmw_cmdbuf_res, hash); in vmw_cmdbuf_res_remove()
259 switch (entry->state) { in vmw_cmdbuf_res_remove()
261 vmw_cmdbuf_res_free(man, entry); in vmw_cmdbuf_res_remove()
265 (void) drm_ht_remove_item(&man->resources, &entry->hash); in vmw_cmdbuf_res_remove()
266 list_del(&entry->head); in vmw_cmdbuf_res_remove()
267 entry->state = VMW_CMDBUF_RES_DEL; in vmw_cmdbuf_res_remove()
268 list_add_tail(&entry->head, list); in vmw_cmdbuf_res_remove()
269 *res_p = entry->res; in vmw_cmdbuf_res_remove()
320 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_man_destroy() local
322 list_for_each_entry_safe(entry, next, &man->list, head) in vmw_cmdbuf_res_man_destroy()
323 vmw_cmdbuf_res_free(man, entry); in vmw_cmdbuf_res_man_destroy()