Searched refs:kBitsPerByte (Results 1 – 18 of 18) sorted by relevance
41 static constexpr uint8_t kBitsPerByte = 8; ///< Number of bits in a byte. variable50 #define BitSizeOf(aItem) (sizeof(aItem) * kBitsPerByte)59 …ne BytesForBitSize(aBitSize) static_cast<uint8_t>(((aBitSize) + (kBitsPerByte - 1)) / kBitsPerByte)
329 uint8_t index = bit / kBitsPerByte; in CheckPrefix()330 uint8_t mask = (0x80 >> (bit % kBitsPerByte)); in CheckPrefix()350 uint8_t index = bit / kBitsPerByte; in CheckPrefixInIid()351 uint8_t mask = (0x80 >> (bit % kBitsPerByte)); in CheckPrefixInIid()369 for (size_t bit = aPrefixLength; bit < sizeof(Ip6::Address) * kBitsPerByte; bit++) in CheckInterfaceId()371 uint8_t index = bit / kBitsPerByte; in CheckInterfaceId()372 uint8_t mask = (0x80 >> (bit % kBitsPerByte)); in CheckInterfaceId()406 … for (size_t prefixLength = 0; prefixLength <= sizeof(Ip6::Address) * kBitsPerByte; prefixLength++) in TestIp6AddressSetPrefix()
166 bitOffset = Random::NonCrypto::GetUint8InRange(0, kBitsPerByte); in CorruptMessage()
341 for (uint16_t type = 0; type < bitmap.GetBitmapLength() * kBitsPerByte; type++) in ParseFrom()
366 uint8_t GetNumBits(void) const { return (mLength * kBitsPerByte); } in GetNumBits()368 uint8_t BitIndex(uint8_t aBit) const { return (mLength - 1 - (aBit / kBitsPerByte)); } in BitIndex()369 … uint8_t BitFlag(uint8_t aBit) const { return static_cast<uint8_t>(1U << (aBit % kBitsPerByte)); } in BitFlag()
134 while (remaining >= kBitsPerByte) in CopyTo()137 value >>= kBitsPerByte; in CopyTo()139 remaining -= kBitsPerByte; in CopyTo()
35 static constexpr uint8_t kBitsPerByte = 8; ///< Number of bits in a byte. variable100 static_assert(OT_ARRAY_LENGTH(mSupportedProps) <= sizeof(mChangedSet) * kBitsPerByte, in GetNumEntries()
325 static constexpr uint8_t kBitsPerByte = 8; ///< Number of bits in a byte. member in ot::Ncp::NcpBase
2537 uint8_t channelNum = sizeof(channelMask) * kBitsPerByte; in HandlePropertyGet()
123 …isSmaller = GetBytes()[matchedLength / kBitsPerByte] < aOther.GetBytes()[matchedLength / kBitsPerB… in operator <()141 matchedLength += kBitsPerByte; in MatchLength()414 uint8_t numBytes = aNumBits / kBitsPerByte; in CopyBits()415 uint8_t extraBits = aNumBits % kBitsPerByte; in CopyBits()529 ip6Index = aPrefix.GetLength() / kBitsPerByte; in SynthesizeFromIp4Address()
73 static constexpr uint8_t kLength = kSize * kBitsPerByte; ///< Length of Network Prefix in bits.94 …static constexpr uint8_t kMaxLength = kMaxSize * kBitsPerByte; ///< Max length of a prefix in bits.
108 ip6Index = aPrefixLength / kBitsPerByte; in ExtractFromIp6Address()
1351 uint8_t index = (type / kBitsPerByte); in AddType()1352 uint16_t mask = (0x80 >> (type % kBitsPerByte)); in AddType()1363 uint8_t index = (type / kBitsPerByte); in ContainsType()1364 uint16_t mask = (0x80 >> (type % kBitsPerByte)); in ContainsType()
833 static constexpr uint8_t kMic32Size = 32 / kBitsPerByte;834 static constexpr uint8_t kMic64Size = 64 / kBitsPerByte;835 static constexpr uint8_t kMic128Size = 128 / kBitsPerByte;
2704 …trasnferTime = DivideAndRoundUp<uint32_t>(aFrameSize * kBitsPerByte * Time::kOneSecondInUsec, busS… in CalculateRadioBusTransferTime()
713 static constexpr uint8_t kBitsPerByte = 8; in ProcessSpinelSpeed() local760 speed = static_cast<uint32_t>((sumLength * kBitsPerByte * kUsPerSec) / sumTime); in ProcessSpinelSpeed()
595 aUintValue <<= kBitsPerByte; in ReadOptionValue()
113 …VerifyOrExit((mbedtls_aes_setkey_enc(context, key.GetBytes(), (key.GetLength() * kBitsPerByte)) ==… in otPlatCryptoAesSetKey()