Lines Matching refs:mpfe
451 mac_policy_fastpath_enable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_enable() argument
454 MPASS(mpfe->count >= 0); in mac_policy_fastpath_enable()
455 mpfe->count++; in mac_policy_fastpath_enable()
456 if (mpfe->count == 1) { in mac_policy_fastpath_enable()
457 MPASS(*mpfe->flag == false); in mac_policy_fastpath_enable()
458 *mpfe->flag = true; in mac_policy_fastpath_enable()
463 mac_policy_fastpath_disable(struct mac_policy_fastpath_elem *mpfe) in mac_policy_fastpath_disable() argument
466 MPASS(mpfe->count >= 1); in mac_policy_fastpath_disable()
467 mpfe->count--; in mac_policy_fastpath_disable()
468 if (mpfe->count == 0) { in mac_policy_fastpath_disable()
469 MPASS(*mpfe->flag == true); in mac_policy_fastpath_disable()
470 *mpfe->flag = false; in mac_policy_fastpath_disable()
477 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_register() local
485 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_register()
486 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_register()
487 mac_policy_fastpath_enable(mpfe); in mac_policy_fastpath_register()
494 struct mac_policy_fastpath_elem *mpfe; in mac_policy_fastpath_unregister() local
502 mpfe = &mac_policy_fastpath_array[i]; in mac_policy_fastpath_unregister()
503 if (ops[mpfe->offset] != NULL) in mac_policy_fastpath_unregister()
504 mac_policy_fastpath_disable(mpfe); in mac_policy_fastpath_unregister()