Home
last modified time | relevance | path

Searched refs:host1x (Results 1 – 25 of 30) sorted by relevance

12

/drivers/gpu/host1x/
Ddev.h39 int (*init)(struct host1x_channel *channel, struct host1x *host,
62 void (*show_channel_cdma)(struct host1x *host,
65 void (*show_channel_fifo)(struct host1x *host,
68 void (*show_mlocks)(struct host1x *host, struct output *output);
82 int (*init_host_sync)(struct host1x *host, u32 cpm,
85 struct host1x *host, u32 id, u32 thresh);
86 void (*enable_syncpt_intr)(struct host1x *host, u32 id);
87 void (*disable_syncpt_intr)(struct host1x *host, u32 id);
88 void (*disable_all_syncpt_intrs)(struct host1x *host);
89 int (*free_syncpt_irq)(struct host1x *host);
[all …]
Dbus.c219 static int host1x_add_client(struct host1x *host1x, in host1x_add_client() argument
225 mutex_lock(&host1x->devices_lock); in host1x_add_client()
227 list_for_each_entry(device, &host1x->devices, list) { in host1x_add_client()
231 mutex_unlock(&host1x->devices_lock); in host1x_add_client()
237 mutex_unlock(&host1x->devices_lock); in host1x_add_client()
241 static int host1x_del_client(struct host1x *host1x, in host1x_del_client() argument
247 mutex_lock(&host1x->devices_lock); in host1x_del_client()
249 list_for_each_entry_safe(device, dt, &host1x->devices, list) { in host1x_del_client()
253 mutex_unlock(&host1x->devices_lock); in host1x_del_client()
259 mutex_unlock(&host1x->devices_lock); in host1x_del_client()
[all …]
Ddebug.c47 struct host1x *m = dev_get_drvdata(ch->dev->parent); in show_channels()
63 static void show_syncpts(struct host1x *m, struct output *o) in show_syncpts()
87 static void show_all(struct host1x *m, struct output *o) in show_all()
99 static void show_all_no_fifo(struct host1x *host1x, struct output *o) in show_all_no_fifo() argument
103 host1x_hw_show_mlocks(host1x, o); in show_all_no_fifo()
104 show_syncpts(host1x, o); in show_all_no_fifo()
107 host1x_for_each_channel(host1x, ch) in show_all_no_fifo()
155 static void host1x_debugfs_init(struct host1x *host1x) in host1x_debugfs_init() argument
163 host1x->debugfs = de; in host1x_debugfs_init()
165 debugfs_create_file("status", S_IRUGO, de, host1x, &host1x_debug_fops); in host1x_debugfs_init()
[all …]
Dcdma.c52 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy() local
55 dma_free_writecombine(host1x->dev, pb->size_bytes + 4, in host1x_pushbuffer_destroy()
68 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() local
79 pb->mapped = dma_alloc_writecombine(host1x->dev, pb->size_bytes + 4, in host1x_pushbuffer_init()
84 host1x_hw_pushbuffer_init(host1x, pb); in host1x_pushbuffer_init()
178 struct host1x *host = cdma_to_host1x(cdma); in cdma_start_timer_locked()
217 struct host1x *host1x = cdma_to_host1x(cdma); in update_cdma_locked() local
230 host1x_syncpt_get(host1x, job->syncpt_id); in update_cdma_locked()
276 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_cdma_update_sync_queue() local
338 host1x_hw_cdma_timeout_cpu_incr(host1x, cdma, job->first_get, in host1x_cdma_update_sync_queue()
[all …]
Ddebug.h24 struct host1x;
46 void host1x_debug_init(struct host1x *host1x);
47 void host1x_debug_deinit(struct host1x *host1x);
48 void host1x_debug_dump(struct host1x *host1x);
49 void host1x_debug_dump_syncpts(struct host1x *host1x);
Dsyncpt.h29 struct host1x;
46 struct host1x *host;
55 int host1x_syncpt_init(struct host1x *host);
58 void host1x_syncpt_deinit(struct host1x *host);
61 int host1x_syncpt_nb_pts(struct host1x *host);
64 int host1x_syncpt_nb_bases(struct host1x *host);
67 int host1x_syncpt_nb_mlocks(struct host1x *host);
110 void host1x_syncpt_save(struct host1x *host);
113 void host1x_syncpt_restore(struct host1x *host);
Dintr.h25 struct host1x;
78 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh,
87 void host1x_intr_put_ref(struct host1x *host, u32 id, void *ref);
90 int host1x_intr_init(struct host1x *host, unsigned int irq_sync);
93 void host1x_intr_deinit(struct host1x *host);
96 void host1x_intr_start(struct host1x *host);
99 void host1x_intr_stop(struct host1x *host);
Ddev.c39 void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) in host1x_sync_writel() argument
41 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_writel()
46 u32 host1x_sync_readl(struct host1x *host1x, u32 r) in host1x_sync_readl() argument
48 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_readl()
102 struct host1x *host; in host1x_probe()
196 struct host1x *host = platform_get_drvdata(pdev); in host1x_remove()
Dbus.h21 struct host1x;
26 int host1x_register(struct host1x *host1x);
27 int host1x_unregister(struct host1x *host1x);
DKconfig2 tristate "NVIDIA Tegra host1x driver"
5 Driver for the NVIDIA Tegra host1x hardware.
7 The Tegra host1x module is the DMA engine for register access to
9 by host1x are referred to as clients. host1x includes some other
Dsyncpt.c34 host1x_syncpt_base_request(struct host1x *host) in host1x_syncpt_base_request()
56 static struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host, in host1x_syncpt_alloc()
110 void host1x_syncpt_restore(struct host1x *host) in host1x_syncpt_restore()
126 void host1x_syncpt_save(struct host1x *host) in host1x_syncpt_save()
340 int host1x_syncpt_init(struct host1x *host) in host1x_syncpt_init()
380 struct host1x *host = dev_get_drvdata(dev->parent); in host1x_syncpt_request()
399 void host1x_syncpt_deinit(struct host1x *host) in host1x_syncpt_deinit()
428 int host1x_syncpt_nb_pts(struct host1x *host) in host1x_syncpt_nb_pts()
433 int host1x_syncpt_nb_bases(struct host1x *host) in host1x_syncpt_nb_bases()
438 int host1x_syncpt_nb_mlocks(struct host1x *host) in host1x_syncpt_nb_mlocks()
[all …]
Dintr.c99 static void reset_threshold_interrupt(struct host1x *host, in reset_threshold_interrupt()
164 static int process_wait_list(struct host1x *host, in process_wait_list()
206 struct host1x *host = syncpt->host; in syncpt_thresh_work()
212 int host1x_intr_add_action(struct host1x *host, u32 id, u32 thresh, in host1x_intr_add_action()
257 void host1x_intr_put_ref(struct host1x *host, u32 id, void *ref) in host1x_intr_put_ref()
273 int host1x_intr_init(struct host1x *host, unsigned int irq_sync) in host1x_intr_init()
299 void host1x_intr_deinit(struct host1x *host) in host1x_intr_deinit()
305 void host1x_intr_start(struct host1x *host) in host1x_intr_start()
320 void host1x_intr_stop(struct host1x *host) in host1x_intr_stop()
Dchannel.c27 int host1x_channel_list_init(struct host1x *host) in host1x_channel_list_init()
42 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit()
71 struct host1x *host = dev_get_drvdata(channel->dev->parent); in host1x_channel_put()
85 struct host1x *host = dev_get_drvdata(dev->parent); in host1x_channel_request()
125 struct host1x *host = dev_get_drvdata(channel->dev->parent); in host1x_channel_free()
Dchannel.h26 struct host1x;
41 int host1x_channel_list_init(struct host1x *host);
DMakefile1 host1x-y = \
15 obj-$(CONFIG_TEGRA_HOST1X) += host1x.o
/drivers/gpu/host1x/hw/
Dcdma_hw.c42 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_cpu_incr() local
57 dev_dbg(host1x->dev, "%s: NOP at %#llx\n", __func__, in cdma_timeout_cpu_incr()
105 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_restart() local
129 dev_dbg(host1x->dev, in cdma_timeout_restart()
180 struct host1x *host = cdma_to_host1x(cdma); in cdma_freeze()
211 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_resume() local
215 dev_dbg(host1x->dev, in cdma_resume()
219 cmdproc_stop = host1x_sync_readl(host1x, HOST1X_SYNC_CMDPROC_STOP); in cdma_resume()
221 host1x_sync_writel(host1x, cmdproc_stop, HOST1X_SYNC_CMDPROC_STOP); in cdma_resume()
235 struct host1x *host1x; in cdma_timeout_handler() local
[all …]
Dintr_hw.c34 struct host1x *host = syncpt->host; in host1x_intr_syncpt_handle()
46 struct host1x *host = dev_id; in syncpt_thresh_isr()
63 static void _host1x_intr_disable_all_syncpt_intrs(struct host1x *host) 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()
108 static void _host1x_intr_set_syncpt_threshold(struct host1x *host, 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()
120 static void _host1x_intr_disable_syncpt_intr(struct host1x *host, u32 id) in _host1x_intr_disable_syncpt_intr()
128 static int _host1x_free_syncpt_irq(struct host1x *host) in _host1x_free_syncpt_irq()
Dsyncpt_hw.c29 struct host1x *host = sp->host; in syncpt_restore()
39 struct host1x *host = sp->host; in syncpt_restore_wait_base()
49 struct host1x *host = sp->host; in syncpt_read_wait_base()
59 struct host1x *host = sp->host; in syncpt_load()
82 struct host1x *host = sp->host; in syncpt_cpu_incr()
Dhost1x01.h21 struct host1x;
23 int host1x01_init(struct host1x *host);
Dhost1x02.h22 struct host1x;
24 int host1x02_init(struct host1x *host);
Dhost1x04.h22 struct host1x;
24 int host1x04_init(struct host1x *host);
Dchannel_hw.c72 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in synchronize_syncpt_base()
95 struct host1x *host = dev_get_drvdata(ch->dev->parent); in channel_submit()
174 static int host1x_channel_init(struct host1x_channel *ch, struct host1x *dev, in host1x_channel_init()
Ddebug_hw.c178 static void host1x_debug_show_channel_cdma(struct host1x *host, in host1x_debug_show_channel_cdma()
232 static void host1x_debug_show_channel_fifo(struct host1x *host, in host1x_debug_show_channel_fifo()
291 static void host1x_debug_show_mlocks(struct host1x *host, struct output *o) in host1x_debug_show_mlocks()
/drivers/gpu/drm/tegra/
Ddrm.c331 struct host1x *host = dev_get_drvdata(drm->dev->parent); in tegra_syncpt_read()
346 struct host1x *host1x = dev_get_drvdata(drm->dev->parent); in tegra_syncpt_incr() local
350 sp = host1x_syncpt_get(host1x, args->id); in tegra_syncpt_incr()
360 struct host1x *host1x = dev_get_drvdata(drm->dev->parent); in tegra_syncpt_wait() local
364 sp = host1x_syncpt_get(host1x, args->id); in tegra_syncpt_wait()
/drivers/gpu/
DMakefile2 obj-$(CONFIG_TEGRA_HOST1X) += host1x/

12