Lines Matching defs:host
31 static void host1x_intr_update_hw_state(struct host1x *host, struct host1x_syncpt *sp)
38 host1x_hw_intr_set_syncpt_threshold(host, sp->id, fence->threshold);
39 host1x_hw_intr_enable_syncpt_intr(host, sp->id);
41 host1x_hw_intr_disable_syncpt_intr(host, sp->id);
45 void host1x_intr_add_fence_locked(struct host1x *host, struct host1x_syncpt_fence *fence)
52 host1x_intr_update_hw_state(host, fence->sp);
55 bool host1x_intr_remove_fence(struct host1x *host, struct host1x_syncpt_fence *fence)
68 host1x_intr_update_hw_state(host, fence->sp);
75 void host1x_intr_handle_interrupt(struct host1x *host, unsigned int id)
77 struct host1x_syncpt *sp = &host->syncpt[id];
100 host1x_intr_update_hw_state(host, sp);
105 int host1x_intr_init(struct host1x *host)
111 for (id = 0; id < host1x_syncpt_nb_pts(host); ++id) {
112 struct host1x_syncpt *syncpt = &host->syncpt[id];
118 irq_data = devm_kcalloc(host->dev, host->num_syncpt_irqs, sizeof(irq_data[0]), GFP_KERNEL);
122 host1x_hw_intr_disable_all_syncpt_intrs(host);
124 for (i = 0; i < host->num_syncpt_irqs; i++) {
125 irq_data[i].host = host;
128 err = devm_request_irq(host->dev, host->syncpt_irqs[i],
129 host->intr_op->isr, IRQF_SHARED,
138 void host1x_intr_deinit(struct host1x *host)
142 void host1x_intr_start(struct host1x *host)
144 u32 hz = clk_get_rate(host->clk);
147 mutex_lock(&host->intr_mutex);
148 err = host1x_hw_intr_init_host_sync(host, DIV_ROUND_UP(hz, 1000000));
150 mutex_unlock(&host->intr_mutex);
153 mutex_unlock(&host->intr_mutex);
156 void host1x_intr_stop(struct host1x *host)
158 host1x_hw_intr_disable_all_syncpt_intrs(host);