Lines Matching refs:host

34 	struct host1x *host = syncpt->host;  in host1x_intr_syncpt_handle()  local
36 host1x_sync_writel(host, BIT_MASK(id), in host1x_intr_syncpt_handle()
38 host1x_sync_writel(host, BIT_MASK(id), in host1x_intr_syncpt_handle()
41 queue_work(host->intr_wq, &syncpt->intr.work); in host1x_intr_syncpt_handle()
46 struct host1x *host = dev_id; in syncpt_thresh_isr() local
50 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) { in syncpt_thresh_isr()
51 reg = host1x_sync_readl(host, in syncpt_thresh_isr()
55 host->syncpt + (i * BITS_PER_LONG + id); in syncpt_thresh_isr()
63 static void _host1x_intr_disable_all_syncpt_intrs(struct host1x *host) in _host1x_intr_disable_all_syncpt_intrs() argument
67 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) { in _host1x_intr_disable_all_syncpt_intrs()
68 host1x_sync_writel(host, 0xffffffffu, in _host1x_intr_disable_all_syncpt_intrs()
70 host1x_sync_writel(host, 0xffffffffu, in _host1x_intr_disable_all_syncpt_intrs()
75 static int _host1x_intr_init_host_sync(struct host1x *host, u32 cpm, in _host1x_intr_init_host_sync() argument
80 host1x_hw_intr_disable_all_syncpt_intrs(host); in _host1x_intr_init_host_sync()
82 for (i = 0; i < host->info->nb_pts; i++) in _host1x_intr_init_host_sync()
83 INIT_WORK(&host->syncpt[i].intr.work, syncpt_thresh_work); in _host1x_intr_init_host_sync()
85 err = devm_request_irq(host->dev, host->intr_syncpt_irq, in _host1x_intr_init_host_sync()
87 "host1x_syncpt", host); in _host1x_intr_init_host_sync()
94 host1x_sync_writel(host, 0, HOST1X_SYNC_IP_BUSY_TIMEOUT); in _host1x_intr_init_host_sync()
100 host1x_sync_writel(host, 0xff, HOST1X_SYNC_CTXSW_TIMEOUT_CFG); in _host1x_intr_init_host_sync()
103 host1x_sync_writel(host, cpm, HOST1X_SYNC_USEC_CLK); in _host1x_intr_init_host_sync()
108 static void _host1x_intr_set_syncpt_threshold(struct host1x *host, in _host1x_intr_set_syncpt_threshold() argument
111 host1x_sync_writel(host, thresh, HOST1X_SYNC_SYNCPT_INT_THRESH(id)); in _host1x_intr_set_syncpt_threshold()
114 static void _host1x_intr_enable_syncpt_intr(struct host1x *host, u32 id) in _host1x_intr_enable_syncpt_intr() argument
116 host1x_sync_writel(host, BIT_MASK(id), in _host1x_intr_enable_syncpt_intr()
120 static void _host1x_intr_disable_syncpt_intr(struct host1x *host, u32 id) in _host1x_intr_disable_syncpt_intr() argument
122 host1x_sync_writel(host, BIT_MASK(id), in _host1x_intr_disable_syncpt_intr()
124 host1x_sync_writel(host, BIT_MASK(id), in _host1x_intr_disable_syncpt_intr()
128 static int _host1x_free_syncpt_irq(struct host1x *host) in _host1x_free_syncpt_irq() argument
130 devm_free_irq(host->dev, host->intr_syncpt_irq, host); in _host1x_free_syncpt_irq()
131 flush_workqueue(host->intr_wq); in _host1x_free_syncpt_irq()