Lines Matching +full:pa +full:- +full:stats
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
24 if (tre_ch >= lldev->nr_tres) { in hidma_ll_chstats()
25 dev_err(lldev->dev, "invalid TRE number in chstats:%d", tre_ch); in hidma_ll_chstats()
28 tre = &lldev->trepool[tre_ch]; in hidma_ll_chstats()
29 seq_printf(s, "------Channel %d -----\n", tre_ch); in hidma_ll_chstats()
30 seq_printf(s, "allocated=%d\n", atomic_read(&tre->allocated)); in hidma_ll_chstats()
31 seq_printf(s, "queued = 0x%x\n", tre->queued); in hidma_ll_chstats()
32 seq_printf(s, "err_info = 0x%x\n", tre->err_info); in hidma_ll_chstats()
33 seq_printf(s, "err_code = 0x%x\n", tre->err_code); in hidma_ll_chstats()
34 seq_printf(s, "status = 0x%x\n", tre->status); in hidma_ll_chstats()
35 seq_printf(s, "idx = 0x%x\n", tre->idx); in hidma_ll_chstats()
36 seq_printf(s, "dma_sig = 0x%x\n", tre->dma_sig); in hidma_ll_chstats()
37 seq_printf(s, "dev_name=%s\n", tre->dev_name); in hidma_ll_chstats()
38 seq_printf(s, "callback=%p\n", tre->callback); in hidma_ll_chstats()
39 seq_printf(s, "data=%p\n", tre->data); in hidma_ll_chstats()
40 seq_printf(s, "tre_index = 0x%x\n", tre->tre_index); in hidma_ll_chstats()
42 tre_local = &tre->tre_local[0]; in hidma_ll_chstats()
58 seq_puts(s, "------Device -----\n"); in hidma_ll_devstats()
59 seq_printf(s, "lldev init = 0x%x\n", lldev->initialized); in hidma_ll_devstats()
60 seq_printf(s, "trch_state = 0x%x\n", lldev->trch_state); in hidma_ll_devstats()
61 seq_printf(s, "evch_state = 0x%x\n", lldev->evch_state); in hidma_ll_devstats()
62 seq_printf(s, "chidx = 0x%x\n", lldev->chidx); in hidma_ll_devstats()
63 seq_printf(s, "nr_tres = 0x%x\n", lldev->nr_tres); in hidma_ll_devstats()
64 seq_printf(s, "trca=%p\n", lldev->trca); in hidma_ll_devstats()
65 seq_printf(s, "tre_ring=%p\n", lldev->tre_ring); in hidma_ll_devstats()
66 seq_printf(s, "tre_ring_handle=%pap\n", &lldev->tre_dma); in hidma_ll_devstats()
67 seq_printf(s, "tre_ring_size = 0x%x\n", lldev->tre_ring_size); in hidma_ll_devstats()
68 seq_printf(s, "tre_processed_off = 0x%x\n", lldev->tre_processed_off); in hidma_ll_devstats()
70 atomic_read(&lldev->pending_tre_count)); in hidma_ll_devstats()
71 seq_printf(s, "evca=%p\n", lldev->evca); in hidma_ll_devstats()
72 seq_printf(s, "evre_ring=%p\n", lldev->evre_ring); in hidma_ll_devstats()
73 seq_printf(s, "evre_ring_handle=%pap\n", &lldev->evre_dma); in hidma_ll_devstats()
74 seq_printf(s, "evre_ring_size = 0x%x\n", lldev->evre_ring_size); in hidma_ll_devstats()
75 seq_printf(s, "evre_processed_off = 0x%x\n", lldev->evre_processed_off); in hidma_ll_devstats()
76 seq_printf(s, "tre_write_offset = 0x%x\n", lldev->tre_write_offset); in hidma_ll_devstats()
86 struct hidma_chan *mchan = s->private; in hidma_chan_show()
88 struct hidma_dev *dmadev = mchan->dmadev; in hidma_chan_show()
90 pm_runtime_get_sync(dmadev->ddev.dev); in hidma_chan_show()
91 seq_printf(s, "paused=%u\n", mchan->paused); in hidma_chan_show()
92 seq_printf(s, "dma_sig=%u\n", mchan->dma_sig); in hidma_chan_show()
94 list_for_each_entry(mdesc, &mchan->prepared, node) in hidma_chan_show()
95 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
98 list_for_each_entry(mdesc, &mchan->active, node) in hidma_chan_show()
99 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
102 list_for_each_entry(mdesc, &mchan->completed, node) in hidma_chan_show()
103 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show()
105 hidma_ll_devstats(s, mchan->dmadev->lldev); in hidma_chan_show()
106 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_chan_show()
107 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_chan_show()
118 struct hidma_dev *dmadev = s->private; in hidma_dma_show()
121 seq_printf(s, "nr_descriptors=%d\n", dmadev->nr_descriptors); in hidma_dma_show()
122 seq_printf(s, "dev_trca=%p\n", &dmadev->dev_trca); in hidma_dma_show()
123 seq_printf(s, "dev_trca_phys=%pa\n", &dmadev->trca_resource->start); in hidma_dma_show()
124 sz = resource_size(dmadev->trca_resource); in hidma_dma_show()
125 seq_printf(s, "dev_trca_size=%pa\n", &sz); in hidma_dma_show()
126 seq_printf(s, "dev_evca=%p\n", &dmadev->dev_evca); in hidma_dma_show()
127 seq_printf(s, "dev_evca_phys=%pa\n", &dmadev->evca_resource->start); in hidma_dma_show()
128 sz = resource_size(dmadev->evca_resource); in hidma_dma_show()
129 seq_printf(s, "dev_evca_size=%pa\n", &sz); in hidma_dma_show()
138 debugfs_remove_recursive(dmadev->debugfs); in hidma_debug_uninit()
147 dmadev->debugfs = debugfs_create_dir(dev_name(dmadev->ddev.dev), NULL); in hidma_debug_init()
150 list_for_each(position, &dmadev->ddev.channels) { in hidma_debug_init()
155 sprintf(chan->dbg_name, "chan%d", chidx); in hidma_debug_init()
156 dir = debugfs_create_dir(chan->dbg_name, in hidma_debug_init()
157 dmadev->debugfs); in hidma_debug_init()
158 debugfs_create_file("stats", S_IRUGO, dir, chan, in hidma_debug_init()
163 debugfs_create_file("stats", S_IRUGO, dmadev->debugfs, dmadev, in hidma_debug_init()