Lines Matching full:md
50 void t7xx_fsm_notifier_register(struct t7xx_modem *md, struct t7xx_fsm_notifier *notifier) in t7xx_fsm_notifier_register() argument
52 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_notifier_register()
60 void t7xx_fsm_notifier_unregister(struct t7xx_modem *md, struct t7xx_fsm_notifier *notifier) in t7xx_fsm_notifier_unregister() argument
63 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_notifier_unregister()
74 static void fsm_state_notify(struct t7xx_modem *md, enum md_state state) in fsm_state_notify() argument
76 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in fsm_state_notify()
96 t7xx_port_proxy_md_status_notify(ctl->md->port_prox, state); in t7xx_fsm_broadcast_state()
97 fsm_state_notify(ctl->md, state); in t7xx_fsm_broadcast_state()
118 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_flush_event_cmd_qs()
172 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in fsm_routine_exception()
191 t7xx_pci_pm_exp_detected(ctl->md->t7xx_dev); in fsm_routine_exception()
192 t7xx_md_exception_handshake(ctl->md); in fsm_routine_exception()
214 return t7xx_md_reset(ctl->md->t7xx_dev); in fsm_stopped_handler()
238 md_ctrl = ctl->md->md_ctrl[CLDMA_ID_MD]; in fsm_routine_stopping()
239 t7xx_dev = ctl->md->t7xx_dev; in fsm_routine_stopping()
245 if (!ctl->md->rgu_irq_asserted) { in fsm_routine_stopping()
265 fsm_state_notify(ctl->md, MD_STATE_READY); in t7xx_fsm_broadcast_ready_state()
266 t7xx_port_proxy_md_status_notify(ctl->md->port_prox, MD_STATE_READY); in t7xx_fsm_broadcast_ready_state()
271 struct t7xx_modem *md = ctl->md; in fsm_routine_ready() local
275 t7xx_md_event_notify(md, FSM_READY); in fsm_routine_ready()
280 struct t7xx_modem *md = ctl->md; in fsm_routine_starting() local
286 t7xx_md_event_notify(md, FSM_START); in fsm_routine_starting()
288 wait_event_interruptible_timeout(ctl->async_hk_wq, md->core_md.ready || ctl->exp_flg, in fsm_routine_starting()
290 dev = &md->t7xx_dev->pdev->dev; in fsm_routine_starting()
293 dev_err(dev, "MD exception is captured during handshake\n"); in fsm_routine_starting()
295 if (!md->core_md.ready) { in fsm_routine_starting()
296 dev_err(dev, "MD handshake timeout\n"); in fsm_routine_starting()
297 if (md->core_md.handshake_ongoing) in fsm_routine_starting()
304 t7xx_pci_pm_init_late(md->t7xx_dev); in fsm_routine_starting()
311 struct t7xx_modem *md = ctl->md; in fsm_routine_start() local
315 if (!md) in fsm_routine_start()
325 t7xx_md_event_notify(md, FSM_PRE_START); in fsm_routine_start()
329 false, IREG_BASE(md->t7xx_dev) + T7XX_PCIE_MISC_DEV_STATUS); in fsm_routine_start()
331 struct device *dev = &md->t7xx_dev->pdev->dev; in fsm_routine_start()
338 t7xx_cldma_hif_hw_init(md->md_ctrl[CLDMA_ID_MD]); in fsm_routine_start()
430 struct device *dev = &ctl->md->t7xx_dev->pdev->dev; in t7xx_fsm_append_event()
503 void t7xx_fsm_reset(struct t7xx_modem *md) in t7xx_fsm_reset() argument
505 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_reset()
512 int t7xx_fsm_init(struct t7xx_modem *md) in t7xx_fsm_init() argument
514 struct device *dev = &md->t7xx_dev->pdev->dev; in t7xx_fsm_init()
521 md->fsm_ctl = ctl; in t7xx_fsm_init()
522 ctl->md = md; in t7xx_fsm_init()
539 void t7xx_fsm_uninit(struct t7xx_modem *md) in t7xx_fsm_uninit() argument
541 struct t7xx_fsm_ctl *ctl = md->fsm_ctl; in t7xx_fsm_uninit()