Searched refs:m16 (Results 1 – 14 of 14) sorted by relevance
172 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()
184 …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()
178 … 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
492 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()
93 option.SetSeedId(HostSwap16(aAddress.mFields.m16[7])); in ProcessOption()
113 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()
54 iid.mFields.m16[3] = aIndex; in generateRandomIid()
252 … Block &BlockAt(uint16_t aOffset) { return *reinterpret_cast<Block *>(&mMemory.m16[aOffset / 2]); } in BlockAt()343 uint16_t m16[kMemorySize / sizeof(uint16_t)]; member
424 mHeader.mData.m16[kRouteLifetimeIdx] = HostSwap16(aRouterLifetime); in SetRouterLifetime()435 …uint16_t GetRouterLifetime(void) const { return HostSwap16(mHeader.mData.m16[kRouteLifetimeIdx]); } in GetRouterLifetime()
98 uint16_t m16[OT_ICMP6_HEADER_DATA_SIZE / sizeof(uint16_t)]; member
72 uint16_t m16[OT_IP6_IID_SIZE / sizeof(uint16_t)]; ///< 16-bit fields member132 uint16_t m16[OT_IP6_ADDRESS_SIZE / sizeof(uint16_t)]; ///< 16-bit fields member
72 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
807 aIp6Header.GetSource().mFields.m16[0] = HostSwap16(0xfe80); in DecompressBaseHeader()852 aIp6Header.GetDestination().mFields.m16[0] = HostSwap16(0xfe80); in DecompressBaseHeader()
153 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()