Lines Matching refs:syncpt
164 struct host1x_syncpt *syncpt, in process_wait_list() argument
174 spin_lock(&syncpt->intr.lock); in process_wait_list()
176 remove_completed_waiters(&syncpt->intr.wait_head, threshold, in process_wait_list()
179 empty = list_empty(&syncpt->intr.wait_head); in process_wait_list()
181 host1x_hw_intr_disable_syncpt_intr(host, syncpt->id); in process_wait_list()
183 reset_threshold_interrupt(host, &syncpt->intr.wait_head, in process_wait_list()
184 syncpt->id); in process_wait_list()
186 spin_unlock(&syncpt->intr.lock); in process_wait_list()
202 struct host1x_syncpt *syncpt = in syncpt_thresh_work() local
204 unsigned int id = syncpt->id; in syncpt_thresh_work()
205 struct host1x *host = syncpt->host; in syncpt_thresh_work()
207 (void)process_wait_list(host, syncpt, in syncpt_thresh_work()
208 host1x_syncpt_load(host->syncpt + id)); in syncpt_thresh_work()
211 int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt, in host1x_intr_add_action() argument
234 spin_lock(&syncpt->intr.lock); in host1x_intr_add_action()
236 queue_was_empty = list_empty(&syncpt->intr.wait_head); in host1x_intr_add_action()
238 if (add_waiter_to_queue(waiter, &syncpt->intr.wait_head)) { in host1x_intr_add_action()
240 host1x_hw_intr_set_syncpt_threshold(host, syncpt->id, thresh); in host1x_intr_add_action()
244 host1x_hw_intr_enable_syncpt_intr(host, syncpt->id); in host1x_intr_add_action()
250 spin_unlock(&syncpt->intr.lock); in host1x_intr_add_action()
259 struct host1x_syncpt *syncpt; in host1x_intr_put_ref() local
263 syncpt = host->syncpt + id; in host1x_intr_put_ref()
265 spin_lock(&syncpt->intr.lock); in host1x_intr_put_ref()
271 spin_unlock(&syncpt->intr.lock); in host1x_intr_put_ref()
291 struct host1x_syncpt *syncpt = host->syncpt + id; in host1x_intr_init() local
293 spin_lock_init(&syncpt->intr.lock); in host1x_intr_init()
294 INIT_LIST_HEAD(&syncpt->intr.wait_head); in host1x_intr_init()
295 snprintf(syncpt->intr.thresh_irq_name, in host1x_intr_init()
296 sizeof(syncpt->intr.thresh_irq_name), in host1x_intr_init()
325 struct host1x_syncpt *syncpt = host->syncpt; in host1x_intr_stop() local
336 &syncpt[id].intr.wait_head, list) { in host1x_intr_stop()
344 if (!list_empty(&syncpt[id].intr.wait_head)) { in host1x_intr_stop()