Lines Matching refs:mod
65 void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *mod, int id) in usbhs_mod_register() argument
69 info->mod[id] = mod; in usbhs_mod_register()
70 mod->priv = priv; in usbhs_mod_register()
81 ret = info->mod[id]; in usbhs_mod_get()
90 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_mod_is_host() local
93 if (!mod) in usbhs_mod_is_host()
96 return info->mod[USBHS_HOST] == mod; in usbhs_mod_is_host()
109 struct usbhs_mod *mod = NULL; in usbhs_mod_change() local
116 mod = info->mod[id]; in usbhs_mod_change()
121 info->curt = mod; in usbhs_mod_change()
194 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_status_get_each_irq() local
211 if (mod) { in usbhs_status_get_each_irq()
216 state->bempsts &= mod->irq_bempsts; in usbhs_status_get_each_irq()
217 state->brdysts &= mod->irq_brdysts; in usbhs_status_get_each_irq()
315 void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod) in usbhs_irq_callback_update() argument
344 if (mod) { in usbhs_irq_callback_update()
348 if (mod->irq_ctrl_stage) in usbhs_irq_callback_update()
351 if (mod->irq_dev_state) in usbhs_irq_callback_update()
354 if (mod->irq_empty && mod->irq_bempsts) { in usbhs_irq_callback_update()
355 usbhs_write(priv, BEMPENB, mod->irq_bempsts); in usbhs_irq_callback_update()
359 if (mod->irq_ready && mod->irq_brdysts) { in usbhs_irq_callback_update()
360 usbhs_write(priv, BRDYENB, mod->irq_brdysts); in usbhs_irq_callback_update()
368 if (mod->irq_attch) in usbhs_irq_callback_update()
371 if (mod->irq_dtch) in usbhs_irq_callback_update()
374 if (mod->irq_sign) in usbhs_irq_callback_update()
377 if (mod->irq_sack) in usbhs_irq_callback_update()