Home
last modified time | relevance | path

Searched refs:kPreferenceOffset (Results 1 – 4 of 4) sorted by relevance

/external/openthread/src/core/thread/
Dnetwork_data_types.cpp127 …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()
Dnetwork_data_tlvs.hpp517 …eferenceFromFlags(uint8_t aFlags) { return RoutePreferenceFromValue(aFlags >> kPreferenceOffset); } in PreferenceFromFlags()
520 static constexpr uint8_t kPreferenceOffset = 6; member in ot::NetworkData::HasRouteEntry
521 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::BorderRouterEntry
1088 static constexpr uint16_t kPreferenceMask = 3 << kPreferenceOffset;
/external/openthread/src/core/net/
Dnd6.cpp125 …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()
Dnd6.hpp442 static constexpr uint8_t kPreferenceOffset = 3; member in ot::Ip6::Nd::RouteInfoOption
443 static constexpr uint8_t kPreferenceMask = 3 << kPreferenceOffset;
546 static constexpr uint8_t kPreferenceOffset = 3; member in ot::Ip6::Nd::RouterAdvertMessage::Header
547 static constexpr uint8_t kPreferenceMask = 3 << kPreferenceOffset;