Lines Matching refs:entry

38 	struct ttm_validate_buffer *entry;
40 list_for_each_entry(entry, list, head) {
41 struct ttm_buffer_object *bo = entry->bo;
42 if (!entry->reserved)
45 if (entry->removed) {
47 entry->removed = false;
50 entry->reserved = false;
58 struct ttm_validate_buffer *entry;
60 list_for_each_entry(entry, list, head) {
61 struct ttm_buffer_object *bo = entry->bo;
62 if (!entry->reserved)
65 if (!entry->removed) {
66 entry->put_count = ttm_bo_del_from_lru(bo);
67 entry->removed = true;
74 struct ttm_validate_buffer *entry;
76 list_for_each_entry(entry, list, head) {
77 struct ttm_buffer_object *bo = entry->bo;
79 if (entry->put_count) {
80 ttm_bo_list_ref_sub(bo, entry->put_count, true);
81 entry->put_count = 0;
88 struct ttm_validate_buffer *entry;
94 entry = list_first_entry(list, struct ttm_validate_buffer, head);
95 glob = entry->bo->glob;
116 struct ttm_validate_buffer *entry;
123 list_for_each_entry(entry, list, head) {
124 entry->reserved = false;
125 entry->put_count = 0;
126 entry->removed = false;
129 entry = list_first_entry(list, struct ttm_validate_buffer, head);
130 glob = entry->bo->glob;
133 val_seq = entry->bo->bdev->val_seq++;
136 list_for_each_entry(entry, list, head) {
137 struct ttm_buffer_object *bo = entry->bo;
140 if (entry->reserved)
167 val_seq = entry->bo->bdev->val_seq++;
175 entry->reserved = true;
185 entry->reserved = true;
207 struct ttm_validate_buffer *entry;
224 list_for_each_entry(entry, list, head) {
225 bo = entry->bo;
226 entry->old_sync_obj = bo->sync_obj;
229 entry->reserved = false;
234 list_for_each_entry(entry, list, head) {
235 if (entry->old_sync_obj)
236 driver->sync_obj_unref(&entry->old_sync_obj);