Lines Matching refs:entry
36 struct ttm_validate_buffer *entry; in ttm_eu_backoff_reservation_locked() local
38 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked()
39 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_locked()
40 if (!entry->reserved) in ttm_eu_backoff_reservation_locked()
43 if (entry->removed) { in ttm_eu_backoff_reservation_locked()
45 entry->removed = false; in ttm_eu_backoff_reservation_locked()
48 entry->reserved = false; in ttm_eu_backoff_reservation_locked()
56 struct ttm_validate_buffer *entry; in ttm_eu_del_from_lru_locked() local
58 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked()
59 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_del_from_lru_locked()
60 if (!entry->reserved) in ttm_eu_del_from_lru_locked()
63 if (!entry->removed) { in ttm_eu_del_from_lru_locked()
64 entry->put_count = ttm_bo_del_from_lru(bo); in ttm_eu_del_from_lru_locked()
65 entry->removed = true; in ttm_eu_del_from_lru_locked()
72 struct ttm_validate_buffer *entry; in ttm_eu_list_ref_sub() local
74 list_for_each_entry(entry, list, head) { in ttm_eu_list_ref_sub()
75 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_list_ref_sub()
77 if (entry->put_count) { in ttm_eu_list_ref_sub()
78 ttm_bo_list_ref_sub(bo, entry->put_count, true); in ttm_eu_list_ref_sub()
79 entry->put_count = 0; in ttm_eu_list_ref_sub()
86 struct ttm_validate_buffer *entry; in ttm_eu_backoff_reservation() local
92 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_backoff_reservation()
93 glob = entry->bo->glob; in ttm_eu_backoff_reservation()
114 struct ttm_validate_buffer *entry; in ttm_eu_reserve_buffers() local
121 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers()
122 entry->reserved = false; in ttm_eu_reserve_buffers()
123 entry->put_count = 0; in ttm_eu_reserve_buffers()
124 entry->removed = false; in ttm_eu_reserve_buffers()
127 entry = list_first_entry(list, struct ttm_validate_buffer, head); in ttm_eu_reserve_buffers()
128 glob = entry->bo->glob; in ttm_eu_reserve_buffers()
131 val_seq = entry->bo->bdev->val_seq++; in ttm_eu_reserve_buffers()
134 list_for_each_entry(entry, list, head) { in ttm_eu_reserve_buffers()
135 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_reserve_buffers()
138 if (entry->reserved) in ttm_eu_reserve_buffers()
165 val_seq = entry->bo->bdev->val_seq++; in ttm_eu_reserve_buffers()
173 entry->reserved = true; in ttm_eu_reserve_buffers()
183 entry->reserved = true; in ttm_eu_reserve_buffers()
205 struct ttm_validate_buffer *entry; in ttm_eu_fence_buffer_objects() local
222 list_for_each_entry(entry, list, head) { in ttm_eu_fence_buffer_objects()
223 bo = entry->bo; in ttm_eu_fence_buffer_objects()
224 entry->old_sync_obj = bo->sync_obj; in ttm_eu_fence_buffer_objects()
227 entry->reserved = false; in ttm_eu_fence_buffer_objects()
232 list_for_each_entry(entry, list, head) { in ttm_eu_fence_buffer_objects()
233 if (entry->old_sync_obj) in ttm_eu_fence_buffer_objects()
234 driver->sync_obj_unref(&entry->old_sync_obj); in ttm_eu_fence_buffer_objects()