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