Lines Matching refs:accel_state
86 struct radeon_accel_state *accel_state = info->accel_state;
88 accel_state->use_vbos = TRUE;
89 make_empty_list(&accel_state->bo_free);
90 make_empty_list(&accel_state->bo_wait);
91 make_empty_list(&accel_state->bo_reserved);
97 struct radeon_accel_state *accel_state = info->accel_state;
100 foreach_s(dma_bo, temp, &accel_state->bo_free) {
106 foreach_s(dma_bo, temp, &accel_state->bo_wait) {
112 foreach_s(dma_bo, temp, &accel_state->bo_reserved) {
122 struct radeon_accel_state *accel_state = info->accel_state;
124 const int expire_at = ++accel_state->bo_free.expire_counter + DMA_BO_FREE_TIME;
125 const int time = accel_state->bo_free.expire_counter;
127 foreach_s(dma_bo, temp, &accel_state->bo_wait) {
146 insert_at_tail(&accel_state->bo_free, dma_bo);
150 foreach_s(dma_bo, temp, &accel_state->bo_reserved) {
153 insert_at_tail(&accel_state->bo_wait, dma_bo);
157 foreach_s(dma_bo, temp, &accel_state->bo_free) {
161 if (at_end(&accel_state->bo_free, dma_bo)) {
175 struct radeon_accel_state *accel_state = info->accel_state;
179 if (is_empty_list(&accel_state->bo_free)) {
192 insert_at_head(&accel_state->bo_reserved, dma_bo);
194 dma_bo = last_elem(&accel_state->bo_free);
196 insert_at_head(&accel_state->bo_reserved, dma_bo);
199 if (is_empty_list(&accel_state->bo_reserved))
202 bo = first_elem(&accel_state->bo_reserved)->bo;