Lines Matching refs:mhi_event
162 struct mhi_event *mhi_event; in mhi_ready_state_transition() local
216 mhi_event = mhi_cntrl->mhi_event; in mhi_ready_state_transition()
217 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_ready_state_transition()
218 struct mhi_ring *ring = &mhi_event->ring; in mhi_ready_state_transition()
221 if (mhi_event->offload_ev || mhi_event->hw_ring) in mhi_ready_state_transition()
230 spin_lock_irq(&mhi_event->lock); in mhi_ready_state_transition()
231 mhi_ring_er_db(mhi_event); in mhi_ready_state_transition()
232 spin_unlock_irq(&mhi_event->lock); in mhi_ready_state_transition()
270 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_pm_m0_transition() local
274 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_pm_m0_transition()
275 if (mhi_event->offload_ev) in mhi_pm_m0_transition()
278 spin_lock_irq(&mhi_event->lock); in mhi_pm_m0_transition()
279 mhi_ring_er_db(mhi_event); in mhi_pm_m0_transition()
280 spin_unlock_irq(&mhi_event->lock); in mhi_pm_m0_transition()
381 struct mhi_event *mhi_event; in mhi_pm_mission_mode_transition() local
420 mhi_event = mhi_cntrl->mhi_event; in mhi_pm_mission_mode_transition()
421 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_pm_mission_mode_transition()
422 struct mhi_ring *ring = &mhi_event->ring; in mhi_pm_mission_mode_transition()
424 if (mhi_event->offload_ev || !mhi_event->hw_ring) in mhi_pm_mission_mode_transition()
432 spin_lock_irq(&mhi_event->lock); in mhi_pm_mission_mode_transition()
434 mhi_ring_er_db(mhi_event); in mhi_pm_mission_mode_transition()
435 spin_unlock_irq(&mhi_event->lock); in mhi_pm_mission_mode_transition()
459 struct mhi_event *mhi_event; in mhi_pm_disable_transition() local
500 mhi_event = mhi_cntrl->mhi_event; in mhi_pm_disable_transition()
501 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_pm_disable_transition()
502 if (mhi_event->offload_ev) in mhi_pm_disable_transition()
504 disable_irq(mhi_cntrl->irq[mhi_event->irq]); in mhi_pm_disable_transition()
505 tasklet_kill(&mhi_event->task); in mhi_pm_disable_transition()
534 mhi_event = mhi_cntrl->mhi_event; in mhi_pm_disable_transition()
537 mhi_event++) { in mhi_pm_disable_transition()
538 struct mhi_ring *ring = &mhi_event->ring; in mhi_pm_disable_transition()
541 if (mhi_event->offload_ev) in mhi_pm_disable_transition()
571 struct mhi_event *mhi_event; in mhi_pm_sys_error_transition() local
634 mhi_event = mhi_cntrl->mhi_event; in mhi_pm_sys_error_transition()
635 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_pm_sys_error_transition()
636 if (mhi_event->offload_ev) in mhi_pm_sys_error_transition()
638 tasklet_kill(&mhi_event->task); in mhi_pm_sys_error_transition()
667 mhi_event = mhi_cntrl->mhi_event; in mhi_pm_sys_error_transition()
670 mhi_event++) { in mhi_pm_sys_error_transition()
671 struct mhi_ring *ring = &mhi_event->ring; in mhi_pm_sys_error_transition()
674 if (mhi_event->offload_ev) in mhi_pm_sys_error_transition()
1064 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_async_power_up() local
1125 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_async_power_up()
1126 if (mhi_event->offload_ev) in mhi_async_power_up()
1129 enable_irq(mhi_cntrl->irq[mhi_event->irq]); in mhi_async_power_up()