Home
last modified time | relevance | path

Searched refs:mhi_event (Results 1 – 6 of 6) sorted by relevance

/drivers/bus/mhi/host/
Dinit.c152 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_deinit_free_irq() local
154 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_deinit_free_irq()
155 if (mhi_event->offload_ev) in mhi_deinit_free_irq()
158 free_irq(mhi_cntrl->irq[mhi_event->irq], mhi_event); in mhi_deinit_free_irq()
166 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_init_irq_setup() local
189 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_init_irq_setup()
190 if (mhi_event->offload_ev) in mhi_init_irq_setup()
193 if (mhi_event->irq >= mhi_cntrl->nr_irqs) { in mhi_init_irq_setup()
195 mhi_event->irq); in mhi_init_irq_setup()
200 ret = request_irq(mhi_cntrl->irq[mhi_event->irq], in mhi_init_irq_setup()
[all …]
Dpm.c170 struct mhi_event *mhi_event; in mhi_ready_state_transition() local
224 mhi_event = mhi_cntrl->mhi_event; in mhi_ready_state_transition()
225 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_ready_state_transition()
226 struct mhi_ring *ring = &mhi_event->ring; in mhi_ready_state_transition()
229 if (mhi_event->offload_ev || mhi_event->hw_ring) in mhi_ready_state_transition()
238 spin_lock_irq(&mhi_event->lock); in mhi_ready_state_transition()
239 mhi_ring_er_db(mhi_event); in mhi_ready_state_transition()
240 spin_unlock_irq(&mhi_event->lock); in mhi_ready_state_transition()
278 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_pm_m0_transition() local
282 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_pm_m0_transition()
[all …]
Dmain.c114 void mhi_ring_er_db(struct mhi_event *mhi_event) in mhi_ring_er_db() argument
116 struct mhi_ring *ring = &mhi_event->ring; in mhi_ring_er_db()
118 mhi_event->db_cfg.process_db(mhi_event->mhi_cntrl, &mhi_event->db_cfg, in mhi_ring_er_db()
432 struct mhi_event *mhi_event = dev; in mhi_irq_handler() local
433 struct mhi_controller *mhi_cntrl = mhi_event->mhi_cntrl; in mhi_irq_handler()
435 struct mhi_ring *ev_ring = &mhi_event->ring; in mhi_irq_handler()
450 er_ctxt = &mhi_cntrl->mhi_ctxt->er_ctxt[mhi_event->er_index]; in mhi_irq_handler()
466 if (mhi_event->cl_manage) { in mhi_irq_handler()
467 struct mhi_chan *mhi_chan = mhi_event->mhi_chan; in mhi_irq_handler()
473 tasklet_schedule(&mhi_event->task); in mhi_irq_handler()
[all …]
Dinternal.h195 struct mhi_event { struct
209 struct mhi_event *mhi_event, argument
333 void mhi_ring_er_db(struct mhi_event *mhi_event);
366 struct mhi_event *mhi_event, u32 event_quota);
368 struct mhi_event *mhi_event, u32 event_quota);
Ddebugfs.c41 struct mhi_event *mhi_event; in mhi_debugfs_events_show() local
51 mhi_event = mhi_cntrl->mhi_event; in mhi_debugfs_events_show()
53 i++, er_ctxt++, mhi_event++) { in mhi_debugfs_events_show()
54 struct mhi_ring *ring = &mhi_event->ring; in mhi_debugfs_events_show()
56 if (mhi_event->offload_ev) { in mhi_debugfs_events_show()
75 &mhi_event->db_cfg.db_val); in mhi_debugfs_events_show()
/drivers/bus/mhi/ep/
Dmain.c37 ring = &mhi_cntrl->mhi_event[ring_idx].ring; in mhi_ep_send_event()
1013 ev_ring = &mhi_cntrl->mhi_event[i].ring; in mhi_ep_abort_transfer()
1087 mhi_cntrl->mhi_event = kzalloc(mhi_cntrl->event_rings * (sizeof(*mhi_cntrl->mhi_event)), in mhi_ep_power_up()
1089 if (!mhi_cntrl->mhi_event) in mhi_ep_power_up()
1097 mhi_ep_ring_init(&mhi_cntrl->mhi_event[i].ring, RING_TYPE_ER, i); in mhi_ep_power_up()
1123 kfree(mhi_cntrl->mhi_event); in mhi_ep_power_up()
1133 kfree(mhi_cntrl->mhi_event); in mhi_ep_power_down()