/Linux-v4.19/drivers/gpu/host1x/ |
D | dev.h | 42 int (*init)(struct host1x_channel *channel, struct host1x *host, 65 void (*show_channel_cdma)(struct host1x *host, 68 void (*show_channel_fifo)(struct host1x *host, 71 void (*show_mlocks)(struct host1x *host, struct output *output); 83 void (*enable_protection)(struct host1x *host); 87 int (*init_host_sync)(struct host1x *host, u32 cpm, 90 struct host1x *host, unsigned int id, u32 thresh); 91 void (*enable_syncpt_intr)(struct host1x *host, unsigned int id); 92 void (*disable_syncpt_intr)(struct host1x *host, unsigned int id); 93 void (*disable_all_syncpt_intrs)(struct host1x *host); [all …]
|
D | bus.c | 268 static int host1x_add_client(struct host1x *host1x, in host1x_add_client() argument 274 mutex_lock(&host1x->devices_lock); in host1x_add_client() 276 list_for_each_entry(device, &host1x->devices, list) { in host1x_add_client() 280 mutex_unlock(&host1x->devices_lock); in host1x_add_client() 286 mutex_unlock(&host1x->devices_lock); in host1x_add_client() 290 static int host1x_del_client(struct host1x *host1x, in host1x_del_client() argument 296 mutex_lock(&host1x->devices_lock); in host1x_del_client() 298 list_for_each_entry_safe(device, dt, &host1x->devices, list) { in host1x_del_client() 302 mutex_unlock(&host1x->devices_lock); in host1x_del_client() 308 mutex_unlock(&host1x->devices_lock); in host1x_del_client() [all …]
|
D | cdma.c | 52 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy() local 57 if (host1x->domain) { in host1x_pushbuffer_destroy() 58 iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); in host1x_pushbuffer_destroy() 59 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy() 62 dma_free_wc(host1x->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy() 74 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() local 89 if (host1x->domain) { in host1x_pushbuffer_init() 92 size = iova_align(&host1x->iova, size); in host1x_pushbuffer_init() 94 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init() 99 shift = iova_shift(&host1x->iova); in host1x_pushbuffer_init() [all …]
|
D | debug.c | 60 struct host1x *m = dev_get_drvdata(ch->dev->parent); in show_channel() 75 static void show_syncpts(struct host1x *m, struct output *o) in show_syncpts() 104 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 178 host1x->debugfs = de; in host1x_debugfs_init() 180 debugfs_create_file("status", S_IRUGO, de, host1x, &host1x_debug_fops); in host1x_debugfs_init() 181 debugfs_create_file("status_all", S_IRUGO, de, host1x, in host1x_debugfs_init() 187 host1x_hw_debug_init(host1x, de); in host1x_debugfs_init() 197 static void host1x_debugfs_exit(struct host1x *host1x) in host1x_debugfs_exit() argument 199 debugfs_remove_recursive(host1x->debugfs); in host1x_debugfs_exit() [all …]
|
D | debug.h | 24 struct host1x; 52 void host1x_debug_init(struct host1x *host1x); 53 void host1x_debug_deinit(struct host1x *host1x); 54 void host1x_debug_dump(struct host1x *host1x); 55 void host1x_debug_dump_syncpts(struct host1x *host1x);
|
D | syncpt.h | 29 struct host1x; 46 struct host1x *host; 55 int host1x_syncpt_init(struct host1x *host); 58 void host1x_syncpt_deinit(struct host1x *host); 61 unsigned int host1x_syncpt_nb_pts(struct host1x *host); 64 unsigned int host1x_syncpt_nb_bases(struct host1x *host); 67 unsigned int host1x_syncpt_nb_mlocks(struct host1x *host); 110 void host1x_syncpt_save(struct host1x *host); 113 void host1x_syncpt_restore(struct host1x *host);
|
D | intr.h | 26 struct host1x; 79 int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt, 89 void host1x_intr_put_ref(struct host1x *host, unsigned int id, void *ref); 92 int host1x_intr_init(struct host1x *host, unsigned int irq_sync); 95 void host1x_intr_deinit(struct host1x *host); 98 void host1x_intr_start(struct host1x *host); 101 void host1x_intr_stop(struct host1x *host);
|
D | bus.h | 22 struct host1x; 26 int host1x_register(struct host1x *host1x); 27 int host1x_unregister(struct host1x *host1x);
|
D | dev.c | 44 void host1x_hypervisor_writel(struct host1x *host1x, u32 v, u32 r) in host1x_hypervisor_writel() argument 46 writel(v, host1x->hv_regs + r); in host1x_hypervisor_writel() 49 u32 host1x_hypervisor_readl(struct host1x *host1x, u32 r) in host1x_hypervisor_readl() argument 51 return readl(host1x->hv_regs + r); in host1x_hypervisor_readl() 54 void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) in host1x_sync_writel() argument 56 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_writel() 61 u32 host1x_sync_readl(struct host1x *host1x, u32 r) in host1x_sync_readl() argument 63 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_readl() 142 struct host1x *host; in host1x_probe() 330 struct host1x *host = platform_get_drvdata(pdev); in host1x_remove()
|
D | Kconfig | 2 tristate "NVIDIA Tegra host1x driver" 6 Driver for the NVIDIA Tegra host1x hardware. 8 The Tegra host1x module is the DMA engine for register access to 10 by host1x are referred to as clients. host1x includes some other
|
D | syncpt.c | 34 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() 130 void host1x_syncpt_restore(struct host1x *host) in host1x_syncpt_restore() 148 void host1x_syncpt_save(struct host1x *host) in host1x_syncpt_save() 376 int host1x_syncpt_init(struct host1x *host) in host1x_syncpt_init() 435 struct host1x *host = dev_get_drvdata(client->parent->parent); in host1x_syncpt_request() 469 void host1x_syncpt_deinit(struct host1x *host) in host1x_syncpt_deinit() 518 unsigned int host1x_syncpt_nb_pts(struct host1x *host) in host1x_syncpt_nb_pts() 523 unsigned int host1x_syncpt_nb_bases(struct host1x *host) in host1x_syncpt_nb_bases() 528 unsigned int host1x_syncpt_nb_mlocks(struct host1x *host) in host1x_syncpt_nb_mlocks() [all …]
|
D | intr.c | 99 static void reset_threshold_interrupt(struct host1x *host, in reset_threshold_interrupt() 166 static int process_wait_list(struct host1x *host, in process_wait_list() 208 struct host1x *host = syncpt->host; in syncpt_thresh_work() 214 int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt, in host1x_intr_add_action() 257 void host1x_intr_put_ref(struct host1x *host, unsigned int id, void *ref) in host1x_intr_put_ref() 273 int host1x_intr_init(struct host1x *host, unsigned int irq_sync) in host1x_intr_init() 296 void host1x_intr_deinit(struct host1x *host) in host1x_intr_deinit() 301 void host1x_intr_start(struct host1x *host) in host1x_intr_start() 316 void host1x_intr_stop(struct host1x *host) in host1x_intr_stop()
|
D | channel.c | 56 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit() 78 struct host1x_channel *host1x_channel_get_index(struct host1x *host, in host1x_channel_get_index() 93 struct host1x *host = dev_get_drvdata(channel->dev->parent); in release_channel() 108 static struct host1x_channel *acquire_unused_channel(struct host1x *host) in acquire_unused_channel() 136 struct host1x *host = dev_get_drvdata(dev->parent); in host1x_channel_request()
|
D | channel.h | 27 struct host1x; 48 struct host1x_channel *host1x_channel_get_index(struct host1x *host,
|
D | Makefile | 2 host1x-y = \ 18 obj-$(CONFIG_TEGRA_HOST1X) += host1x.o
|
/Linux-v4.19/drivers/gpu/host1x/hw/ |
D | cdma_hw.c | 42 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_cpu_incr() local 57 dev_dbg(host1x->dev, "%s: NOP at %pad+%#x\n", __func__, in cdma_timeout_cpu_incr() 105 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_restart() local 128 dev_dbg(host1x->dev, in cdma_timeout_restart() 175 static void cdma_hw_cmdproc_stop(struct host1x *host, struct host1x_channel *ch, in cdma_hw_cmdproc_stop() 190 static void cdma_hw_teardown(struct host1x *host, struct host1x_channel *ch) in cdma_hw_teardown() 205 struct host1x *host = cdma_to_host1x(cdma); in cdma_freeze() 233 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_resume() local 236 dev_dbg(host1x->dev, in cdma_resume() 240 cdma_hw_cmdproc_stop(host1x, ch, false); in cdma_resume() [all …]
|
D | intr_hw.c | 34 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 void intr_hw_init(struct host1x *host, u32 cpm) in intr_hw_init() 93 _host1x_intr_init_host_sync(struct host1x *host, u32 cpm, in _host1x_intr_init_host_sync() 117 static void _host1x_intr_set_syncpt_threshold(struct host1x *host, in _host1x_intr_set_syncpt_threshold() 124 static void _host1x_intr_enable_syncpt_intr(struct host1x *host, in _host1x_intr_enable_syncpt_intr() 131 static void _host1x_intr_disable_syncpt_intr(struct host1x *host, in _host1x_intr_disable_syncpt_intr() 140 static int _host1x_free_syncpt_irq(struct host1x *host) in _host1x_free_syncpt_irq()
|
D | syncpt_hw.c | 30 struct host1x *host = sp->host; in syncpt_restore() 40 struct host1x *host = sp->host; in syncpt_restore_wait_base() 51 struct host1x *host = sp->host; in syncpt_read_wait_base() 62 struct host1x *host = sp->host; in syncpt_load() 85 struct host1x *host = sp->host; in syncpt_cpu_incr() 114 struct host1x *host = sp->host; in syncpt_assign_to_channel() 132 static void syncpt_enable_protection(struct host1x *host) in syncpt_enable_protection()
|
D | host1x01.h | 21 struct host1x; 23 int host1x01_init(struct host1x *host);
|
D | host1x02.h | 22 struct host1x; 24 int host1x02_init(struct host1x *host);
|
D | host1x04.h | 22 struct host1x; 24 int host1x04_init(struct host1x *host);
|
D | host1x05.h | 22 struct host1x; 24 int host1x05_init(struct host1x *host);
|
D | host1x06.h | 22 struct host1x; 24 int host1x06_init(struct host1x *host);
|
/Linux-v4.19/Documentation/gpu/ |
D | tegra.rst | 6 the host1x controller. host1x supplies command streams, gathered from a push 18 - A host1x driver that provides infrastructure and access to the host1x 25 GPU and video engines via host1x. 30 The various host1x clients need to be bound together into a logical device in 32 this is implemented in the host1x driver. When a driver is registered with the 37 to the logical host1x device. 50 .. kernel-doc:: include/linux/host1x.h 52 .. kernel-doc:: drivers/gpu/host1x/bus.c 58 .. kernel-doc:: drivers/gpu/host1x/syncpt.c 140 to host1x. [all …]
|
/Linux-v4.19/include/trace/events/ |
D | host1x.h | 24 #define TRACE_SYSTEM host1x 34 DECLARE_EVENT_CLASS(host1x, 42 DEFINE_EVENT(host1x, host1x_channel_open, 47 DEFINE_EVENT(host1x, host1x_channel_release, 52 DEFINE_EVENT(host1x, host1x_cdma_begin, 57 DEFINE_EVENT(host1x, host1x_cdma_end,
|