Lines Matching +full:host +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2012-2015, NVIDIA Corporation.
33 int (*init)(struct host1x_channel *channel, struct host1x *host,
34 unsigned int id);
56 void (*show_channel_cdma)(struct host1x *host,
59 void (*show_channel_fifo)(struct host1x *host,
62 void (*show_mlocks)(struct host1x *host, struct output *output);
74 void (*enable_protection)(struct host1x *host);
78 int (*init_host_sync)(struct host1x *host, u32 cpm);
80 struct host1x *host, unsigned int id, u32 thresh);
81 void (*enable_syncpt_intr)(struct host1x *host, unsigned int id);
82 void (*disable_syncpt_intr)(struct host1x *host, unsigned int id);
83 void (*disable_all_syncpt_intrs)(struct host1x *host);
84 int (*free_syncpt_irq)(struct host1x *host);
116 * On T20-T148, the boot chain may setup DC to increment syncpoints
185 static inline void host1x_hw_syncpt_restore(struct host1x *host, in host1x_hw_syncpt_restore() argument
188 host->syncpt_op->restore(sp); in host1x_hw_syncpt_restore()
191 static inline void host1x_hw_syncpt_restore_wait_base(struct host1x *host, in host1x_hw_syncpt_restore_wait_base() argument
194 host->syncpt_op->restore_wait_base(sp); in host1x_hw_syncpt_restore_wait_base()
197 static inline void host1x_hw_syncpt_load_wait_base(struct host1x *host, in host1x_hw_syncpt_load_wait_base() argument
200 host->syncpt_op->load_wait_base(sp); in host1x_hw_syncpt_load_wait_base()
203 static inline u32 host1x_hw_syncpt_load(struct host1x *host, in host1x_hw_syncpt_load() argument
206 return host->syncpt_op->load(sp); in host1x_hw_syncpt_load()
209 static inline int host1x_hw_syncpt_cpu_incr(struct host1x *host, in host1x_hw_syncpt_cpu_incr() argument
212 return host->syncpt_op->cpu_incr(sp); in host1x_hw_syncpt_cpu_incr()
216 struct host1x *host, struct host1x_syncpt *sp, in host1x_hw_syncpt_assign_to_channel() argument
219 return host->syncpt_op->assign_to_channel(sp, ch); in host1x_hw_syncpt_assign_to_channel()
222 static inline void host1x_hw_syncpt_enable_protection(struct host1x *host) in host1x_hw_syncpt_enable_protection() argument
224 return host->syncpt_op->enable_protection(host); in host1x_hw_syncpt_enable_protection()
227 static inline int host1x_hw_intr_init_host_sync(struct host1x *host, u32 cpm) in host1x_hw_intr_init_host_sync() argument
229 return host->intr_op->init_host_sync(host, cpm); in host1x_hw_intr_init_host_sync()
232 static inline void host1x_hw_intr_set_syncpt_threshold(struct host1x *host, in host1x_hw_intr_set_syncpt_threshold() argument
233 unsigned int id, in host1x_hw_intr_set_syncpt_threshold() argument
236 host->intr_op->set_syncpt_threshold(host, id, thresh); in host1x_hw_intr_set_syncpt_threshold()
239 static inline void host1x_hw_intr_enable_syncpt_intr(struct host1x *host, in host1x_hw_intr_enable_syncpt_intr() argument
240 unsigned int id) in host1x_hw_intr_enable_syncpt_intr() argument
242 host->intr_op->enable_syncpt_intr(host, id); in host1x_hw_intr_enable_syncpt_intr()
245 static inline void host1x_hw_intr_disable_syncpt_intr(struct host1x *host, in host1x_hw_intr_disable_syncpt_intr() argument
246 unsigned int id) in host1x_hw_intr_disable_syncpt_intr() argument
248 host->intr_op->disable_syncpt_intr(host, id); in host1x_hw_intr_disable_syncpt_intr()
251 static inline void host1x_hw_intr_disable_all_syncpt_intrs(struct host1x *host) in host1x_hw_intr_disable_all_syncpt_intrs() argument
253 host->intr_op->disable_all_syncpt_intrs(host); in host1x_hw_intr_disable_all_syncpt_intrs()
256 static inline int host1x_hw_intr_free_syncpt_irq(struct host1x *host) in host1x_hw_intr_free_syncpt_irq() argument
258 return host->intr_op->free_syncpt_irq(host); in host1x_hw_intr_free_syncpt_irq()
261 static inline int host1x_hw_channel_init(struct host1x *host, in host1x_hw_channel_init() argument
263 unsigned int id) in host1x_hw_channel_init() argument
265 return host->channel_op->init(channel, host, id); in host1x_hw_channel_init()
268 static inline int host1x_hw_channel_submit(struct host1x *host, in host1x_hw_channel_submit() argument
271 return host->channel_op->submit(job); in host1x_hw_channel_submit()
274 static inline void host1x_hw_cdma_start(struct host1x *host, in host1x_hw_cdma_start() argument
277 host->cdma_op->start(cdma); in host1x_hw_cdma_start()
280 static inline void host1x_hw_cdma_stop(struct host1x *host, in host1x_hw_cdma_stop() argument
283 host->cdma_op->stop(cdma); in host1x_hw_cdma_stop()
286 static inline void host1x_hw_cdma_flush(struct host1x *host, in host1x_hw_cdma_flush() argument
289 host->cdma_op->flush(cdma); in host1x_hw_cdma_flush()
292 static inline int host1x_hw_cdma_timeout_init(struct host1x *host, in host1x_hw_cdma_timeout_init() argument
295 return host->cdma_op->timeout_init(cdma); in host1x_hw_cdma_timeout_init()
298 static inline void host1x_hw_cdma_timeout_destroy(struct host1x *host, in host1x_hw_cdma_timeout_destroy() argument
301 host->cdma_op->timeout_destroy(cdma); in host1x_hw_cdma_timeout_destroy()
304 static inline void host1x_hw_cdma_freeze(struct host1x *host, in host1x_hw_cdma_freeze() argument
307 host->cdma_op->freeze(cdma); in host1x_hw_cdma_freeze()
310 static inline void host1x_hw_cdma_resume(struct host1x *host, in host1x_hw_cdma_resume() argument
313 host->cdma_op->resume(cdma, getptr); in host1x_hw_cdma_resume()
316 static inline void host1x_hw_cdma_timeout_cpu_incr(struct host1x *host, in host1x_hw_cdma_timeout_cpu_incr() argument
322 host->cdma_op->timeout_cpu_incr(cdma, getptr, syncpt_incrs, syncval, in host1x_hw_cdma_timeout_cpu_incr()
326 static inline void host1x_hw_pushbuffer_init(struct host1x *host, in host1x_hw_pushbuffer_init() argument
329 host->cdma_pb_op->init(pb); in host1x_hw_pushbuffer_init()
332 static inline void host1x_hw_debug_init(struct host1x *host, struct dentry *de) in host1x_hw_debug_init() argument
334 if (host->debug_op && host->debug_op->debug_init) in host1x_hw_debug_init()
335 host->debug_op->debug_init(de); in host1x_hw_debug_init()
338 static inline void host1x_hw_show_channel_cdma(struct host1x *host, in host1x_hw_show_channel_cdma() argument
342 host->debug_op->show_channel_cdma(host, channel, o); in host1x_hw_show_channel_cdma()
345 static inline void host1x_hw_show_channel_fifo(struct host1x *host, in host1x_hw_show_channel_fifo() argument
349 host->debug_op->show_channel_fifo(host, channel, o); in host1x_hw_show_channel_fifo()
352 static inline void host1x_hw_show_mlocks(struct host1x *host, struct output *o) in host1x_hw_show_mlocks() argument
354 host->debug_op->show_mlocks(host, o); in host1x_hw_show_mlocks()