Lines Matching refs: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;
303 void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod)
332 if (mod) {
336 if (mod->irq_ctrl_stage)
339 if (mod->irq_dev_state)
342 if (mod->irq_empty && mod->irq_bempsts) {
343 usbhs_write(priv, BEMPENB, mod->irq_bempsts);
347 if (mod->irq_ready && mod->irq_brdysts) {
348 usbhs_write(priv, BRDYENB, mod->irq_brdysts);
356 if (mod->irq_attch)
359 if (mod->irq_dtch)
362 if (mod->irq_sign)
365 if (mod->irq_sack)