• Home
  • Raw
  • Download

Lines Matching +full:host +full:- +full:id

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2012-2015, NVIDIA Corporation.
31 int (*init)(struct host1x_channel *channel, struct host1x *host,
32 unsigned int id);
54 void (*show_channel_cdma)(struct host1x *host,
57 void (*show_channel_fifo)(struct host1x *host,
60 void (*show_mlocks)(struct host1x *host, struct output *output);
72 void (*enable_protection)(struct host1x *host);
76 int (*init_host_sync)(struct host1x *host, u32 cpm,
79 struct host1x *host, unsigned int id, u32 thresh);
80 void (*enable_syncpt_intr)(struct host1x *host, unsigned int id);
81 void (*disable_syncpt_intr)(struct host1x *host, unsigned int id);
82 void (*disable_all_syncpt_intrs)(struct host1x *host);
83 int (*free_syncpt_irq)(struct host1x *host);
155 static inline void host1x_hw_syncpt_restore(struct host1x *host, in host1x_hw_syncpt_restore() argument
158 host->syncpt_op->restore(sp); in host1x_hw_syncpt_restore()
161 static inline void host1x_hw_syncpt_restore_wait_base(struct host1x *host, in host1x_hw_syncpt_restore_wait_base() argument
164 host->syncpt_op->restore_wait_base(sp); in host1x_hw_syncpt_restore_wait_base()
167 static inline void host1x_hw_syncpt_load_wait_base(struct host1x *host, in host1x_hw_syncpt_load_wait_base() argument
170 host->syncpt_op->load_wait_base(sp); in host1x_hw_syncpt_load_wait_base()
173 static inline u32 host1x_hw_syncpt_load(struct host1x *host, in host1x_hw_syncpt_load() argument
176 return host->syncpt_op->load(sp); in host1x_hw_syncpt_load()
179 static inline int host1x_hw_syncpt_cpu_incr(struct host1x *host, in host1x_hw_syncpt_cpu_incr() argument
182 return host->syncpt_op->cpu_incr(sp); in host1x_hw_syncpt_cpu_incr()
186 struct host1x *host, struct host1x_syncpt *sp, in host1x_hw_syncpt_assign_to_channel() argument
189 return host->syncpt_op->assign_to_channel(sp, ch); in host1x_hw_syncpt_assign_to_channel()
192 static inline void host1x_hw_syncpt_enable_protection(struct host1x *host) in host1x_hw_syncpt_enable_protection() argument
194 return host->syncpt_op->enable_protection(host); in host1x_hw_syncpt_enable_protection()
197 static inline int host1x_hw_intr_init_host_sync(struct host1x *host, u32 cpm, in host1x_hw_intr_init_host_sync() argument
200 return host->intr_op->init_host_sync(host, cpm, syncpt_thresh_work); in host1x_hw_intr_init_host_sync()
203 static inline void host1x_hw_intr_set_syncpt_threshold(struct host1x *host, in host1x_hw_intr_set_syncpt_threshold() argument
204 unsigned int id, in host1x_hw_intr_set_syncpt_threshold() argument
207 host->intr_op->set_syncpt_threshold(host, id, thresh); in host1x_hw_intr_set_syncpt_threshold()
210 static inline void host1x_hw_intr_enable_syncpt_intr(struct host1x *host, in host1x_hw_intr_enable_syncpt_intr() argument
211 unsigned int id) in host1x_hw_intr_enable_syncpt_intr() argument
213 host->intr_op->enable_syncpt_intr(host, id); in host1x_hw_intr_enable_syncpt_intr()
216 static inline void host1x_hw_intr_disable_syncpt_intr(struct host1x *host, in host1x_hw_intr_disable_syncpt_intr() argument
217 unsigned int id) in host1x_hw_intr_disable_syncpt_intr() argument
219 host->intr_op->disable_syncpt_intr(host, id); in host1x_hw_intr_disable_syncpt_intr()
222 static inline void host1x_hw_intr_disable_all_syncpt_intrs(struct host1x *host) in host1x_hw_intr_disable_all_syncpt_intrs() argument
224 host->intr_op->disable_all_syncpt_intrs(host); in host1x_hw_intr_disable_all_syncpt_intrs()
227 static inline int host1x_hw_intr_free_syncpt_irq(struct host1x *host) in host1x_hw_intr_free_syncpt_irq() argument
229 return host->intr_op->free_syncpt_irq(host); in host1x_hw_intr_free_syncpt_irq()
232 static inline int host1x_hw_channel_init(struct host1x *host, in host1x_hw_channel_init() argument
234 unsigned int id) in host1x_hw_channel_init() argument
236 return host->channel_op->init(channel, host, id); in host1x_hw_channel_init()
239 static inline int host1x_hw_channel_submit(struct host1x *host, in host1x_hw_channel_submit() argument
242 return host->channel_op->submit(job); in host1x_hw_channel_submit()
245 static inline void host1x_hw_cdma_start(struct host1x *host, in host1x_hw_cdma_start() argument
248 host->cdma_op->start(cdma); in host1x_hw_cdma_start()
251 static inline void host1x_hw_cdma_stop(struct host1x *host, in host1x_hw_cdma_stop() argument
254 host->cdma_op->stop(cdma); in host1x_hw_cdma_stop()
257 static inline void host1x_hw_cdma_flush(struct host1x *host, in host1x_hw_cdma_flush() argument
260 host->cdma_op->flush(cdma); in host1x_hw_cdma_flush()
263 static inline int host1x_hw_cdma_timeout_init(struct host1x *host, in host1x_hw_cdma_timeout_init() argument
267 return host->cdma_op->timeout_init(cdma, syncpt); in host1x_hw_cdma_timeout_init()
270 static inline void host1x_hw_cdma_timeout_destroy(struct host1x *host, in host1x_hw_cdma_timeout_destroy() argument
273 host->cdma_op->timeout_destroy(cdma); in host1x_hw_cdma_timeout_destroy()
276 static inline void host1x_hw_cdma_freeze(struct host1x *host, in host1x_hw_cdma_freeze() argument
279 host->cdma_op->freeze(cdma); in host1x_hw_cdma_freeze()
282 static inline void host1x_hw_cdma_resume(struct host1x *host, in host1x_hw_cdma_resume() argument
285 host->cdma_op->resume(cdma, getptr); in host1x_hw_cdma_resume()
288 static inline void host1x_hw_cdma_timeout_cpu_incr(struct host1x *host, in host1x_hw_cdma_timeout_cpu_incr() argument
294 host->cdma_op->timeout_cpu_incr(cdma, getptr, syncpt_incrs, syncval, in host1x_hw_cdma_timeout_cpu_incr()
298 static inline void host1x_hw_pushbuffer_init(struct host1x *host, in host1x_hw_pushbuffer_init() argument
301 host->cdma_pb_op->init(pb); in host1x_hw_pushbuffer_init()
304 static inline void host1x_hw_debug_init(struct host1x *host, struct dentry *de) in host1x_hw_debug_init() argument
306 if (host->debug_op && host->debug_op->debug_init) in host1x_hw_debug_init()
307 host->debug_op->debug_init(de); in host1x_hw_debug_init()
310 static inline void host1x_hw_show_channel_cdma(struct host1x *host, in host1x_hw_show_channel_cdma() argument
314 host->debug_op->show_channel_cdma(host, channel, o); in host1x_hw_show_channel_cdma()
317 static inline void host1x_hw_show_channel_fifo(struct host1x *host, in host1x_hw_show_channel_fifo() argument
321 host->debug_op->show_channel_fifo(host, channel, o); in host1x_hw_show_channel_fifo()
324 static inline void host1x_hw_show_mlocks(struct host1x *host, struct output *o) in host1x_hw_show_mlocks() argument
326 host->debug_op->show_mlocks(host, o); in host1x_hw_show_mlocks()