Lines Matching refs:mpfe
457 mac_policy_fastpath_enable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_enable() argument
460 MPASS(mpfe->count >= 0); in mac_policy_fastpath_enable()
461 mpfe->count++; in mac_policy_fastpath_enable()
462 if (mpfe->count == 1) { in mac_policy_fastpath_enable()
463 MPASS(*mpfe->flag == false); in mac_policy_fastpath_enable()
464 *mpfe->flag = true; in mac_policy_fastpath_enable()
469 mac_policy_fastpath_disable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_disable() argument
472 MPASS(mpfe->count >= 1); in mac_policy_fastpath_disable()
473 mpfe->count--; in mac_policy_fastpath_disable()
474 if (mpfe->count == 0) { in mac_policy_fastpath_disable()
475 MPASS(*mpfe->flag == true); in mac_policy_fastpath_disable()
476 *mpfe->flag = false; in mac_policy_fastpath_disable()
483 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_register() local
491 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_register()
492 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_register()
493 mac_policy_fastpath_enable(mpfe); in mac_policy_fastpath_register()
500 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_unregister() local
508 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_unregister()
509 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_unregister()
510 mac_policy_fastpath_disable(mpfe); in mac_policy_fastpath_unregister()