Lines Matching refs:host

17 	struct host1x *host;
24 struct host1x *host = irq_data->host;
28 for (i = irq_data->offset; i < DIV_ROUND_UP(host->info->nb_pts, 32);
29 i += host->num_syncpt_irqs) {
30 reg = host1x_sync_readl(host,
33 host1x_sync_writel(host, reg,
35 host1x_sync_writel(host, reg,
39 host1x_intr_handle_interrupt(host, i * 32 + id);
45 static void host1x_intr_disable_all_syncpt_intrs(struct host1x *host)
49 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) {
50 host1x_sync_writel(host, 0xffffffffu,
52 host1x_sync_writel(host, 0xffffffffu,
57 static void intr_hw_init(struct host1x *host, u32 cpm)
61 host1x_sync_writel(host, 0, HOST1X_SYNC_IP_BUSY_TIMEOUT);
67 host1x_sync_writel(host, 0xff, HOST1X_SYNC_CTXSW_TIMEOUT_CFG);
69 /* update host clocks per usec */
70 host1x_sync_writel(host, cpm, HOST1X_SYNC_USEC_CLK);
81 for (id = 0; id < host->info->nb_pts; id++) {
83 u32 irq_index = reg_offset % host->num_syncpt_irqs;
85 host1x_sync_writel(host, irq_index, HOST1X_SYNC_SYNCPT_INTR_DEST(id));
91 host1x_intr_init_host_sync(struct host1x *host, u32 cpm)
96 irq_data = devm_kcalloc(host->dev, host->num_syncpt_irqs, sizeof(irq_data[0]), GFP_KERNEL);
100 host1x_hw_intr_disable_all_syncpt_intrs(host);
102 for (i = 0; i < host->num_syncpt_irqs; i++) {
103 irq_data[i].host = host;
106 err = devm_request_irq(host->dev, host->syncpt_irqs[i],
113 intr_hw_init(host, cpm);
118 static void host1x_intr_set_syncpt_threshold(struct host1x *host,
122 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id));
125 static void host1x_intr_enable_syncpt_intr(struct host1x *host,
128 host1x_sync_writel(host, BIT(id % 32),
132 static void host1x_intr_disable_syncpt_intr(struct host1x *host,
135 host1x_sync_writel(host, BIT(id % 32),
137 host1x_sync_writel(host, BIT(id % 32),