Lines Matching defs:vc4

60 	struct vc4_dev *vc4 =
67 mutex_lock(&vc4->bin_bo_lock);
69 if (!vc4->bin_bo)
72 bo = vc4->bin_bo;
74 bin_bo_slot = vc4_v3d_get_bin_slot(vc4);
80 spin_lock_irqsave(&vc4->job_lock, irqflags);
82 if (vc4->bin_alloc_overflow) {
89 exec = vc4_first_bin_job(vc4);
91 exec = vc4_last_render_job(vc4);
93 exec->bin_slots |= vc4->bin_alloc_overflow;
98 vc4->bin_alloc_used &= ~vc4->bin_alloc_overflow;
101 vc4->bin_alloc_overflow = BIT(bin_bo_slot);
103 V3D_WRITE(V3D_BPOA, bo->base.paddr + bin_bo_slot * vc4->bin_alloc_size);
107 spin_unlock_irqrestore(&vc4->job_lock, irqflags);
110 mutex_unlock(&vc4->bin_bo_lock);
116 struct vc4_dev *vc4 = to_vc4_dev(dev);
117 struct vc4_exec_info *next, *exec = vc4_first_bin_job(vc4);
123 next = vc4_first_bin_job(vc4);
136 struct vc4_dev *vc4 = to_vc4_dev(dev);
137 struct vc4_exec_info *exec = vc4_first_bin_job(vc4);
144 vc4_perfmon_stop(vc4, exec->perfmon, false);
146 list_move_tail(&exec->head, &vc4->bin_job_list);
153 struct vc4_dev *vc4 = to_vc4_dev(dev);
154 struct vc4_exec_info *exec = vc4_first_render_job(vc4);
160 vc4->finished_seqno++;
161 list_move_tail(&exec->head, &vc4->job_done_list);
163 nextbin = vc4_first_bin_job(vc4);
164 nextrender = vc4_first_render_job(vc4);
171 vc4_perfmon_stop(vc4, exec->perfmon, true);
191 wake_up_all(&vc4->job_wait_queue);
192 schedule_work(&vc4->job_done_work);
199 struct vc4_dev *vc4 = to_vc4_dev(dev);
216 schedule_work(&vc4->overflow_mem_work);
221 spin_lock(&vc4->job_lock);
223 spin_unlock(&vc4->job_lock);
228 spin_lock(&vc4->job_lock);
230 spin_unlock(&vc4->job_lock);
240 struct vc4_dev *vc4 = to_vc4_dev(dev);
242 if (!vc4->v3d)
245 init_waitqueue_head(&vc4->job_wait_queue);
246 INIT_WORK(&vc4->overflow_mem_work, vc4_overflow_mem_work);
257 struct vc4_dev *vc4 = to_vc4_dev(dev);
259 if (!vc4->v3d)
273 struct vc4_dev *vc4 = to_vc4_dev(dev);
275 if (!vc4->v3d)
287 cancel_work_sync(&vc4->overflow_mem_work);
293 struct vc4_dev *vc4 = to_vc4_dev(dev);
307 spin_lock_irqsave(&vc4->job_lock, irqflags);
310 spin_unlock_irqrestore(&vc4->job_lock, irqflags);