Lines Matching refs:ctl

149 fbt_provide_module(void *arg, struct modctl *ctl)  in fbt_provide_module()  argument
151 struct module *mp = ctl->mod_mp; in fbt_provide_module()
155 char *modname = ctl->mod_modname; in fbt_provide_module()
168 if (ctl->mod_requisites != NULL) { in fbt_provide_module()
171 list = (struct modctl_list *)ctl->mod_requisites; in fbt_provide_module()
322 fbt->fbtp_ctl = ctl; in fbt_provide_module()
323 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module()
412 fbt->fbtp_ctl = ctl; in fbt_provide_module()
413 fbt->fbtp_loadcnt = ctl->mod_loadcnt; in fbt_provide_module()
450 struct modctl *ctl = fbt->fbtp_ctl; in fbt_destroy() local
454 if (ctl != NULL && ctl->mod_loadcnt == fbt->fbtp_loadcnt) { in fbt_destroy()
455 if ((ctl->mod_loadcnt == fbt->fbtp_loadcnt && in fbt_destroy()
456 ctl->mod_loaded)) { in fbt_destroy()
458 (ctl->mod_mp))->fbt_nentries--; in fbt_destroy()
493 struct modctl *ctl = fbt->fbtp_ctl; in fbt_enable() local
495 ctl->mod_nenabled++; in fbt_enable()
497 if (!ctl->mod_loaded) { in fbt_enable()
501 fbt->fbtp_name, ctl->mod_modname); in fbt_enable()
512 if (ctl->mod_loadcnt != fbt->fbtp_loadcnt) { in fbt_enable()
516 fbt->fbtp_name, ctl->mod_modname); in fbt_enable()
533 struct modctl *ctl = fbt->fbtp_ctl; in fbt_disable() local
535 ASSERT(ctl->mod_nenabled > 0); in fbt_disable()
536 ctl->mod_nenabled--; in fbt_disable()
538 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_disable()
550 struct modctl *ctl = fbt->fbtp_ctl; in fbt_suspend() local
552 ASSERT(ctl->mod_nenabled > 0); in fbt_suspend()
554 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_suspend()
566 struct modctl *ctl = fbt->fbtp_ctl; in fbt_resume() local
568 ASSERT(ctl->mod_nenabled > 0); in fbt_resume()
570 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_resume()
582 struct modctl *ctl = fbt->fbtp_ctl; in fbt_getargdesc() local
583 struct module *mp = ctl->mod_mp; in fbt_getargdesc()
591 if (!ctl->mod_loaded || (ctl->mod_loadcnt != fbt->fbtp_loadcnt)) in fbt_getargdesc()