Home
last modified time | relevance | path

Searched refs:uint16_t (Results 1 – 25 of 638) sorted by relevance

12345678910>>...26

/openthread-latest/src/core/thread/
Dlowpan.hpp148 uint16_t aDatagramLength);
189 Ip6::Ecn DecompressEcn(const Message &aMessage, uint16_t aOffset) const;
200 void MarkCompressedEcn(Message &aMessage, uint16_t aOffset);
203 static constexpr uint16_t kHcDispatch = 3 << 13;
204 static constexpr uint16_t kHcDispatchMask = 7 << 13;
206 static constexpr uint16_t kHcTrafficClass = 1 << 11;
207 static constexpr uint16_t kHcFlowLabel = 2 << 11;
208 static constexpr uint16_t kHcTrafficFlow = 3 << 11;
209 static constexpr uint16_t kHcTrafficFlowMask = 3 << 11;
210 static constexpr uint16_t kHcNextHeader = 1 << 10;
[all …]
Dnetwork_diagnostic_tlvs.hpp149 typedef UintTlvInfo<Tlv::kAddress16, uint16_t> Address16Tlv;
179 typedef UintTlvInfo<Tlv::kSupplyVoltage, uint16_t> SupplyVoltageTlv;
199 typedef UintTlvInfo<Tlv::kVersion, uint16_t> VersionTlv;
234 typedef UintTlvInfo<Tlv::kQueryId, uint16_t> QueryIdTlv;
533uint16_t GetChildId(void) const { return (GetTimeoutChildId() & kChildIdMask) >> kChildIdOffset; } in GetChildId()
540 void SetChildId(uint16_t aChildId) in SetChildId()
569 static constexpr uint16_t kTimeoutMask = 0x1f << kTimeoutOffset;
570 static constexpr uint16_t kLqiMask = 0x3 << kLqiOffset;
571 static constexpr uint16_t kChildIdMask = 0x1ff << kChildIdOffset;
573 uint16_t GetTimeoutChildId(void) const { return BigEndian::HostSwap16(mTimeoutChildId); } in GetTimeoutChildId()
[all …]
Dmle_types.hpp76 constexpr uint16_t kUdpPort = 19788; ///< MLE UDP Port
78 constexpr uint16_t kMaxChildren = OPENTHREAD_CONFIG_MLE_MAX_CHILDREN; ///< Maximum number of ch…
79 constexpr uint16_t kMinChildId = 1; ///< Minimum Child ID
80 constexpr uint16_t kMaxChildId = 511; ///< Maximum Child ID
85 constexpr uint16_t kInvalidRloc16 = Mac::kShortAddrInvalid; ///< Invalid RLOC16.
102 constexpr uint16_t kParentReselectTimeout = OPENTHREAD_CONFIG_PARENT_SEARCH_RESELECT_TIMEOUT;
156 constexpr uint16_t kAloc16Leader = 0xfc00;
157 constexpr uint16_t kAloc16DhcpAgentStart = 0xfc01;
158 constexpr uint16_t kAloc16DhcpAgentEnd = 0xfc0f;
159 constexpr uint16_t kAloc16ServiceStart = 0xfc10;
[all …]
Daddress_resolver.hpp135 void RemoveEntriesForRloc16(uint16_t aRloc16);
157 void ReplaceEntriesForRloc16(uint16_t aOldRloc16, uint16_t aNewRloc16);
169 void UpdateSnoopedCacheEntry(const Ip6::Address &aEid, uint16_t aRloc16, uint16_t aDest);
182 Error Resolve(const Ip6::Address &aEid, uint16_t &aRloc16) in Resolve()
197 uint16_t LookUp(const Ip6::Address &aEid);
232 static constexpr uint16_t kCacheEntries = OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES;
233 static constexpr uint16_t kMaxNonEvictableSnoopedEntries =
237 …static constexpr uint16_t kAddressQueryTimeout = OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_TIM…
238 …static constexpr uint16_t kAddressQueryInitialRetryDelay = OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_INI…
239 …static constexpr uint16_t kAddressQueryMaxRetryDelay = OPENTHREAD_CONFIG_TMF_ADDRESS_QUERY_MAX…
[all …]
/openthread-latest/src/core/net/
Ddns_types.hpp87 uint16_t GetMessageId(void) const { return BigEndian::HostSwap16(mMessageId); } in GetMessageId()
94 void SetMessageId(uint16_t aMessageId) { mMessageId = BigEndian::HostSwap16(aMessageId); } in SetMessageId()
301 uint16_t GetQuestionCount(void) const { return BigEndian::HostSwap16(mQdCount); } in GetQuestionCount()
308 void SetQuestionCount(uint16_t aCount) { mQdCount = BigEndian::HostSwap16(aCount); } in SetQuestionCount()
315 uint16_t GetAnswerCount(void) const { return BigEndian::HostSwap16(mAnCount); } in GetAnswerCount()
322 void SetAnswerCount(uint16_t aCount) { mAnCount = BigEndian::HostSwap16(aCount); } in SetAnswerCount()
329 uint16_t GetAuthorityRecordCount(void) const { return BigEndian::HostSwap16(mNsCount); } in GetAuthorityRecordCount()
336 void SetAuthorityRecordCount(uint16_t aCount) { mNsCount = BigEndian::HostSwap16(aCount); } in SetAuthorityRecordCount()
343 uint16_t GetAdditionalRecordCount(void) const { return BigEndian::HostSwap16(mArCount); } in GetAdditionalRecordCount()
350 void SetAdditionalRecordCount(uint16_t aCount) { mArCount = BigEndian::HostSwap16(aCount); } in SetAdditionalRecordCount()
[all …]
Ddhcp6.hpp60 constexpr uint16_t kDhcpClientPort = 546;
61 constexpr uint16_t kDhcpServerPort = 547;
62 constexpr uint16_t kHardwareTypeEui64 = 27;
63 constexpr uint16_t kHardwareTypeEthernet = 1;
95 static constexpr uint16_t kSize = 3; ///< Transaction Id size (in bytes).
157 enum Code : uint16_t
211 void SetCode(Code aCode) { mCode = BigEndian::HostSwap16(static_cast<uint16_t>(aCode)); } in SetCode()
218 uint16_t GetLength(void) const { return BigEndian::HostSwap16(mLength); } in GetLength()
225 void SetLength(uint16_t aLength) { mLength = BigEndian::HostSwap16(aLength); } in SetLength()
228 uint16_t mCode;
[all …]
Dudp6.hpp204 Message *NewMessage(uint16_t aReserved);
214 Message *NewMessage(uint16_t aReserved, const Message::Settings &aSettings);
252 Error Bind(uint16_t aPort);
280 Error Connect(uint16_t aPort);
398 …static constexpr uint16_t kSourcePortFieldOffset = 0; ///< Byte offset of Source Port field in UDP…
399 …static constexpr uint16_t kDestPortFieldOffset = 2; ///< Byte offset of Destination Port field i…
400 …static constexpr uint16_t kLengthFieldOffset = 4; ///< Byte offset of Length field in UDP head…
401 …static constexpr uint16_t kChecksumFieldOffset = 6; ///< Byte offset of Checksum field in UDP he…
408 uint16_t GetSourcePort(void) const { return BigEndian::HostSwap16(mSourcePort); } in GetSourcePort()
415 void SetSourcePort(uint16_t aPort) { mSourcePort = BigEndian::HostSwap16(aPort); } in SetSourcePort()
[all …]
Dip6_headers.hpp154 … ((static_cast<uint16_t>(aTc) << kTrafficClassOffset) & kTrafficClassMask)); in SetTrafficClass()
175 … ((static_cast<uint16_t>(aDscp) << kDscpOffset) & kDscpMask)); in SetDscp()
215 uint16_t GetPayloadLength(void) const { return BigEndian::HostSwap16(mPayloadLength); } in GetPayloadLength()
222 void SetPayloadLength(uint16_t aLength) { mPayloadLength = BigEndian::HostSwap16(aLength); } in SetPayloadLength()
321 static constexpr uint16_t kTrafficClassMask = 0x0ff0; // Use with `mVerTcFlow.m16[0]`
323 static constexpr uint16_t kDscpMask = 0x0fc0; // Use with `mVerTcFlow.m16[0]`
332 uint16_t m16[sizeof(uint32_t) / sizeof(uint16_t)];
335 uint16_t mPayloadLength;
354 static constexpr uint16_t kLengthUnitSize = 8;
393 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize()
[all …]
Ddhcp6_client.hpp100 uint16_t mPrefixAgentRloc;
110 void Solicit(uint16_t aRloc16);
112 void AddIdentityAssociation(uint16_t aRloc16, otIp6Prefix &aIp6Prefix);
113 void RemoveIdentityAssociation(uint16_t aRloc16, otIp6Prefix &aIp6Prefix);
119 Error AppendIaNa(Message &aMessage, uint16_t aRloc16);
120 Error AppendIaAddress(Message &aMessage, uint16_t aRloc16);
127 uint16_t FindOption(Message &aMessage, uint16_t aOffset, uint16_t aLength, Code aCode);
128 Error ProcessServerIdentifier(Message &aMessage, uint16_t aOffset);
129 Error ProcessClientIdentifier(Message &aMessage, uint16_t aOffset);
130 Error ProcessIaNa(Message &aMessage, uint16_t aOffset);
[all …]
/openthread-latest/third_party/mbedtls/repo/3rdparty/everest/include/everest/kremlib/
DFStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.h151 extern Prims_int FStar_UInt16_v(uint16_t x0);
153 extern uint16_t FStar_UInt16_uint_to_t(Prims_int x0);
155 extern uint16_t FStar_UInt16_add(uint16_t x0, uint16_t x1);
157 extern uint16_t FStar_UInt16_add_underspec(uint16_t x0, uint16_t x1);
159 extern uint16_t FStar_UInt16_add_mod(uint16_t x0, uint16_t x1);
161 extern uint16_t FStar_UInt16_sub(uint16_t x0, uint16_t x1);
163 extern uint16_t FStar_UInt16_sub_underspec(uint16_t x0, uint16_t x1);
165 extern uint16_t FStar_UInt16_sub_mod(uint16_t x0, uint16_t x1);
167 extern uint16_t FStar_UInt16_mul(uint16_t x0, uint16_t x1);
169 extern uint16_t FStar_UInt16_mul_underspec(uint16_t x0, uint16_t x1);
[all …]
/openthread-latest/src/core/utils/
Dheap.hpp74 uint16_t GetSize(void) const { return mSize; } in GetSize()
81 void SetSize(uint16_t aSize) { mSize = aSize; } in SetSize()
92 uint16_t GetNext(void) const in GetNext()
94 return *reinterpret_cast<const uint16_t *>( in GetNext()
105 void SetNext(uint16_t aNext) in SetNext()
107 *reinterpret_cast<uint16_t *>( in SetNext()
123 uint16_t GetLeftNext(void) const { return *(&mSize - 1); } in GetLeftNext()
142 static constexpr uint16_t kGuardBlockSize = 0xffff; // Size value of the guard block.
144 uint16_t mSize; // Number of bytes in mMemory.
149 uint8_t mMemory[sizeof(uint16_t)];
[all …]
Dflash.hpp82 Error Get(uint16_t aKey, int aIndex, uint8_t *aValue, uint16_t *aValueLength) const;
98 Error Set(uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength);
111 Error Add(uint16_t aKey, const uint8_t *aValue, uint16_t aValueLength);
124 Error Delete(uint16_t aKey, int aIndex);
141 void Init(uint16_t aKey, bool aFirst) in Init()
155 uint16_t GetKey(void) const { return mKey; } in GetKey()
156 void SetKey(uint16_t aKey) { mKey = aKey; } in SetKey()
158 uint16_t GetLength(void) const { return mLength; } in GetLength()
159 void SetLength(uint16_t aLength) { mLength = aLength; } in SetLength()
161 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize()
[all …]
/openthread-latest/src/core/mac/
Dmac_frame.hpp67 enum Type : uint16_t
81 enum Version : uint16_t
134 … static constexpr uint16_t kInfoStringSize = 128; ///< Max chars for `InfoString` (ToInfoString()).
140 static constexpr uint8_t kFcfSize = sizeof(uint16_t);
142 static constexpr uint8_t k154FcsSize = sizeof(uint16_t);
234 uint16_t GetVersion(void) const { return GetFrameControlField() & kFcfFrameVersionMask; } in GetVersion()
498 uint16_t GetLength(void) const { return mLength; } in GetLength()
505 void SetLength(uint16_t aLength) { mLength = aLength; } in SetLength()
526 uint16_t GetPayloadLength(void) const;
533 uint16_t GetMaxPayloadLength(void) const;
[all …]
/openthread-latest/examples/platforms/utils/
Dsoft_source_match_table.c46 static uint16_t sPanId = 0;
48 void utilsSoftSrcMatchSetPanId(uint16_t aPanId) { sPanId = aPanId; } in utilsSoftSrcMatchSetPanId()
54 uint16_t checksum;
60 int16_t utilsSoftSrcMatchShortFindEntry(uint16_t aShortAddress) in utilsSoftSrcMatchShortFindEntry()
63 uint16_t checksum = aShortAddress + sPanId; in utilsSoftSrcMatchShortFindEntry()
93 static inline void addToSrcMatchShortIndirect(uint16_t entry, uint16_t aShortAddress) in addToSrcMatchShortIndirect()
95 uint16_t checksum = aShortAddress + sPanId; in addToSrcMatchShortIndirect()
101 static inline void removeFromSrcMatchShortIndirect(uint16_t entry) in removeFromSrcMatchShortIndirect()
107 otError otPlatRadioAddSrcMatchShortEntry(otInstance *aInstance, uint16_t aShortAddress) in otPlatRadioAddSrcMatchShortEntry()
119 addToSrcMatchShortIndirect((uint16_t)entry, aShortAddress); in otPlatRadioAddSrcMatchShortEntry()
[all …]
Dsettings_ram.c49 static uint16_t sSettingsBufLength;
54 uint16_t key;
55 uint16_t length;
59 void otPlatSettingsInit(otInstance *aInstance, const uint16_t *aSensitiveKeys, uint16_t aSensitiveK… in otPlatSettingsInit()
70 otError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex, uint8_t *aValue, uint16… in otPlatSettingsGet()
74 uint16_t i = 0; in otPlatSettingsGet()
75 uint16_t valueLength = 0; in otPlatSettingsGet()
76 uint16_t readLength; in otPlatSettingsGet()
122 otError otPlatSettingsSet(otInstance *aInstance, uint16_t aKey, const uint8_t *aValue, uint16_t aVa… in otPlatSettingsSet()
124 uint16_t i = 0; in otPlatSettingsSet()
[all …]
/openthread-latest/src/core/common/
Dframe_builder.hpp60 void Init(void *aBuffer, uint16_t aMaxLength);
74 uint16_t GetLength(void) const { return mLength; } in GetLength()
81 uint16_t GetMaxLength(void) const { return mMaxLength; } in GetMaxLength()
91 void SetMaxLength(uint16_t aLength) { mMaxLength = aLength; } in SetMaxLength()
98 uint16_t GetRemainingLength(void) const { return mMaxLength - mLength; } in GetRemainingLength()
109 …bool CanAppend(uint16_t aLength) const { return (static_cast<uint32_t>(mLength) + aLength) <= mMax… in CanAppend()
129 Error AppendBigEndianUint16(uint16_t aUint16);
149 Error AppendLittleEndianUint16(uint16_t aUint16);
170 Error AppendBytes(const void *aBuffer, uint16_t aLength);
194 Error AppendBytesFromMessage(const Message &aMessage, uint16_t aOffset, uint16_t aLength);
[all …]
Dmessage.hpp141 constexpr uint16_t kNumBuffers = OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS;
142 constexpr uint16_t kBufferSize = OPENTHREAD_CONFIG_MESSAGE_BUFFER_SIZE;
219 uint16_t mLength; // Current message length (number of bytes).
220 uint16_t mOffset; // A byte offset within the message.
221 uint16_t mReserved; // Number of reserved bytes (for header).
222 uint16_t mMeshDest; // Used for unicast non-link-local messages.
223 uint16_t mPanId; // PAN ID (used for MLE Discover Request and Response).
242 static constexpr uint16_t kBufferDataSize = kBufferSize - sizeof(otMessageBuffer);
243 static constexpr uint16_t kHeadBufferDataSize = kBufferDataSize - sizeof(Metadata);
497 uint16_t GetLength(void) const { return GetMetadata().mLength; } in GetLength()
[all …]
Dlog.cpp152 void Logger::DumpAtLevel(const char *aModuleName, const char *aText, const void *aData, uint16_t aD… in DumpAtLevel()
161 uint16_t aDataLength);
165 uint16_t aDataLength);
169 uint16_t aDataLength);
173 uint16_t aDataLength);
177 uint16_t aDataLength);
181 uint16_t aDataLength);
187 uint16_t aDataLength) in DumpInModule()
213 constexpr uint16_t kIterTableStartLine = 0; in GenerateNextHexDumpLine()
214 constexpr uint16_t kIterFirstDataLine = NumericLimits<uint16_t>::kMax - 2; in GenerateNextHexDumpLine()
[all …]
Doffset_range.hpp60 void Init(uint16_t aOffset, uint16_t aLength);
70 void InitFromRange(uint16_t aStartOffset, uint16_t aEndOffset);
96 uint16_t GetOffset(void) const { return mOffset; } in GetOffset()
105 uint16_t GetEndOffset(void) const { return (mOffset + mLength); } in GetEndOffset()
112 uint16_t GetLength(void) const { return mLength; } in GetLength()
151 void ShrinkLength(uint16_t aLength);
154 uint16_t mOffset;
155 uint16_t mLength;
/openthread-latest/src/lib/spinel/
Dmulti_frame_buffer.hpp72 bool CanWrite(uint16_t aWriteLength) const { return (mRemainingLength >= aWriteLength); } in CanWrite()
97 void UndoLastWrites(uint16_t aUndoLength) in UndoLastWrites()
111 uint16_t mRemainingLength; ///< Number of remaining bytes available to write.
119 template <uint16_t kSize> class FrameBuffer : public FrameWritePointer
153 uint16_t GetLength(void) const { return static_cast<uint16_t>(mWritePointer - mBuffer); } in GetLength()
174 template <uint16_t kSize> class MultiFrameBuffer : public FrameWritePointer
216 otError SetLength(uint16_t aLength) in SetLength()
223 mRemainingLength = static_cast<uint16_t>(mBuffer + kSize - mWritePointer); in SetLength()
235 uint16_t GetLength(void) const { return static_cast<uint16_t>(mWritePointer - GetFrame()); } in GetLength()
245 otError SetSkipLength(uint16_t aSkipLength) in SetSkipLength()
[all …]
/openthread-latest/tests/unit/
Dtest_flash.cpp65 for (uint16_t key = 0; key < 16; key++) in TestFlash()
67 uint16_t length = key; in TestFlash()
72 for (uint16_t key = 0; key < 16; key++) in TestFlash()
74 uint16_t length = key; in TestFlash()
81 for (uint16_t key = 0; key < 16; key++) in TestFlash()
86 for (uint16_t key = 0; key < 16; key++) in TestFlash()
94 for (uint16_t index = 0; index < 16; index++) in TestFlash()
96 uint16_t length = index; in TestFlash()
101 for (uint16_t index = 0; index < 16; index++) in TestFlash()
103 uint16_t length = index; in TestFlash()
[all …]
/openthread-latest/include/openthread/
Dmesh_diag.h94 uint16_t mRloc16; ///< RLOC16.
96uint16_t mVersion; ///< Thread Version. `OT_MESH_DIAG_VERSION_UNKNOWN` if unkno…
140 uint16_t mRloc16; ///< RLOC16.
233 uint16_t mRloc16; ///< RLOC16.
235 uint16_t mVersion; ///< Version.
239uint16_t mSupervisionInterval; ///< Supervision interval in seconds. Zero to indicate not used.
243 uint16_t mFrameErrorRate; ///< Frame error rate (0x0000->0%, 0xffff->100%).
244 uint16_t mMessageErrorRate; ///< (IPv6) msg error rate (0x0000->0%, 0xffff->100%).
245 uint16_t mQueuedMessageCount; ///< Number of queued messages for indirect tx to child.
246uint16_t mCslPeriod; ///< CSL Period in unit of 10-symbols-time. Zero indicates CSL …
[all …]
Dmessage.h93 uint16_t mPanId; ///< Source PAN ID
139 uint16_t otMessageGetLength(const otMessage *aMessage);
158 otError otMessageSetLength(otMessage *aMessage, uint16_t aLength);
175 uint16_t otMessageGetOffset(const otMessage *aMessage);
191 void otMessageSetOffset(otMessage *aMessage, uint16_t aOffset);
306 otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength);
326 uint16_t otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength);
346 int otMessageWrite(otMessage *aMessage, uint16_t aOffset, const void *aBuf, uint16_t aLength);
361 uint16_t mNumMessages; ///< Number of messages in the queue.
362 uint16_t mNumBuffers; ///< Number of data buffers used by messages in the queue.
[all …]
/openthread-latest/third_party/mbedtls/repo/3rdparty/everest/library/kremlib/
DFStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.c57 uint16_t FStar_UInt16_eq_mask(uint16_t a, uint16_t b) in FStar_UInt16_eq_mask()
59 uint16_t x = a ^ b; in FStar_UInt16_eq_mask()
60 uint16_t minus_x = ~x + (uint16_t)1U; in FStar_UInt16_eq_mask()
61 uint16_t x_or_minus_x = x | minus_x; in FStar_UInt16_eq_mask()
62 uint16_t xnx = x_or_minus_x >> (uint32_t)15U; in FStar_UInt16_eq_mask()
63 return xnx - (uint16_t)1U; in FStar_UInt16_eq_mask()
66 uint16_t FStar_UInt16_gte_mask(uint16_t a, uint16_t b) in FStar_UInt16_gte_mask()
68 uint16_t x = a; in FStar_UInt16_gte_mask()
69 uint16_t y = b; in FStar_UInt16_gte_mask()
70 uint16_t x_xor_y = x ^ y; in FStar_UInt16_gte_mask()
[all …]
/openthread-latest/src/core/crypto/
Dcontext_size.hpp49 constexpr uint16_t kAesContextSize = sizeof(mbedtls_aes_context);
50 constexpr uint16_t kHmacSha256ContextSize = sizeof(mbedtls_md_context_t);
51 constexpr uint16_t kHkdfContextSize = sizeof(otCryptoSha256Hash);
52 constexpr uint16_t kSha256ContextSize = sizeof(mbedtls_sha256_context);
56 constexpr uint16_t kAesContextSize = sizeof(psa_key_id_t);
57 constexpr uint16_t kHmacSha256ContextSize = sizeof(psa_mac_operation_t);
58 constexpr uint16_t kHkdfContextSize = sizeof(psa_key_derivation_operation_t);
59 constexpr uint16_t kSha256ContextSize = sizeof(psa_hash_operation_t);
63 constexpr uint16_t kAesContextSize = OPENTHREAD_CONFIG_AES_CONTEXT_SIZE;
64 constexpr uint16_t kHmacSha256ContextSize = OPENTHREAD_CONFIG_HMAC_SHA256_CONTEXT_SIZE;
[all …]

12345678910>>...26