Home
last modified time | relevance | path

Searched refs:host1x (Results 1 - 25 of 109) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Ddev.h32 int (*init)(struct host1x_channel *channel, struct host1x *host,
55 void (*show_channel_cdma)(struct host1x *host,
58 void (*show_channel_fifo)(struct host1x *host,
61 void (*show_mlocks)(struct host1x *host, struct output *output);
73 void (*enable_protection)(struct host1x *host);
77 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 *hos
121 struct host1x { global() struct
[all...]
H A Dcdma.c3 * Tegra host1x Command DMA
12 #include <linux/host1x.h>
17 #include <trace/events/host1x.h>
51 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy() local
56 if (host1x->domain) { in host1x_pushbuffer_destroy()
57 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy()
58 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy()
61 dma_free_wc(host1x in host1x_pushbuffer_destroy()
73 struct host1x *host1x = cdma_to_host1x(cdma); host1x_pushbuffer_init() local
235 host1x_cdma_wait_pushbuffer_space(struct host1x *host1x, struct host1x_cdma *cdma, unsigned int needed) host1x_cdma_wait_pushbuffer_space() argument
366 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_update_sync_queue() local
532 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_deinit() local
550 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_begin() local
594 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_push() local
626 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_push_wide() local
669 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_end() local
[all...]
H A Ddebug.c54 struct host1x *m = dev_get_drvdata(ch->dev->parent); in show_channel()
78 static void show_syncpts(struct host1x *m, struct output *o, bool show_all) in show_syncpts()
126 static void show_all(struct host1x *m, struct output *o, bool show_fifo) in show_all()
170 static void host1x_debugfs_init(struct host1x *host1x) in host1x_debugfs_init() argument
172 struct dentry *de = debugfs_create_dir("tegra-host1x", NULL); in host1x_debugfs_init()
175 host1x->debugfs = de; in host1x_debugfs_init()
177 debugfs_create_file("status", S_IRUGO, de, host1x, &host1x_debug_fops); in host1x_debugfs_init()
178 debugfs_create_file("status_all", S_IRUGO, de, host1x, in host1x_debugfs_init()
184 host1x_hw_debug_init(host1x, d in host1x_debugfs_init()
194 host1x_debugfs_exit(struct host1x *host1x) host1x_debugfs_exit() argument
199 host1x_debug_init(struct host1x *host1x) host1x_debug_init() argument
205 host1x_debug_deinit(struct host1x *host1x) host1x_debug_deinit() argument
211 host1x_debug_dump(struct host1x *host1x) host1x_debug_dump() argument
220 host1x_debug_dump_syncpts(struct host1x *host1x) host1x_debug_dump_syncpts() argument
[all...]
H A Dbus.c9 #include <linux/host1x.h>
35 * @device: host1x device to add the subdevice to
36 * @driver: host1x driver containing the subdevices
87 * @device: host1x logical device
88 * @driver: host1x driver
184 * host1x_device_init() - initialize a host1x logical device
185 * @device: host1x logical device
187 * The driver for the host1x logical device can call this during execution of
246 * host1x_device_exit() - uninitialize host1x logical device
247 * @device: host1x logica
292 host1x_add_client(struct host1x *host1x, struct host1x_client *client) host1x_add_client() argument
314 host1x_del_client(struct host1x *host1x, struct host1x_client *client) host1x_del_client() argument
432 host1x_device_add(struct host1x *host1x, struct host1x_driver *driver) host1x_device_add() argument
496 host1x_device_del(struct host1x *host1x, struct host1x_device *device) host1x_device_del() argument
507 host1x_attach_driver(struct host1x *host1x, struct host1x_driver *driver) host1x_attach_driver() argument
529 host1x_detach_driver(struct host1x *host1x, struct host1x_driver *driver) host1x_detach_driver() argument
545 struct host1x *host1x = s->private; host1x_devices_show() local
581 host1x_register(struct host1x *host1x) host1x_register() argument
609 host1x_unregister(struct host1x *host1x) host1x_unregister() argument
671 struct host1x *host1x; host1x_driver_register_full() local
705 struct host1x *host1x; host1x_driver_unregister() local
759 struct host1x *host1x; __host1x_client_register() local
792 struct host1x *host1x; host1x_client_unregister() local
[all...]
H A Ddebug.h3 * Tegra host1x Debug
13 struct host1x;
41 void host1x_debug_init(struct host1x *host1x);
42 void host1x_debug_deinit(struct host1x *host1x);
43 void host1x_debug_dump(struct host1x *host1x);
44 void host1x_debug_dump_syncpts(struct host1x *host1x);
[all...]
H A Dintr.h3 * Tegra host1x Interrupt Management
11 struct host1x;
14 /* Initialize host1x sync point interrupt */
15 int host1x_intr_init(struct host1x *host);
17 /* Deinitialize host1x sync point interrupt */
18 void host1x_intr_deinit(struct host1x *host);
20 /* Enable host1x sync point interrupt */
21 void host1x_intr_start(struct host1x *host);
23 /* Disable host1x sync point interrupt */
24 void host1x_intr_stop(struct host1x *hos
[all...]
H A Dsyncpt.h3 * Tegra host1x Syncpoints
12 #include <linux/host1x.h>
20 struct host1x;
39 struct host1x *host;
54 int host1x_syncpt_init(struct host1x *host);
57 void host1x_syncpt_deinit(struct host1x *host);
60 unsigned int host1x_syncpt_nb_pts(struct host1x *host);
63 unsigned int host1x_syncpt_nb_bases(struct host1x *host);
66 unsigned int host1x_syncpt_nb_mlocks(struct host1x *host);
108 /* Save host1x syn
[all...]
H A Ddev.c3 * Tegra host1x driver
23 #include <trace/events/host1x.h>
45 void host1x_common_writel(struct host1x *host1x, u32 v, u32 r) in host1x_common_writel() argument
47 writel(v, host1x->common_regs + r); in host1x_common_writel()
50 void host1x_hypervisor_writel(struct host1x *host1x, u32 v, u32 r) in host1x_hypervisor_writel() argument
52 writel(v, host1x->hv_regs + r); in host1x_hypervisor_writel()
55 u32 host1x_hypervisor_readl(struct host1x *host1x, u3 argument
60 host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) host1x_sync_writel() argument
67 host1x_sync_readl(struct host1x *host1x, u32 r) host1x_sync_readl() argument
306 host1x_wants_iommu(struct host1x *host1x) host1x_wants_iommu() argument
770 host1x_get_dma_mask(struct host1x *host1x) host1x_get_dma_mask() argument
[all...]
H A Dcontext.c21 int host1x_memory_context_list_init(struct host1x *host1x) in host1x_memory_context_list_init() argument
23 struct host1x_memory_context_list *cdl = &host1x->context_list; in host1x_memory_context_list_init()
24 struct device_node *node = host1x->dev->of_node; in host1x_memory_context_list_init()
45 ctx->host = host1x; in host1x_memory_context_list_init()
56 dev_set_name(&ctx->dev, "host1x-ctx.%d", i); in host1x_memory_context_list_init()
58 ctx->dev.parent = host1x->dev; in host1x_memory_context_list_init()
65 dev_err(host1x->dev, "could not add context device %d: %d\n", i, err); in host1x_memory_context_list_init()
72 dev_err(host1x->dev, "IOMMU configuration failed for context device %d: %d\n", in host1x_memory_context_list_init()
80 dev_err(host1x in host1x_memory_context_list_init()
118 host1x_memory_context_alloc(struct host1x *host1x, struct device *dev, struct pid *pid) host1x_memory_context_alloc() argument
[all...]
H A Dbus.h11 struct host1x;
15 int host1x_register(struct host1x *host1x);
16 int host1x_unregister(struct host1x *host1x);
H A Dcontext.h14 struct host1x;
25 int host1x_memory_context_list_init(struct host1x *host1x);
28 static inline int host1x_memory_context_list_init(struct host1x *host1x) in host1x_memory_context_list_init() argument
/kernel/linux/linux-5.10/drivers/gpu/host1x/
H A Ddev.h31 int (*init)(struct host1x_channel *channel, struct host1x *host,
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 *hos
106 struct host1x { global() struct
[all...]
H A Dbus.c8 #include <linux/host1x.h>
34 * @device: host1x device to add the subdevice to
85 * @device: host1x logical device
86 * @driver: host1x driver
182 * host1x_device_init() - initialize a host1x logical device
183 * @device: host1x logical device
185 * The driver for the host1x logical device can call this during execution of
225 * host1x_device_exit() - uninitialize host1x logical device
226 * @device: host1x logical device
228 * When the driver for a host1x logica
259 host1x_add_client(struct host1x *host1x, struct host1x_client *client) host1x_add_client() argument
281 host1x_del_client(struct host1x *host1x, struct host1x_client *client) host1x_del_client() argument
416 host1x_device_add(struct host1x *host1x, struct host1x_driver *driver) host1x_device_add() argument
480 host1x_device_del(struct host1x *host1x, struct host1x_device *device) host1x_device_del() argument
491 host1x_attach_driver(struct host1x *host1x, struct host1x_driver *driver) host1x_attach_driver() argument
513 host1x_detach_driver(struct host1x *host1x, struct host1x_driver *driver) host1x_detach_driver() argument
529 struct host1x *host1x = s->private; host1x_devices_show() local
565 host1x_register(struct host1x *host1x) host1x_register() argument
593 host1x_unregister(struct host1x *host1x) host1x_unregister() argument
655 struct host1x *host1x; host1x_driver_register_full() local
689 struct host1x *host1x; host1x_driver_unregister() local
743 struct host1x *host1x; __host1x_client_register() local
776 struct host1x *host1x; host1x_client_unregister() local
[all...]
H A Dcdma.c3 * Tegra host1x Command DMA
12 #include <linux/host1x.h>
17 #include <trace/events/host1x.h>
51 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy() local
56 if (host1x->domain) { in host1x_pushbuffer_destroy()
57 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy()
58 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy()
61 dma_free_wc(host1x in host1x_pushbuffer_destroy()
73 struct host1x *host1x = cdma_to_host1x(cdma); host1x_pushbuffer_init() local
235 host1x_cdma_wait_pushbuffer_space(struct host1x *host1x, struct host1x_cdma *cdma, unsigned int needed) host1x_cdma_wait_pushbuffer_space() argument
315 struct host1x *host1x = cdma_to_host1x(cdma); update_cdma_locked() local
373 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_update_sync_queue() local
475 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_deinit() local
493 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_begin() local
528 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_push() local
560 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_push_wide() local
609 struct host1x *host1x = cdma_to_host1x(cdma); host1x_cdma_end() local
[all...]
H A Ddebug.c53 struct host1x *m = dev_get_drvdata(ch->dev->parent); in show_channel()
70 static void show_syncpts(struct host1x *m, struct output *o) in show_syncpts()
99 static void show_all(struct host1x *m, struct output *o, bool show_fifo) in show_all()
165 static void host1x_debugfs_init(struct host1x *host1x) in host1x_debugfs_init() argument
167 struct dentry *de = debugfs_create_dir("tegra-host1x", NULL); in host1x_debugfs_init()
170 host1x->debugfs = de; in host1x_debugfs_init()
172 debugfs_create_file("status", S_IRUGO, de, host1x, &host1x_debug_fops); in host1x_debugfs_init()
173 debugfs_create_file("status_all", S_IRUGO, de, host1x, in host1x_debugfs_init()
179 host1x_hw_debug_init(host1x, d in host1x_debugfs_init()
189 host1x_debugfs_exit(struct host1x *host1x) host1x_debugfs_exit() argument
194 host1x_debug_init(struct host1x *host1x) host1x_debug_init() argument
200 host1x_debug_deinit(struct host1x *host1x) host1x_debug_deinit() argument
206 host1x_debug_dump(struct host1x *host1x) host1x_debug_dump() argument
215 host1x_debug_dump_syncpts(struct host1x *host1x) host1x_debug_dump_syncpts() argument
[all...]
H A Ddebug.h3 * Tegra host1x Debug
13 struct host1x;
41 void host1x_debug_init(struct host1x *host1x);
42 void host1x_debug_deinit(struct host1x *host1x);
43 void host1x_debug_dump(struct host1x *host1x);
44 void host1x_debug_dump_syncpts(struct host1x *host1x);
[all...]
H A Dsyncpt.h3 * Tegra host1x Syncpoints
12 #include <linux/host1x.h>
18 struct host1x;
35 struct host1x *host;
44 int host1x_syncpt_init(struct host1x *host);
47 void host1x_syncpt_deinit(struct host1x *host);
50 unsigned int host1x_syncpt_nb_pts(struct host1x *host);
53 unsigned int host1x_syncpt_nb_bases(struct host1x *host);
56 unsigned int host1x_syncpt_nb_mlocks(struct host1x *host);
98 /* Save host1x syn
[all...]
H A Ddev.c3 * Tegra host1x driver
18 #include <trace/events/host1x.h>
38 void host1x_hypervisor_writel(struct host1x *host1x, u32 v, u32 r) in host1x_hypervisor_writel() argument
40 writel(v, host1x->hv_regs + r); in host1x_hypervisor_writel()
43 u32 host1x_hypervisor_readl(struct host1x *host1x, u32 r) in host1x_hypervisor_readl() argument
45 return readl(host1x->hv_regs + r); in host1x_hypervisor_readl()
48 void host1x_sync_writel(struct host1x *host1x, u3 argument
55 host1x_sync_readl(struct host1x *host1x, u32 r) host1x_sync_readl() argument
199 host1x_wants_iommu(struct host1x *host1x) host1x_wants_iommu() argument
577 host1x_get_dma_mask(struct host1x *host1x) host1x_get_dma_mask() argument
[all...]
H A Dintr.h3 * Tegra host1x Interrupt Management
15 struct host1x;
68 int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt,
78 void host1x_intr_put_ref(struct host1x *host, unsigned int id, void *ref);
80 /* Initialize host1x sync point interrupt */
81 int host1x_intr_init(struct host1x *host, unsigned int irq_sync);
83 /* Deinitialize host1x sync point interrupt */
84 void host1x_intr_deinit(struct host1x *host);
86 /* Enable host1x sync point interrupt */
87 void host1x_intr_start(struct host1x *hos
[all...]
H A Dbus.h11 struct host1x;
15 int host1x_register(struct host1x *host1x);
16 int host1x_unregister(struct host1x *host1x);
/kernel/linux/linux-6.6/drivers/gpu/host1x/hw/
H A Dcdma_hw.c3 * Tegra host1x Command DMA
91 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_restart() local
123 dev_dbg(host1x->dev, in cdma_timeout_restart()
170 static void cdma_hw_cmdproc_stop(struct host1x *host, struct host1x_channel *ch, in cdma_hw_cmdproc_stop()
185 static void cdma_hw_teardown(struct host1x *host, struct host1x_channel *ch) in cdma_hw_teardown()
200 struct host1x *host = cdma_to_host1x(cdma); in cdma_freeze()
228 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_resume() local
231 dev_dbg(host1x in cdma_resume()
253 struct host1x *host1x = cdma_to_host1x(cdma); timeout_release_mlock() local
281 struct host1x *host1x; cdma_timeout_handler() local
[all...]
H A Dsyncpt_hw.c3 * Tegra host1x Syncpoints
19 struct host1x *host = sp->host; in syncpt_restore()
30 struct host1x *host = sp->host; in syncpt_restore_wait_base()
43 struct host1x *host = sp->host; in syncpt_read_wait_base()
55 struct host1x *host = sp->host; in syncpt_load()
78 struct host1x *host = sp->host; in syncpt_cpu_incr()
107 struct host1x *host = sp->host; in syncpt_assign_to_channel()
117 * @host: host1x instance
122 static void syncpt_enable_protection(struct host1x *host) in syncpt_enable_protection()
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
H A Dcdma_hw.c3 * Tegra host1x Command DMA
91 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_restart() local
123 dev_dbg(host1x->dev, in cdma_timeout_restart()
170 static void cdma_hw_cmdproc_stop(struct host1x *host, struct host1x_channel *ch, in cdma_hw_cmdproc_stop()
185 static void cdma_hw_teardown(struct host1x *host, struct host1x_channel *ch) in cdma_hw_teardown()
200 struct host1x *host = cdma_to_host1x(cdma); in cdma_freeze()
228 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_resume() local
231 dev_dbg(host1x in cdma_resume()
250 struct host1x *host1x; cdma_timeout_handler() local
[all...]
H A Dintr_hw.c3 * Tegra host1x Interrupt Management
23 struct host1x *host = syncpt->host; in host1x_intr_syncpt_handle()
35 struct host1x *host = dev_id; in syncpt_thresh_isr()
52 static void _host1x_intr_disable_all_syncpt_intrs(struct host1x *host) in _host1x_intr_disable_all_syncpt_intrs()
64 static void intr_hw_init(struct host1x *host, u32 cpm) in intr_hw_init()
82 _host1x_intr_init_host_sync(struct host1x *host, u32 cpm, in _host1x_intr_init_host_sync()
106 static void _host1x_intr_set_syncpt_threshold(struct host1x *host, in _host1x_intr_set_syncpt_threshold()
113 static void _host1x_intr_enable_syncpt_intr(struct host1x *host, in _host1x_intr_enable_syncpt_intr()
120 static void _host1x_intr_disable_syncpt_intr(struct host1x *host, in _host1x_intr_disable_syncpt_intr()
129 static int _host1x_free_syncpt_irq(struct host1x *hos
[all...]
H A Dsyncpt_hw.c3 * Tegra host1x Syncpoints
19 struct host1x *host = sp->host; in syncpt_restore()
30 struct host1x *host = sp->host; in syncpt_restore_wait_base()
43 struct host1x *host = sp->host; in syncpt_read_wait_base()
55 struct host1x *host = sp->host; in syncpt_load()
78 struct host1x *host = sp->host; in syncpt_cpu_incr()
107 struct host1x *host = sp->host; in syncpt_assign_to_channel()
117 * @host: host1x instance
122 static void syncpt_enable_protection(struct host1x *host) in syncpt_enable_protection()

Completed in 11 milliseconds

12345