Searched refs:kPreferenceOffset (Results 1 – 4 of 4) sorted by relevance
127 …tatic_cast<uint16_t>(RoutePreferenceToValue(mPreference)) << BorderRouterEntry::kPreferenceOffset); in ConvertToTlvFlags()156 … = RoutePreferenceFromValue(static_cast<uint8_t>(aFlags >> BorderRouterEntry::kPreferenceOffset)); in SetFromTlvFlags()187 flags |= (RoutePreferenceToValue(mPreference) << HasRouteEntry::kPreferenceOffset); in ConvertToTlvFlags()211 mPreference = RoutePreferenceFromValue(aFlags >> HasRouteEntry::kPreferenceOffset); in SetFromTlvFlags()
517 …eferenceFromFlags(uint8_t aFlags) { return RoutePreferenceFromValue(aFlags >> kPreferenceOffset); } in PreferenceFromFlags()520 static constexpr uint8_t kPreferenceOffset = 6; member in ot::NetworkData::HasRouteEntry521 static constexpr uint8_t kPreferenceMask = 3 << kPreferenceOffset;1083 return RoutePreferenceFromValue(static_cast<uint8_t>(aFlags >> kPreferenceOffset)); in PreferenceFromFlags()1087 static constexpr uint8_t kPreferenceOffset = 14; member in ot::NetworkData::BorderRouterEntry1088 static constexpr uint16_t kPreferenceMask = 3 << kPreferenceOffset;
125 …mResvdPrf |= (NetworkData::RoutePreferenceToValue(aPreference) << kPreferenceOffset) & kPreference… in SetPreference()130 … return NetworkData::RoutePreferenceFromValue((mResvdPrf & kPreferenceMask) >> kPreferenceOffset); in GetPreference()198 return NetworkData::RoutePreferenceFromValue((mFlags & kPreferenceMask) >> kPreferenceOffset); in GetDefaultRouterPreference()204 …mFlags |= (NetworkData::RoutePreferenceToValue(aPreference) << kPreferenceOffset) & kPreferenceMas… in SetDefaultRouterPreference()
442 static constexpr uint8_t kPreferenceOffset = 3; member in ot::Ip6::Nd::RouteInfoOption443 static constexpr uint8_t kPreferenceMask = 3 << kPreferenceOffset;546 static constexpr uint8_t kPreferenceOffset = 3; member in ot::Ip6::Nd::RouterAdvertMessage::Header547 static constexpr uint8_t kPreferenceMask = 3 << kPreferenceOffset;