Lines Matching defs:host
18 struct host1x *host = dev_id;
22 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) {
23 reg = host1x_sync_readl(host,
26 host1x_sync_writel(host, reg,
28 host1x_sync_writel(host, reg,
32 host1x_intr_handle_interrupt(host, i * 32 + id);
38 static void host1x_intr_disable_all_syncpt_intrs(struct host1x *host)
42 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) {
43 host1x_sync_writel(host, 0xffffffffu,
45 host1x_sync_writel(host, 0xffffffffu,
50 static void intr_hw_init(struct host1x *host, u32 cpm)
54 host1x_sync_writel(host, 0, HOST1X_SYNC_IP_BUSY_TIMEOUT);
60 host1x_sync_writel(host, 0xff, HOST1X_SYNC_CTXSW_TIMEOUT_CFG);
62 /* update host clocks per usec */
63 host1x_sync_writel(host, cpm, HOST1X_SYNC_USEC_CLK);
73 for (id = 0; id < host->info->nb_pts; id++)
74 host1x_sync_writel(host, 0, HOST1X_SYNC_SYNCPT_INTR_DEST(id));
79 host1x_intr_init_host_sync(struct host1x *host, u32 cpm)
83 host1x_hw_intr_disable_all_syncpt_intrs(host);
85 err = devm_request_irq(host->dev, host->syncpt_irq,
87 "host1x_syncpt", host);
91 intr_hw_init(host, cpm);
96 static void host1x_intr_set_syncpt_threshold(struct host1x *host,
100 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id));
103 static void host1x_intr_enable_syncpt_intr(struct host1x *host,
106 host1x_sync_writel(host, BIT(id % 32),
110 static void host1x_intr_disable_syncpt_intr(struct host1x *host,
113 host1x_sync_writel(host, BIT(id % 32),
115 host1x_sync_writel(host, BIT(id % 32),