Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/bus/mhi/host/
Dmain.c133 struct mhi_chan *mhi_chan) in mhi_ring_chan_db() argument
135 struct mhi_ring *ring = &mhi_chan->tre_ring; in mhi_ring_chan_db()
147 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.c277 struct mhi_chan *mhi_chan; in mhi_init_dev_ctxt() local
299 mhi_chan = mhi_cntrl->mhi_chan; in mhi_init_dev_ctxt()
301 for (i = 0; i < mhi_cntrl->max_chan; i++, chan_ctxt++, mhi_chan++) { in mhi_init_dev_ctxt()
303 if (mhi_chan->offload_ch) in mhi_init_dev_ctxt()
310 tmp |= FIELD_PREP(CHAN_CTX_BRSTMODE_MASK, mhi_chan->db_cfg.brstmode); in mhi_init_dev_ctxt()
312 tmp |= FIELD_PREP(CHAN_CTX_POLLCFG_MASK, mhi_chan->db_cfg.pollcfg); in mhi_init_dev_ctxt()
315 chan_ctxt->chtype = cpu_to_le32(mhi_chan->type); in mhi_init_dev_ctxt()
316 chan_ctxt->erindex = cpu_to_le32(mhi_chan->er_index); in mhi_init_dev_ctxt()
318 mhi_chan->ch_state = MHI_CH_STATE_DISABLED; in mhi_init_dev_ctxt()
319 mhi_chan->tre_ring.db_addr = (void __iomem *)&chan_ctxt->wp; in mhi_init_dev_ctxt()
[all …]
Dinternal.h194 struct mhi_chan *mhi_chan; /* dedicated to channel */ member
213 struct mhi_chan { struct
295 int mhi_send_cmd(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan,
335 struct mhi_chan *mhi_chan);
350 struct mhi_chan *mhi_chan, unsigned int flags);
353 struct mhi_chan *mhi_chan);
355 struct mhi_chan *mhi_chan);
357 struct mhi_chan *mhi_chan);
372 int mhi_gen_tre(struct mhi_controller *mhi_cntrl, struct mhi_chan *mhi_chan,
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()
Dpm.c250 struct mhi_chan *mhi_chan; in mhi_pm_m0_transition() local
291 mhi_chan = mhi_cntrl->mhi_chan; in mhi_pm_m0_transition()
292 for (i = 0; i < mhi_cntrl->max_chan; i++, mhi_chan++) { in mhi_pm_m0_transition()
293 struct mhi_ring *tre_ring = &mhi_chan->tre_ring; in mhi_pm_m0_transition()
295 if (mhi_chan->db_cfg.reset_req) { in mhi_pm_m0_transition()
296 write_lock_irq(&mhi_chan->lock); in mhi_pm_m0_transition()
297 mhi_chan->db_cfg.db_mode = true; in mhi_pm_m0_transition()
298 write_unlock_irq(&mhi_chan->lock); in mhi_pm_m0_transition()
301 read_lock_irq(&mhi_chan->lock); in mhi_pm_m0_transition()
305 mhi_ring_chan_db(mhi_cntrl, mhi_chan); in mhi_pm_m0_transition()
[all …]
/Linux-v6.1/drivers/bus/mhi/ep/
Dmain.c120 struct mhi_ep_chan *mhi_chan; in mhi_ep_process_cmd_ring() local
126 mhi_chan = &mhi_cntrl->mhi_chan[ch_id]; in mhi_ep_process_cmd_ring()
127 ch_ring = &mhi_cntrl->mhi_chan[ch_id].ring; in mhi_ep_process_cmd_ring()
133 mutex_lock(&mhi_chan->lock); in mhi_ep_process_cmd_ring()
150 mhi_chan->state = MHI_CH_STATE_RUNNING; in mhi_ep_process_cmd_ring()
163 mutex_unlock(&mhi_chan->lock); in mhi_ep_process_cmd_ring()
174 if (!(ch_id % 2) && !mhi_chan->mhi_dev) { in mhi_ep_process_cmd_ring()
194 mutex_lock(&mhi_chan->lock); in mhi_ep_process_cmd_ring()
201 mhi_chan->xfer_cb(mhi_chan->mhi_dev, &result); in mhi_ep_process_cmd_ring()
204 mhi_chan->state = MHI_CH_STATE_STOP; in mhi_ep_process_cmd_ring()
[all …]
/Linux-v6.1/include/linux/
Dmhi.h20 struct mhi_chan;
394 struct mhi_chan *mhi_chan; member
475 struct mhi_chan *ul_chan;
476 struct mhi_chan *dl_chan;
Dmhi_ep.h103 struct mhi_ep_chan *mhi_chan; member