| /openthread-latest/src/core/common/ |
| D | encoding.hpp | 52 inline constexpr uint16_t Swap16(uint16_t v) in Swap16() argument 54 return (((v & 0x00ffU) << 8) & 0xff00) | (((v & 0xff00U) >> 8) & 0x00ff); in Swap16() 57 inline constexpr uint32_t Swap32(uint32_t v) in Swap32() argument 59 …return ((v & static_cast<uint32_t>(0x000000ffUL)) << 24) | ((v & static_cast<uint32_t>(0x0000ff00U… in Swap32() 60 …((v & static_cast<uint32_t>(0x00ff0000UL)) >> 8) | ((v & static_cast<uint32_t>(0xff000000UL)) >> 2… in Swap32() 63 inline uint64_t constexpr Swap64(uint64_t v) in Swap64() argument 65 return ((v & static_cast<uint64_t>(0x00000000000000ffULL)) << 56) | in Swap64() 66 ((v & static_cast<uint64_t>(0x000000000000ff00ULL)) << 40) | in Swap64() 67 ((v & static_cast<uint64_t>(0x0000000000ff0000ULL)) << 24) | in Swap64() 68 ((v & static_cast<uint64_t>(0x00000000ff000000ULL)) << 8) | in Swap64() [all …]
|
| /openthread-latest/tests/scripts/thread-cert/pktverify/ |
| D | layer_fields.py | 43 def _auto(v: Union[LayerFieldsContainer, LayerField]): 45 …assert not isinstance(v, LayerFieldsContainer) or len(v.fields) == 1 or v.get_default_value() is n… 46 dv = v.get_default_value() 47 rv = v.raw_value 85 raise ValueError((v, v.get_default_value(), v.raw_value)) 88 def _payload(v: Union[LayerFieldsContainer, LayerField]) -> bytearray: 90 assert not isinstance(v, LayerFieldsContainer) or len(v.fields) == 1 91 hex_value = v.raw_value 100 def _hex(v: Union[LayerFieldsContainer, LayerField]) -> int: 103 assert not isinstance(v, LayerFieldsContainer) or len(v.fields) == 1 [all …]
|
| D | test_info.py | 50 self.extaddrs = {int(k): ExtAddr(v) for k, v in test_info.get('extaddrs', {}).items()} 51 self.ethaddrs = {int(k): EthAddr(v) for k, v in test_info.get('ethaddrs', {}).items()} 53 self.mleids = {int(k): Ipv6Addr(v) for k, v in test_info.get('mleids', {}).items()} 54 self.rlocs = {int(k): Ipv6Addr(v) for k, v in test_info.get('rlocs', {}).items()} 57 self.duas = {int(k): Ipv6Addr(v) for k, v in test_info.get('duas', {}).items()} 63 macs.update({k + '_ETH': v for k, v in self.ethaddrs.items()}) 64 macs = ",\n\t".join("%s=%s" % (k, v) for k, v in macs.items()) 78 return {int(k): v for k, v in d.items()} 82 return {k: int(v, 16) for k, v in d.items()}
|
| D | coap.py | 38 def parse(t, v: bytearray) -> List[Tuple[str, str]]: 39 assert isinstance(v, bytearray) 82 for k, v in tvs: 83 assert isinstance(k, str), (t, k, v) 84 assert isinstance(v, str), (t, k, v) 85 self._add_field('coap.tlv.' + k, v)
|
| D | decorators.py | 45 …v = object.__getattribute__(self, cache_key) # can not use getattr, will trigger __getattr__ wron… 47 v = f(self) 48 setattr(self, cache_key, v) 49 return v
|
| D | layers.py | 93 v = get_layer_field(self._packet, path) 94 …assert not isinstance(v, (LayerField, LayerFieldsContainer)), '%s = %s(%r)' % (path, v.__class__._… 95 setattr(self, name, v) 96 return v
|
| D | layer_fields_container.py | 48 v = get_layer_field(self._packet, subpath) 49 setattr(self, name, v) 50 return v
|
| D | test_layer_fields.py | 257 v = p 259 v = getattr(v, sec) 261 return v 318 v = _layer._all_fields[f] 354 (layer_name, f, v, v.get_default_value(), v.raw_value, len(v.fields)))
|
| /openthread-latest/third_party/jlink/SEGGER_RTT_V640/RTT/ |
| D | SEGGER_RTT_printf.c | 142 static void _PrintUnsigned(SEGGER_RTT_PRINTF_DESC * pBufferDesc, unsigned v, unsigned Base, unsigne… in _PrintUnsigned() argument 150 Number = v; in _PrintUnsigned() 192 Div = v / Digit; in _PrintUnsigned() 203 Div = v / Digit; in _PrintUnsigned() 204 v -= Div * Digit; in _PrintUnsigned() 232 static void _PrintInt(SEGGER_RTT_PRINTF_DESC * pBufferDesc, int v, unsigned Base, unsigned NumDigit… in _PrintInt() argument 236 Number = (v < 0) ? -v : v; in _PrintInt() 249 …if ((FieldWidth > 0u) && ((v < 0) || ((FormatFlags & FORMAT_FLAG_PRINT_SIGN) == FORMAT_FLAG_PRINT_… in _PrintInt() 271 if (v < 0) { in _PrintInt() 272 v = -v; in _PrintInt() [all …]
|
| /openthread-latest/third_party/mbedtls/repo/include/psa/ |
| D | crypto_struct.h | 91 const struct psa_hash_operation_s v = PSA_HASH_OPERATION_INIT; in psa_hash_operation_init() local 92 return v; in psa_hash_operation_init() 123 const struct psa_cipher_operation_s v = PSA_CIPHER_OPERATION_INIT; in psa_cipher_operation_init() local 124 return v; in psa_cipher_operation_init() 155 const struct psa_mac_operation_s v = PSA_MAC_OPERATION_INIT; in psa_mac_operation_init() local 156 return v; in psa_mac_operation_init() 194 const struct psa_aead_operation_s v = PSA_AEAD_OPERATION_INIT; in psa_aead_operation_init() local 195 return v; in psa_aead_operation_init() 222 const struct psa_key_derivation_s v = PSA_KEY_DERIVATION_OPERATION_INIT; in psa_key_derivation_operation_init() local 223 return v; in psa_key_derivation_operation_init() [all …]
|
| /openthread-latest/third_party/mbedtls/repo/library/ |
| D | pkcs12.c | 271 int use_password, size_t hlen, size_t v) in calculate_hashes() argument 292 if ((ret = mbedtls_md_update(&md_ctx, diversifier, v)) != 0) { in calculate_hashes() 297 if ((ret = mbedtls_md_update(&md_ctx, salt_block, v)) != 0) { in calculate_hashes() 303 if ((ret = mbedtls_md_update(&md_ctx, pwd_block, v)) != 0) { in calculate_hashes() 342 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local 363 v = 64; in mbedtls_pkcs12_derivation() 365 v = 128; in mbedtls_pkcs12_derivation() 368 memset(diversifier, (unsigned char) id, v); in mbedtls_pkcs12_derivation() 371 pkcs12_fill_buffer(salt_block, v, salt, saltlen); in mbedtls_pkcs12_derivation() 375 pkcs12_fill_buffer(pwd_block, v, pwd, pwdlen); in mbedtls_pkcs12_derivation() [all …]
|
| D | des.c | 836 int i, j, u, v, ret = 0; in mbedtls_des_self_test() local 852 v = i & 1; in mbedtls_des_self_test() 857 (v == MBEDTLS_DES_DECRYPT) ? "dec" : "enc"); in mbedtls_des_self_test() 905 if ((v == MBEDTLS_DES_DECRYPT && in mbedtls_des_self_test() 907 (v != MBEDTLS_DES_DECRYPT && in mbedtls_des_self_test() 932 v = i & 1; in mbedtls_des_self_test() 937 (v == MBEDTLS_DES_DECRYPT) ? "dec" : "enc"); in mbedtls_des_self_test() 976 if (v == MBEDTLS_DES_DECRYPT) { in mbedtls_des_self_test() 979 ret = mbedtls_des_crypt_cbc(&ctx, v, 8, iv, buf, buf); in mbedtls_des_self_test() 981 ret = mbedtls_des3_crypt_cbc(&ctx3, v, 8, iv, buf, buf); in mbedtls_des_self_test() [all …]
|
| D | camellia.c | 864 int i, j, u, v; in mbedtls_camellia_self_test() local 886 v = j & 1; in mbedtls_camellia_self_test() 890 (v == MBEDTLS_CAMELLIA_DECRYPT) ? "dec" : "enc"); in mbedtls_camellia_self_test() 894 if (v == MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_self_test() 906 if (v == MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_self_test() 918 mbedtls_camellia_crypt_ecb(&ctx, v, src, buf); in mbedtls_camellia_self_test() 943 v = j & 1; in mbedtls_camellia_self_test() 947 (v == MBEDTLS_CAMELLIA_DECRYPT) ? "dec" : "enc"); in mbedtls_camellia_self_test() 954 if (v == MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_self_test() 962 if (v == MBEDTLS_CAMELLIA_DECRYPT) { in mbedtls_camellia_self_test() [all …]
|
| /openthread-latest/tools/harness-automation/ |
| D | gencsv.py | 21 for k, v in sorted(result.items(), key=get_key): 24 (v['passed'] and 'Pass') or 'Fail', 25 v['started'], 26 v['stopped'], 27 (v['error'] or '').replace('\n', ' '),
|
| /openthread-latest/tools/otci/otci/ |
| D | otci.py | 600 k, v = line.split(': ') 601 data[OTCI.__LEADER_DATA_KEY_MAP[k]] = int(v) 817 k, v = line.split(': ') 819 matched = re.match(OTCI._IPV6_SERVER_PORT_PATTERN, v) 824 config['response_timeout'] = int(v[:-3]) 826 config['max_tx_attempts'] = int(v) 828 config['recursion_desired'] = (v == 'yes') 974 k, v = line.strip().split(': ') 976 if v not in ('true', 'false'): 979 info['deleted'] = (v == 'true') [all …]
|
| /openthread-latest/third_party/mbedtls/repo/programs/test/ |
| D | selftest.c | 376 int v = 1; /* v=1 for verbose mode */ in main() local 504 v = 0; in main() 513 if (v != 0) { in main() 528 if (test->function(v) != 0) { in main() 551 if (v) { in main() 557 if (test->function(v) != 0) { in main() 569 if (v != 0) { in main()
|
| /openthread-latest/third_party/mbedtls/repo/tests/include/test/drivers/ |
| D | key_agreement.h | 32 v = MBEDTLS_TEST_DRIVER_KEY_AGREEMENT_INIT; in mbedtls_test_driver_key_agreement_hooks_init() local 33 return v; in mbedtls_test_driver_key_agreement_hooks_init()
|
| D | hash.h | 30 const mbedtls_test_driver_hash_hooks_t v = MBEDTLS_TEST_DRIVER_HASH_INIT; in mbedtls_test_driver_hash_hooks_init() local 31 return v; in mbedtls_test_driver_hash_hooks_init()
|
| D | pake.h | 44 const mbedtls_test_driver_pake_hooks_t v = MBEDTLS_TEST_DRIVER_PAKE_INIT; in mbedtls_test_driver_pake_hooks_init() local 45 return v; in mbedtls_test_driver_pake_hooks_init()
|
| D | asymmetric_encryption.h | 34 const mbedtls_test_driver_asymmetric_encryption_hooks_t v = in mbedtls_test_driver_asymmetric_encryption_hooks_init() local 36 return v; in mbedtls_test_driver_asymmetric_encryption_hooks_init()
|
| D | mac.h | 30 const mbedtls_test_driver_mac_hooks_t v = MBEDTLS_TEST_DRIVER_MAC_INIT; in mbedtls_test_driver_mac_hooks_init() local 31 return v; in mbedtls_test_driver_mac_hooks_init()
|
| D | aead.h | 41 const mbedtls_test_driver_aead_hooks_t v = MBEDTLS_TEST_DRIVER_AEAD_INIT; in mbedtls_test_driver_aead_hooks_init() local 42 return v; in mbedtls_test_driver_aead_hooks_init()
|
| D | key_management.h | 44 v = MBEDTLS_TEST_DRIVER_KEY_MANAGEMENT_INIT; in mbedtls_test_driver_key_management_hooks_init() local 45 return v; in mbedtls_test_driver_key_management_hooks_init()
|
| D | signature.h | 32 v = MBEDTLS_TEST_DRIVER_SIGNATURE_INIT; in mbedtls_test_driver_signature_hooks_init() local 33 return v; in mbedtls_test_driver_signature_hooks_init()
|
| /openthread-latest/tests/scripts/thread-cert/ |
| D | wpan.py | 110 v = fcf & (FCF_DST_ADDR_MASK | FCD_SRC_ADDR_MASK | FCF_PANID_COMPRESSION) 111 present = v not in _DST_PAN_ID_NOT_PRESENT_SET
|