Lines Matching refs:mpfe
458 mac_policy_fastpath_enable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_enable() argument
461 MPASS(mpfe->count >= 0); in mac_policy_fastpath_enable()
462 mpfe->count++; in mac_policy_fastpath_enable()
463 if (mpfe->count == 1) { in mac_policy_fastpath_enable()
464 MPASS(*mpfe->flag == false); in mac_policy_fastpath_enable()
465 *mpfe->flag = true; in mac_policy_fastpath_enable()
470 mac_policy_fastpath_disable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_disable() argument
473 MPASS(mpfe->count >= 1); in mac_policy_fastpath_disable()
474 mpfe->count--; in mac_policy_fastpath_disable()
475 if (mpfe->count == 0) { in mac_policy_fastpath_disable()
476 MPASS(*mpfe->flag == true); in mac_policy_fastpath_disable()
477 *mpfe->flag = false; in mac_policy_fastpath_disable()
484 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_register() local
492 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_register()
493 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_register()
494 mac_policy_fastpath_enable(mpfe); in mac_policy_fastpath_register()
501 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_unregister() local
509 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_unregister()
510 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_unregister()
511 mac_policy_fastpath_disable(mpfe); in mac_policy_fastpath_unregister()