Home
last modified time | relevance | path

Searched refs:mhi_chan (Results 1 – 5 of 5) sorted by relevance

/drivers/bus/mhi/host/
Dmain.c131 struct mhi_chan *mhi_chan) in mhi_ring_chan_db() argument
133 struct mhi_ring *ring = &mhi_chan->tre_ring; in mhi_ring_chan_db()
145 mhi_chan->db_cfg.process_db(mhi_cntrl, &mhi_chan->db_cfg, in mhi_ring_chan_db()
276 struct mhi_chan *ul_chan, *dl_chan; in mhi_destroy_device()
337 struct mhi_chan *mhi_chan = (dir == DMA_TO_DEVICE) ? in mhi_get_free_desc_count() local
339 struct mhi_ring *tre_ring = &mhi_chan->tre_ring; in mhi_get_free_desc_count()
362 struct mhi_chan *mhi_chan; in mhi_create_devices() local
367 mhi_chan = mhi_cntrl->mhi_chan; in mhi_create_devices()
368 for (i = 0; i < mhi_cntrl->max_chan; i++, mhi_chan++) { in mhi_create_devices()
369 if (!mhi_chan->configured || mhi_chan->mhi_dev || in mhi_create_devices()
[all …]
Dinit.c267 struct mhi_chan *mhi_chan; in mhi_init_dev_ctxt() local
289 mhi_chan = mhi_cntrl->mhi_chan; in mhi_init_dev_ctxt()
291 for (i = 0; i < mhi_cntrl->max_chan; i++, chan_ctxt++, mhi_chan++) { in mhi_init_dev_ctxt()
293 if (mhi_chan->offload_ch) in mhi_init_dev_ctxt()
300 tmp |= (mhi_chan->db_cfg.brstmode << CHAN_CTX_BRSTMODE_SHIFT); in mhi_init_dev_ctxt()
302 tmp |= (mhi_chan->db_cfg.pollcfg << CHAN_CTX_POLLCFG_SHIFT); in mhi_init_dev_ctxt()
305 chan_ctxt->chtype = cpu_to_le32(mhi_chan->type); in mhi_init_dev_ctxt()
306 chan_ctxt->erindex = cpu_to_le32(mhi_chan->er_index); in mhi_init_dev_ctxt()
308 mhi_chan->ch_state = MHI_CH_STATE_DISABLED; in mhi_init_dev_ctxt()
309 mhi_chan->tre_ring.db_addr = (void __iomem *)&chan_ctxt->wp; in mhi_init_dev_ctxt()
[all …]
Ddebugfs.c84 struct mhi_chan *mhi_chan; in mhi_debugfs_channels_show() local
93 mhi_chan = mhi_cntrl->mhi_chan; in mhi_debugfs_channels_show()
95 for (i = 0; i < mhi_cntrl->max_chan; i++, chan_ctxt++, mhi_chan++) { in mhi_debugfs_channels_show()
96 struct mhi_ring *ring = &mhi_chan->tre_ring; in mhi_debugfs_channels_show()
98 if (mhi_chan->offload_ch) { in mhi_debugfs_channels_show()
100 mhi_chan->name, mhi_chan->chan); in mhi_debugfs_channels_show()
104 if (!mhi_chan->mhi_dev) in mhi_debugfs_channels_show()
109 mhi_chan->name, mhi_chan->chan, (le32_to_cpu(chan_ctxt->chcfg) & in mhi_debugfs_channels_show()
124 &mhi_chan->db_cfg.db_val); in mhi_debugfs_channels_show()
Dinternal.h534 struct mhi_chan *mhi_chan; /* dedicated to channel */ member
553 struct mhi_chan { struct
635 int mhi_send_cmd(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan,
674 struct mhi_chan *mhi_chan);
686 struct mhi_chan *mhi_chan);
688 struct mhi_chan *mhi_chan);
690 struct mhi_chan *mhi_chan);
692 struct mhi_chan *mhi_chan);
707 int mhi_gen_tre(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan,
Dpm.c246 struct mhi_chan *mhi_chan; in mhi_pm_m0_transition() local
287 mhi_chan = mhi_cntrl->mhi_chan; in mhi_pm_m0_transition()
288 for (i = 0; i < mhi_cntrl->max_chan; i++, mhi_chan++) { in mhi_pm_m0_transition()
289 struct mhi_ring *tre_ring = &mhi_chan->tre_ring; in mhi_pm_m0_transition()
291 if (mhi_chan->db_cfg.reset_req) { in mhi_pm_m0_transition()
292 write_lock_irq(&mhi_chan->lock); in mhi_pm_m0_transition()
293 mhi_chan->db_cfg.db_mode = true; in mhi_pm_m0_transition()
294 write_unlock_irq(&mhi_chan->lock); in mhi_pm_m0_transition()
297 read_lock_irq(&mhi_chan->lock); in mhi_pm_m0_transition()
301 mhi_chan->ch_state == MHI_CH_STATE_ENABLED) in mhi_pm_m0_transition()
[all …]