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];
96 host1x_intr_update_hw_state(host, sp);
101 int host1x_intr_init(struct host1x *host)
105 mutex_init(&host->intr_mutex);
107 for (id = 0; id < host1x_syncpt_nb_pts(host); ++id) {
108 struct host1x_syncpt *syncpt = &host->syncpt[id];
117 void host1x_intr_deinit(struct host1x *host)
121 void host1x_intr_start(struct host1x *host)
123 u32 hz = clk_get_rate(host->clk);
126 mutex_lock(&host->intr_mutex);
127 err = host1x_hw_intr_init_host_sync(host, DIV_ROUND_UP(hz, 1000000));
129 mutex_unlock(&host->intr_mutex);
132 mutex_unlock(&host->intr_mutex);
135 void host1x_intr_stop(struct host1x *host)
137 host1x_hw_intr_disable_all_syncpt_intrs(host);