Lines Matching refs:mask
375 ifnet_set_flags(ifnet_t interface, u_int16_t new_flags, u_int16_t mask)
385 if ((mask & IFF_UP) != 0) {
390 interface->if_flags = (new_flags & mask) | (interface->if_flags & ~mask);
430 ifnet_awdl_check_eflags(ifnet_t ifp, u_int32_t *new_eflags, u_int32_t *mask)
436 eflags = (*new_eflags & *mask) | (ifp->if_eflags & ~(*mask));
444 *mask |= IFEF_AWDL_MASK;
448 *mask |= IFEF_AWDL_MASK;
455 ifnet_set_eflags(ifnet_t interface, u_int32_t new_flags, u_int32_t mask)
464 if (ifnet_awdl_check_eflags(interface, &new_flags, &mask) != 0) {
469 (new_flags & mask) | (interface->if_eflags & ~mask);
482 ifnet_set_idle_flags_locked(ifnet_t ifp, u_int32_t new_flags, u_int32_t mask)
499 ifp->if_idle_new_flags_mask = mask;
506 ifp->if_idle_flags = (new_flags & mask) | (ifp->if_idle_flags & ~mask);
528 ifnet_set_idle_flags(ifnet_t ifp, u_int32_t new_flags, u_int32_t mask)
534 err = ifnet_set_idle_flags_locked(ifp, new_flags, mask);
609 u_int32_t mask)
618 tmp = (new_caps & mask) | (ifp->if_capabilities & ~mask);
637 u_int32_t mask)
648 tmp = (new_caps & mask) | (ifp->if_capenable & ~mask);
792 ifnet_set_wake_flags(ifnet_t interface, u_int32_t properties, u_int32_t mask)
804 if ((properties & mask) & ~IF_WAKE_VALID_FLAGS)
810 (properties & mask) | (interface->if_wake_properties & ~mask);