• Home
  • Raw
  • Download

Lines Matching refs:mod

75 void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *mod, int id)  in usbhs_mod_register()  argument
79 info->mod[id] = mod; in usbhs_mod_register()
80 mod->priv = priv; in usbhs_mod_register()
91 ret = info->mod[id]; in usbhs_mod_get()
100 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_mod_is_host() local
103 if (!mod) in usbhs_mod_is_host()
106 return info->mod[USBHS_HOST] == mod; in usbhs_mod_is_host()
119 struct usbhs_mod *mod = NULL; in usbhs_mod_change() local
126 mod = info->mod[id]; in usbhs_mod_change()
131 info->curt = mod; in usbhs_mod_change()
214 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_status_get_each_irq() local
224 if (mod) { in usbhs_status_get_each_irq()
229 state->bempsts &= mod->irq_bempsts; in usbhs_status_get_each_irq()
230 state->brdysts &= mod->irq_brdysts; in usbhs_status_get_each_irq()
317 void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod) in usbhs_irq_callback_update() argument
349 if (mod) { in usbhs_irq_callback_update()
353 if (mod->irq_ctrl_stage) in usbhs_irq_callback_update()
356 if (mod->irq_empty && mod->irq_bempsts) { in usbhs_irq_callback_update()
357 usbhs_write(priv, BEMPENB, mod->irq_bempsts); in usbhs_irq_callback_update()
361 if (mod->irq_ready && mod->irq_brdysts) { in usbhs_irq_callback_update()
362 usbhs_write(priv, BRDYENB, mod->irq_brdysts); in usbhs_irq_callback_update()
369 if (mod->irq_attch) in usbhs_irq_callback_update()
372 if (mod->irq_dtch) in usbhs_irq_callback_update()
375 if (mod->irq_sign) in usbhs_irq_callback_update()
378 if (mod->irq_sack) in usbhs_irq_callback_update()