Home
last modified time | relevance | path

Searched refs:chan_ctxt (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/bus/mhi/host/
Ddebugfs.c85 struct mhi_chan_ctxt *chan_ctxt; in mhi_debugfs_channels_show() local
94 chan_ctxt = mhi_cntrl->mhi_ctxt->chan_ctxt; in mhi_debugfs_channels_show()
95 for (i = 0; i < mhi_cntrl->max_chan; i++, chan_ctxt++, mhi_chan++) { in mhi_debugfs_channels_show()
109 mhi_chan->name, mhi_chan->chan, (le32_to_cpu(chan_ctxt->chcfg) & in mhi_debugfs_channels_show()
111 (le32_to_cpu(chan_ctxt->chcfg) & CHAN_CTX_BRSTMODE_MASK) >> in mhi_debugfs_channels_show()
112 __ffs(CHAN_CTX_BRSTMODE_MASK), (le32_to_cpu(chan_ctxt->chcfg) & in mhi_debugfs_channels_show()
115 seq_printf(m, " type: 0x%x event ring: %u", le32_to_cpu(chan_ctxt->chtype), in mhi_debugfs_channels_show()
116 le32_to_cpu(chan_ctxt->erindex)); in mhi_debugfs_channels_show()
119 le64_to_cpu(chan_ctxt->rbase), le64_to_cpu(chan_ctxt->rlen), in mhi_debugfs_channels_show()
120 le64_to_cpu(chan_ctxt->rp), le64_to_cpu(chan_ctxt->wp)); in mhi_debugfs_channels_show()
Dinit.c294 dma_free_coherent(mhi_cntrl->cntrl_dev, sizeof(*mhi_ctxt->chan_ctxt) * in mhi_deinit_dev_ctxt()
295 mhi_cntrl->max_chan, mhi_ctxt->chan_ctxt, in mhi_deinit_dev_ctxt()
305 struct mhi_chan_ctxt *chan_ctxt; in mhi_init_dev_ctxt() local
322 mhi_ctxt->chan_ctxt = dma_alloc_coherent(mhi_cntrl->cntrl_dev, in mhi_init_dev_ctxt()
323 sizeof(*mhi_ctxt->chan_ctxt) * in mhi_init_dev_ctxt()
327 if (!mhi_ctxt->chan_ctxt) in mhi_init_dev_ctxt()
331 chan_ctxt = mhi_ctxt->chan_ctxt; in mhi_init_dev_ctxt()
332 for (i = 0; i < mhi_cntrl->max_chan; i++, chan_ctxt++, mhi_chan++) { in mhi_init_dev_ctxt()
337 tmp = le32_to_cpu(chan_ctxt->chcfg); in mhi_init_dev_ctxt()
344 chan_ctxt->chcfg = cpu_to_le32(tmp); in mhi_init_dev_ctxt()
[all …]
Dinternal.h20 struct mhi_chan_ctxt *chan_ctxt; member