| .. | .. |
|---|
| 40 | 40 | * |
|---|
| 41 | 41 | * @head: list head for thread-private list. |
|---|
| 42 | 42 | * @bo: refcounted buffer object pointer. |
|---|
| 43 | | - * @shared: should the fence be added shared? |
|---|
| 43 | + * @num_shared: How many shared fences we want to add. |
|---|
| 44 | 44 | */ |
|---|
| 45 | 45 | |
|---|
| 46 | 46 | struct ttm_validate_buffer { |
|---|
| 47 | 47 | struct list_head head; |
|---|
| 48 | 48 | struct ttm_buffer_object *bo; |
|---|
| 49 | | - bool shared; |
|---|
| 49 | + unsigned int num_shared; |
|---|
| 50 | 50 | }; |
|---|
| 51 | 51 | |
|---|
| 52 | 52 | /** |
|---|
| .. | .. |
|---|
| 58 | 58 | * Undoes all buffer validation reservations for bos pointed to by |
|---|
| 59 | 59 | * the list entries. |
|---|
| 60 | 60 | */ |
|---|
| 61 | | - |
|---|
| 62 | | -extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, |
|---|
| 63 | | - struct list_head *list); |
|---|
| 61 | +void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, |
|---|
| 62 | + struct list_head *list); |
|---|
| 64 | 63 | |
|---|
| 65 | 64 | /** |
|---|
| 66 | 65 | * function ttm_eu_reserve_buffers |
|---|
| .. | .. |
|---|
| 70 | 69 | * @list: thread private list of ttm_validate_buffer structs. |
|---|
| 71 | 70 | * @intr: should the wait be interruptible |
|---|
| 72 | 71 | * @dups: [out] optional list of duplicates. |
|---|
| 72 | + * @del_lru: true if BOs should be removed from the LRU. |
|---|
| 73 | 73 | * |
|---|
| 74 | 74 | * Tries to reserve bos pointed to by the list entries for validation. |
|---|
| 75 | 75 | * If the function returns 0, all buffers are marked as "unfenced", |
|---|
| .. | .. |
|---|
| 95 | 95 | * ttm_eu_fence_buffer_objects() when command submission is complete or |
|---|
| 96 | 96 | * has failed. |
|---|
| 97 | 97 | */ |
|---|
| 98 | | - |
|---|
| 99 | | -extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, |
|---|
| 100 | | - struct list_head *list, bool intr, |
|---|
| 101 | | - struct list_head *dups); |
|---|
| 98 | +int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, |
|---|
| 99 | + struct list_head *list, bool intr, |
|---|
| 100 | + struct list_head *dups); |
|---|
| 102 | 101 | |
|---|
| 103 | 102 | /** |
|---|
| 104 | 103 | * function ttm_eu_fence_buffer_objects. |
|---|
| .. | .. |
|---|
| 112 | 111 | * It also unreserves all buffers, putting them on lru lists. |
|---|
| 113 | 112 | * |
|---|
| 114 | 113 | */ |
|---|
| 115 | | - |
|---|
| 116 | | -extern void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, |
|---|
| 117 | | - struct list_head *list, |
|---|
| 118 | | - struct dma_fence *fence); |
|---|
| 114 | +void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, |
|---|
| 115 | + struct list_head *list, |
|---|
| 116 | + struct dma_fence *fence); |
|---|
| 119 | 117 | |
|---|
| 120 | 118 | #endif |
|---|