| /kernel/linux/linux-6.6/drivers/gpu/host1x/ |
| D | dev.h | 32 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 *host); [all …]
|
| D | bus.c | 9 #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 logical device [all …]
|
| D | intr.h | 3 * 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 *host); [all …]
|
| D | debug.c | 54 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, de); in host1x_debugfs_init() 194 static void host1x_debugfs_exit(struct host1x *host1x) in host1x_debugfs_exit() argument [all …]
|
| D | dev.c | 3 * 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, u32 r) in host1x_hypervisor_readl() argument 57 return readl(host1x->hv_regs + r); in host1x_hypervisor_readl() 60 void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r) in host1x_sync_writel() argument 62 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_writel() [all …]
|
| D | cdma.c | 3 * 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->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy() 73 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() local 88 if (host1x->domain) { in host1x_pushbuffer_init() [all …]
|
| D | debug.h | 3 * 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);
|
| D | syncpt.c | 3 * Tegra host1x Syncpoints 13 #include <trace/events/host1x.h> 24 host1x_syncpt_base_request(struct host1x *host) in host1x_syncpt_base_request() 48 * @host: host1x device data 58 struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host, in host1x_syncpt_alloc() 110 * @sp: host1x syncpoint 124 * @sp: host1x syncpoint 136 void host1x_syncpt_restore(struct host1x *host) in host1x_syncpt_restore() 163 void host1x_syncpt_save(struct host1x *host) in host1x_syncpt_save() 205 * @sp: host1x syncpoint [all …]
|
| D | syncpt.h | 3 * 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 sync point state into shadow registers. */ [all …]
|
| D | context.c | 21 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->dev, "Context device %d has no IOMMU!\n", i); in host1x_memory_context_list_init() 85 * are defined in the device tree, Host1x will fail to probe. in host1x_memory_context_list_init() [all …]
|
| D | channel.c | 3 * Tegra host1x Channel 15 /* Constructor for the host1x device list */ 41 struct host1x *host = dev_get_drvdata(job->channel->dev->parent); in host1x_job_submit() 57 * @host: Host1x device object 63 struct host1x_channel *host1x_channel_get_index(struct host1x *host, in host1x_channel_get_index() 76 struct host1x *host = dev_get_drvdata(channel->dev->parent); in host1x_channel_stop() 86 struct host1x *host = dev_get_drvdata(channel->dev->parent); in release_channel() 101 static struct host1x_channel *acquire_unused_channel(struct host1x *host) in acquire_unused_channel() 122 * @client: Host1x client this channel will be used to send commands to 124 * Allocates a new host1x channel for @client. May return NULL if CDMA [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/host1x/ |
| D | dev.h | 31 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 *host); [all …]
|
| D | bus.c | 8 #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 logical device is unloaded, it can call this [all …]
|
| D | debug.c | 53 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, de); in host1x_debugfs_init() 189 static void host1x_debugfs_exit(struct host1x *host1x) in host1x_debugfs_exit() argument [all …]
|
| D | dev.c | 3 * 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, u32 v, u32 r) in host1x_sync_writel() argument 50 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_writel() 55 u32 host1x_sync_readl(struct host1x *host1x, u32 r) in host1x_sync_readl() argument 57 void __iomem *sync_regs = host1x->regs + host1x->info->sync_offset; in host1x_sync_readl() [all …]
|
| D | cdma.c | 3 * 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->dev, pb->alloc_size, pb->mapped, pb->phys); in host1x_pushbuffer_destroy() 73 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() local 88 if (host1x->domain) { in host1x_pushbuffer_init() [all …]
|
| D | intr.h | 3 * 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 *host); [all …]
|
| D | syncpt.h | 3 * 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 sync point state into shadow registers. */ [all …]
|
| D | debug.h | 3 * 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);
|
| D | syncpt.c | 3 * Tegra host1x Syncpoints 12 #include <trace/events/host1x.h> 23 host1x_syncpt_base_request(struct host1x *host) in host1x_syncpt_base_request() 45 static struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host, in host1x_syncpt_alloc() 93 * @sp: host1x syncpoint 107 * @sp: host1x syncpoint 119 void host1x_syncpt_restore(struct host1x *host) in host1x_syncpt_restore() 137 void host1x_syncpt_save(struct host1x *host) in host1x_syncpt_save() 179 * @sp: host1x syncpoint 200 * @sp: host1x syncpoint [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/display/tegra/ |
| D | nvidia,tegra20-host1x.yaml | 4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-host1x.yaml# 7 title: NVIDIA Tegra host1x controller 13 description: The host1x top-level node defines a number of children, each 14 representing one of the host1x client modules defined in this binding. 20 - nvidia,tegra20-host1x 21 - nvidia,tegra30-host1x 22 - nvidia,tegra114-host1x 23 - nvidia,tegra124-host1x 24 - nvidia,tegra210-host1x 25 - nvidia,tegra186-host1x [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | host1x.h | 25 struct host1x; 29 u64 host1x_get_dma_mask(struct host1x *host1x); 32 * struct host1x_bo_cache - host1x buffer object cache 59 * struct host1x_client_ops - host1x client operations 60 * @early_init: host1x client early initialization code 61 * @init: host1x client initialization code 62 * @exit: host1x client tear down code 63 * @late_exit: host1x client late tear down code 64 * @suspend: host1x client suspend code 65 * @resume: host1x client resume code [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | host1x.h | 20 struct host1x; 24 u64 host1x_get_dma_mask(struct host1x *host1x); 27 * struct host1x_client_ops - host1x client operations 28 * @init: host1x client initialization code 29 * @exit: host1x client tear down code 30 * @suspend: host1x client suspend code 31 * @resume: host1x client resume code 41 * struct host1x_client - host1x client structure 42 * @list: list node for the host1x client 43 * @host: pointer to struct device representing the host1x controller [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/host1x/hw/ |
| D | cdma_hw.c | 3 * 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->dev, in cdma_resume() 235 cdma_hw_cmdproc_stop(host1x, ch, false); in cdma_resume() 253 struct host1x *host1x = cdma_to_host1x(cdma); in timeout_release_mlock() local [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/host1x/hw/ |
| D | cdma_hw.c | 3 * 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->dev, in cdma_resume() 235 cdma_hw_cmdproc_stop(host1x, ch, false); in cdma_resume() 250 struct host1x *host1x; in cdma_timeout_handler() local [all …]
|