Home
last modified time | relevance | path

Searched refs:m16 (Results 1 – 14 of 14) sorted by relevance

/openthread-2.7.6/src/core/net/
Dicmp6.hpp172 uint16_t GetId(void) const { return HostSwap16(mData.m16[0]); } in GetId()
180 void SetId(uint16_t aId) { mData.m16[0] = HostSwap16(aId); } in SetId()
188 uint16_t GetSequence(void) const { return HostSwap16(mData.m16[1]); } in GetSequence()
196 void SetSequence(uint16_t aSequence) { mData.m16[1] = HostSwap16(aSequence); } in SetSequence()
Dip6_address.cpp184 …return (mFields.m32[0] == HostSwap32(0xfdffffff) && mFields.m16[2] == HostSwap16(0xffff) && mField… in IsReservedSubnetAnycast()
229 mFields.m16[2] = HostSwap16(0xfe00); in SetToLocator()
230 mFields.m16[3] = HostSwap16(aLocator); in SetToLocator()
236 return (mFields.m32[0] == HostSwap32(0x000000ff) && mFields.m16[2] == HostSwap16(0xfe00)); in IsLocator()
281 return (mFields.m16[0] & HostSwap16(0xffc0)) == HostSwap16(0xfe80); in IsLinkLocal()
589 mFields.m16[index++] = HostSwap16(static_cast<uint16_t>(value)); in FromString()
612 …memmove(&mFields.m16[endIndex - wordsToCopy], &mFields.m16[colonIndex], wordsToCopy * sizeof(uint1… in FromString()
613 memset(&mFields.m16[colonIndex], 0, (endIndex - index) * sizeof(uint16_t)); in FromString()
647 AppendHexWords(aWriter, OT_ARRAY_LENGTH(mFields.m16)); in ToString()
662 aWriter.Append("%x", HostSwap16(mFields.m16[index])); in AppendHexWords()
Dip6_headers.hpp178 … return static_cast<uint8_t>((HostSwap16(mVersionClassFlow.m16[0]) & kDscpMask) >> kDscpOffset); in GetDscp()
189 mVersionClassFlow.m16[0] = HostSwap16((HostSwap16(mVersionClassFlow.m16[0]) & ~kDscpMask) | in SetDscp()
325 uint16_t m16[sizeof(uint32_t) / sizeof(uint16_t)]; member
Dip6_address.hpp492 uint16_t GetLocator(void) const { return HostSwap16(mFields.m16[3]); } in GetLocator()
503 void SetLocator(uint16_t aLocator) { mFields.m16[3] = HostSwap16(aLocator); } in SetLocator()
Dip6_mpl.cpp93 option.SetSeedId(HostSwap16(aAddress.mFields.m16[7])); in ProcessOption()
/openthread-2.7.6/tests/unit/
Dtest_multicast_listeners_table.cpp113 address.mFields.m16[7] = HostSwap16(i); in TestMulticastListenersTable()
154 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable()
157 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable()
Dtest_ndproxy_table.cpp54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
/openthread-2.7.6/src/core/utils/
Dheap.hpp252 … Block &BlockAt(uint16_t aOffset) { return *reinterpret_cast<Block *>(&mMemory.m16[aOffset / 2]); } in BlockAt()
343 uint16_t m16[kMemorySize / sizeof(uint16_t)]; member
/openthread-2.7.6/src/core/border_router/
Drouter_advertisement.hpp424 mHeader.mData.m16[kRouteLifetimeIdx] = HostSwap16(aRouterLifetime); in SetRouterLifetime()
435 …uint16_t GetRouterLifetime(void) const { return HostSwap16(mHeader.mData.m16[kRouteLifetimeIdx]); } in GetRouterLifetime()
/openthread-2.7.6/include/openthread/
Dicmp6.h98 uint16_t m16[OT_ICMP6_HEADER_DATA_SIZE / sizeof(uint16_t)]; member
Dip6.h72 uint16_t m16[OT_IP6_IID_SIZE / sizeof(uint16_t)]; ///< 16-bit fields member
132 uint16_t m16[OT_IP6_ADDRESS_SIZE / sizeof(uint16_t)]; ///< 16-bit fields member
/openthread-2.7.6/src/core/mac/
Dmac_frame.hpp72 void Init(void) { mFields.m16 = 0; } in Init()
89 uint16_t GetId(void) const { return (HostSwap16(mFields.m16) & kIdMask) >> kIdOffset; } in GetId()
99 … mFields.m16 = HostSwap16((HostSwap16(mFields.m16) & ~kIdMask) | ((aId << kIdOffset) & kIdMask)); in SetId()
135 uint16_t m16; member
/openthread-2.7.6/src/core/thread/
Dlowpan.cpp807 aIp6Header.GetSource().mFields.m16[0] = HostSwap16(0xfe80); in DecompressBaseHeader()
852 aIp6Header.GetDestination().mFields.m16[0] = HostSwap16(0xfe80); in DecompressBaseHeader()
Dmle.cpp153 mLinkLocalAllThreadNodes.GetAddress().mFields.m16[0] = HostSwap16(0xff32); in Mle()
154 mLinkLocalAllThreadNodes.GetAddress().mFields.m16[7] = HostSwap16(0x0001); in Mle()
157 mRealmLocalAllThreadNodes.GetAddress().mFields.m16[0] = HostSwap16(0xff33); in Mle()
158 mRealmLocalAllThreadNodes.GetAddress().mFields.m16[7] = HostSwap16(0x0001); in Mle()