/openthread-latest/tests/toranj/cli/ |
D | test-005-traffic-router-to-child.py | 74 for size in sizes: 75 node1.ping(ll2, size=size, count=count) 76 node2.ping(ll1, size=size, count=count) 77 node1.ping(ml2, size=size, count=count) 78 node2.ping(ml1, size=size, count=count) 86 for size in sizes: 87 node1.ping(ll3, size=size, count=count) 88 node3.ping(ll1, size=size, count=count) 89 node1.ping(ml3, size=size, count=count) 90 node3.ping(ml1, size=size, count=count)
|
D | test-006-traffic-multi-hop.py | 144 for size in sizes: 145 r1.ping(r4_mleid, size=size) 152 for size in sizes: 153 sed4.ping(sed1_mleid, size=size) 160 for size in sizes: 161 fed1.ping(fed4_mleid, size=size)
|
D | test-703-multi-radio-mesh-header-msg.py | 115 r1.ping(r3_ml_addr, size=1000, count=2) 120 c2.ping(r1_ml_addr, size=1000, count=2) 125 r3.ping(r1_ml_addr, size=1000, count=2) 130 r2.ping(r1_ml_addr, size=1000, count=2) 131 r2.ping(r3_ml_addr, size=1000, count=2)
|
/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_constant_time.function | 203 size_t size = 32; 204 TEST_CALLOC(a, size); 205 TEST_CALLOC(b, size); 207 TEST_CF_SECRET(a, size); 208 TEST_CF_SECRET(b, size); 209 int result = mbedtls_ct_memcmp(a, b, size); 210 TEST_CF_PUBLIC(a, size); 211 TEST_CF_PUBLIC(b, size); 216 for (size_t offset = 0; offset < size; offset++) { 222 TEST_CF_SECRET(a, size); [all …]
|
D | test_suite_alignment.function | 31 void mbedtls_unaligned_access(int size, int offset) 42 TEST_ASSERT(size == 16 || size == 32 || size == 64); 45 switch (size) { 62 memcpy(&raw_aligned_64, ((uint8_t *) &raw) + offset, size / 8); 65 switch (size) { 80 for (size_t i = 0; i < (size_t) (size / 8); i++) { 87 switch (size) { 105 void mbedtls_byteswap(char *input_str, int size, char *expected_str) 113 switch (size) { 124 TEST_FAIL("size must be 16, 32 or 64"); [all …]
|
D | test_suite_asn1write.function | 12 size_t size; 17 mbedtls_test_set_step(data->size); 20 TEST_CALLOC(data->output, data->size == 0 ? 1 : data->size); 21 data->end = data->output + data->size; 23 data->start = data->end - data->size; 34 if (data->size < expected->len) { 62 for (data.size = 0; data.size <= expected->len + 1; data.size++) { 84 for (data.size = 0; data.size <= expected->len + 1; data.size++) { 112 for (data.size = 0; data.size <= expected->len + 1; data.size++) { 141 for (data.size = 0; data.size <= expected->len + 1; data.size++) { [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/include/test/ |
D | memory.h | 80 void mbedtls_test_memory_poison(const unsigned char *ptr, size_t size); 81 #define MBEDTLS_TEST_MEMORY_POISON(ptr, size) \ argument 84 mbedtls_test_memory_poison(ptr, size); \ 94 void mbedtls_test_memory_unpoison(const unsigned char *ptr, size_t size); 95 #define MBEDTLS_TEST_MEMORY_UNPOISON(ptr, size) \ argument 97 mbedtls_test_memory_unpoison(ptr, size); \ 104 #define MBEDTLS_TEST_MEMORY_POISON(ptr, size) ((void) (ptr), (void) (size)) argument 105 #define MBEDTLS_TEST_MEMORY_UNPOISON(ptr, size) ((void) (ptr), (void) (size)) argument
|
/openthread-latest/third_party/mbedtls/repo/tests/src/ |
D | test_memory.c | 40 void mbedtls_test_memory_poison(const unsigned char *ptr, size_t size) in mbedtls_test_memory_poison() argument 45 if (size == 0) { in mbedtls_test_memory_poison() 48 align_for_asan(&ptr, &size); in mbedtls_test_memory_poison() 49 __asan_poison_memory_region(ptr, size); in mbedtls_test_memory_poison() 52 void mbedtls_test_memory_unpoison(const unsigned char *ptr, size_t size) in mbedtls_test_memory_unpoison() argument 54 if (size == 0) { in mbedtls_test_memory_unpoison() 57 align_for_asan(&ptr, &size); in mbedtls_test_memory_unpoison() 58 __asan_unpoison_memory_region(ptr, size); in mbedtls_test_memory_unpoison()
|
/openthread-latest/third_party/jlink/SEGGER_RTT_V640/Syscalls/ |
D | SEGGER_RTT_Syscalls_IAR.c | 83 size_t __write(int handle, const unsigned char * buffer, size_t size); 101 size_t __write(int handle, const unsigned char * buffer, size_t size) { in __write() argument 103 SEGGER_RTT_Write(0, (const char*)buffer, size); in __write() 104 return size; in __write() 117 size_t __write_buffered(int handle, const unsigned char * buffer, size_t size) { in __write_buffered() argument 119 SEGGER_RTT_Write(0, (const char*)buffer, size); in __write_buffered() 120 return size; in __write_buffered()
|
/openthread-latest/tests/unit/ |
D | test_heap.cpp | 64 for (size_t size = 1; size <= heap.GetCapacity(); ++size) in TestAllocateSingle() local 66 printf("%s allocating %zu bytes...\n", __func__, size); in TestAllocateSingle() 67 void *p = heap.CAlloc(1, size); in TestAllocateSingle() 68 …VerifyOrQuit(p != nullptr && !heap.IsClean() && heap.GetFreeSize() + size <= totalSize, "allocatin… in TestAllocateSingle() 69 memset(p, 0xff, size); in TestAllocateSingle() 100 size_t size = sizeof(Node) + static_cast<size_t>(rand()) % aSizeLimit; in TestAllocateRandomly() local 101 printf("TestAllocateRandomly allocating %zu bytes...\n", size); in TestAllocateRandomly() 102 last->mNext = static_cast<Node *>(heap.CAlloc(1, size)); in TestAllocateRandomly() 112 last->mSize = size; in TestAllocateRandomly()
|
D | test_checksum.cpp | 185 for (uint16_t size = kMinSize; size <= kMaxSize; size++) in TestUdpMessageChecksum() local 192 SuccessOrQuit(message->SetLength(size)); in TestUdpMessageChecksum() 200 if (size > sizeof(udpHeader)) in TestUdpMessageChecksum() 203 uint16_t payloadSize = size - sizeof(udpHeader); in TestUdpMessageChecksum() 253 for (uint16_t size = kMinSize; size <= kMaxSize; size++) in TestIcmp6MessageChecksum() local 260 SuccessOrQuit(message->SetLength(size)); in TestIcmp6MessageChecksum() 268 if (size > sizeof(icmp6Header)) in TestIcmp6MessageChecksum() 271 uint16_t payloadSize = size - sizeof(icmp6Header); in TestIcmp6MessageChecksum() 328 for (uint16_t size = kMinSize; size <= kMaxSize; size++) in TestTcp4MessageChecksum() local 334 SuccessOrQuit(message->SetLength(size)); in TestTcp4MessageChecksum() [all …]
|
/openthread-latest/tools/tcat_ble_client/tlv/ |
D | advertised_tlv.py | 38 def __init__(self, type: int = None, size: int = None, value: bytes = None): 40 self._size: int = size 84 size = data[0] & 0xf 85 value = data[header_len:header_len + size] 88 res = DeviceTypeStatusTlv(type, size, value) 90 res = CapabilitiesTlv(type, size, value) 92 res = AdvertisedTlv(type, size, value)
|
/openthread-latest/src/core/utils/ |
D | heap.cpp | 68 uint16_t size = static_cast<uint16_t>(aCount * aSize); in CAlloc() local 70 VerifyOrExit(size); in CAlloc() 72 size += kAlignSize - 1 - kBlockRemainderSize; in CAlloc() 73 size &= ~(kAlignSize - 1); in CAlloc() 74 size += kBlockRemainderSize; in CAlloc() 79 while (curr->GetSize() < size) in CAlloc() 89 if (curr->GetSize() > size + sizeof(Block)) in CAlloc() 91 const uint16_t newBlockSize = curr->GetSize() - size - sizeof(Block); in CAlloc() 92 curr->SetSize(size); in CAlloc() 114 memset(curr->GetPointer(), 0, size); in CAlloc()
|
/openthread-latest/third_party/tcplp/lib/ |
D | cbuf.c | 77 chdr->size = len; in cbuf_init() 86 return chdr->size - chdr->used; in cbuf_free_space() 90 return chdr->size; in cbuf_size() 98 size_t until_end = chdr->size - chdr->r_index; in cbuf_get_w_index() 116 bytes_to_end = chdr->size - w_index; in cbuf_write() 129 size_t bytes_to_end = chdr->size - chdr->r_index; in cbuf_read_unsafe() 164 chdr->r_index = (chdr->r_index + offset) % chdr->size; in cbuf_read_offset() 175 chdr->r_index = (chdr->r_index + numbytes) % chdr->size; in cbuf_pop() 247 const size_t end_idx = chdr->size; in cbuf_contiguify() 270 size_t until_end = chdr->size - chdr->r_index; in cbuf_reference() [all …]
|
/openthread-latest/src/posix/platform/ |
D | settings_file.cpp | 78 …for (off_t size = lseek(mSettingsFd, 0, SEEK_END), offset = lseek(mSettingsFd, 0, SEEK_SET); offse… in Init() local 116 off_t size; in Get() local 121 size = lseek(mSettingsFd, 0, SEEK_END); in Get() 123 VerifyOrExit(offset == 0 && size >= 0, error = OT_ERROR_PARSE); in Get() 125 while (offset < size) in Get() 198 off_t size; in Add() local 203 size = lseek(mSettingsFd, 0, SEEK_END); in Add() 206 if (size > 0) in Add() 209 SwapWrite(swapFd, static_cast<uint16_t>(size)); in Add() 225 off_t size; in Delete() local [all …]
|
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/ |
D | asymmetric_key_data.py | 31 for size in src[typ]: 32 dst[private][size] = unhexlify(src[typ][size][0]) 33 dst[public][size] = unhexlify(src[typ][size][1])
|
/openthread-latest/third_party/mbedtls/repo/library/ |
D | memory_buffer_alloc.c | 35 size_t size; member 80 hdr->alloc, hdr->size); in debug_header() 199 static void *buffer_alloc_calloc(size_t n, size_t size) in buffer_alloc_calloc() argument 214 original_len = len = n * size; in buffer_alloc_calloc() 216 if (n == 0 || size == 0 || len / n != size) { in buffer_alloc_calloc() 230 if (cur->size >= len) { in buffer_alloc_calloc() 255 if (cur->size - len < sizeof(memory_header) + in buffer_alloc_calloc() 275 heap.total_used += cur->size; in buffer_alloc_calloc() 299 new->size = cur->size - len - sizeof(memory_header); in buffer_alloc_calloc() 329 cur->size = len; in buffer_alloc_calloc() [all …]
|
D | x509write_csr.c | 132 size_t size, in x509write_csr_der_internal() argument 151 c = buf + size; in x509write_csr_der_internal() 258 c2 = buf + size; in x509write_csr_der_internal() 285 size_t size, in mbedtls_x509write_csr_der() argument 296 ret = x509write_csr_der_internal(ctx, buf, size, in mbedtls_x509write_csr_der() 309 int mbedtls_x509write_csr_pem(mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_pem() argument 316 if ((ret = mbedtls_x509write_csr_der(ctx, buf, size, in mbedtls_x509write_csr_pem() 322 buf + size - ret, in mbedtls_x509write_csr_pem() 323 ret, buf, size, &olen)) != 0) { in mbedtls_x509write_csr_pem()
|
D | x509_internal.h | 46 int mbedtls_x509_sig_alg_gets(char *buf, size_t size, const mbedtls_x509_buf *sig_oid, 60 unsigned char *sig, size_t size, 74 int mbedtls_x509_info_subject_alt_name(char **buf, size_t *size, 78 int mbedtls_x509_info_cert_type(char **buf, size_t *size, 80 int mbedtls_x509_info_key_usage(char **buf, size_t *size,
|
D | chacha20.c | 202 size_t size, in mbedtls_chacha20_update() argument 209 while (size > 0U && ctx->keystream_bytes_used < CHACHA20_BLOCK_SIZE_BYTES) { in mbedtls_chacha20_update() 215 size--; in mbedtls_chacha20_update() 219 while (size >= CHACHA20_BLOCK_SIZE_BYTES) { in mbedtls_chacha20_update() 227 size -= CHACHA20_BLOCK_SIZE_BYTES; in mbedtls_chacha20_update() 231 if (size > 0U) { in mbedtls_chacha20_update() 236 mbedtls_xor(output + offset, input + offset, ctx->keystream8, size); in mbedtls_chacha20_update() 238 ctx->keystream_bytes_used = size; in mbedtls_chacha20_update()
|
/openthread-latest/tests/fuzz/ |
D | ncp_hdlc_received.cpp | 69 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 76 VerifyOrExit(size <= 65536); in LLVMFuzzerTestOneInput() 90 buf = static_cast<uint8_t *>(malloc(size)); in LLVMFuzzerTestOneInput() 91 memcpy(buf, data, size); in LLVMFuzzerTestOneInput() 92 otNcpHdlcReceive(buf, static_cast<uint16_t>(size)); in LLVMFuzzerTestOneInput()
|
D | cli_received.cpp | 71 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 78 VerifyOrExit(size <= 65536); in LLVMFuzzerTestOneInput() 91 buf = static_cast<uint8_t *>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 92 memcpy(buf, data, size); in LLVMFuzzerTestOneInput() 93 buf[size] = '\0'; in LLVMFuzzerTestOneInput()
|
D | radio_receive_done.cpp | 60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 68 VerifyOrExit(size <= OT_RADIO_FRAME_MAX_SIZE); in LLVMFuzzerTestOneInput() 80 buf = static_cast<uint8_t *>(malloc(size)); in LLVMFuzzerTestOneInput() 84 frame.mLength = static_cast<uint8_t>(size); in LLVMFuzzerTestOneInput()
|
/openthread-latest/src/include/common/ |
D | code_utils.hpp | 74 #define OT_ALIGNED_VAR_SIZE(size, align_type) (((size) + (sizeof(align_type) - 1)) / sizeof(align_t… argument 77 #define OT_DEFINE_ALIGNED_VAR(name, size, align_type) \ argument 78 align_type name[(((size) + (sizeof(align_type) - 1)) / sizeof(align_type))]
|
/openthread-latest/third_party/mbedtls/repo/tests/configs/ |
D | user-config-malloc-0-null.h | 12 static inline void *custom_calloc(size_t nmemb, size_t size) in custom_calloc() argument 14 if (nmemb == 0 || size == 0) { in custom_calloc() 17 return calloc(nmemb, size); in custom_calloc()
|