Lines Matching refs:mpfe
463 mac_policy_fastpath_enable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_enable() argument
466 MPASS(mpfe->count >= 0); in mac_policy_fastpath_enable()
467 mpfe->count++; in mac_policy_fastpath_enable()
468 if (mpfe->count == 1) { in mac_policy_fastpath_enable()
469 MPASS(*mpfe->flag == false); in mac_policy_fastpath_enable()
470 *mpfe->flag = true; in mac_policy_fastpath_enable()
475 mac_policy_fastpath_disable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_disable() argument
478 MPASS(mpfe->count >= 1); in mac_policy_fastpath_disable()
479 mpfe->count--; in mac_policy_fastpath_disable()
480 if (mpfe->count == 0) { in mac_policy_fastpath_disable()
481 MPASS(*mpfe->flag == true); in mac_policy_fastpath_disable()
482 *mpfe->flag = false; in mac_policy_fastpath_disable()
489 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_register() local
497 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_register()
498 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_register()
499 mac_policy_fastpath_enable(mpfe); in mac_policy_fastpath_register()
506 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_unregister() local
514 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_unregister()
515 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_unregister()
516 mac_policy_fastpath_disable(mpfe); in mac_policy_fastpath_unregister()