/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/utils/collection/ |
D | bit_vector.c | 18 bool __bit_vector_set(char bit_vector[], int index, bool bit, int size) in __bit_vector_set() argument 20 if (index >= 0 && index < size) { in __bit_vector_set() 31 bool __bit_vector_get(char bit_vector[], int index, int size) in __bit_vector_get() argument 33 if (index >= 0 && index < size) { in __bit_vector_get() 39 bool __is_bit_vector_zero(char bit_vector[], int size) in __is_bit_vector_zero() argument 41 int vector_size_in_bytes = size>>3; in __is_bit_vector_zero() 51 void __bit_vector_clean(char bit_vector[], int size) in __bit_vector_clean() argument 53 memset(bit_vector, 0, (size_t)size>>3); in __bit_vector_clean()
|
D | hashtable.c | 23 bool hashtable_init(hashtable_t *hashtable, size_t size, hash_func_t hash_func, in hashtable_init() argument 26 if (!hashtable || !size) { in hashtable_init() 30 hashtable->ctrl.size = size; in hashtable_init() 34 memset(hashtable->table, 0, size * sizeof(void *)); in hashtable_init() 112 for (size_t i = 0; i < hashtable->ctrl.size; i++) { in hashtable_get_depth() 135 for (unsigned int i = 0; i < hashtable->ctrl.size; i++) { in hashtable_foreach() 154 for (size_t i = 0; i < hashtable->ctrl.size; i++) { in hashtable_flush() 164 memset(hashtable->table, 0, hashtable->ctrl.size * sizeof(void *)); in hashtable_flush() 172 for (size_t i = 0; i < hashtable->ctrl.size; i++) { in hashtable_is_empty() 212 …hashtable->ctrl.hash_func ? (unsigned int)(hashtable->ctrl.hash_func(key) % hashtable->ctrl.size) : in _hash_calc() [all …]
|
D | list.c | 23 list->size = 0; in linked_list_init() 82 list->size += 1; in linked_list_add_last() 102 list->size += 1; in linked_list_add_first() 127 list->size += 1; in linked_list_insert_before() 153 list->size -= 1; in linked_list_remove() 177 return list->size; in linked_list_get_size()
|
/NetX-Duo-v6.2.1/crypto_libraries/src/ |
D | nx_crypto_initialize.c | 79 NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memcpy(void *dest, const void *src, size_t size) in _nx_crypto_self_test_memcpy() argument 87 for(i = 0; i < size; i++) in _nx_crypto_self_test_memcpy() 142 NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size) in _nx_crypto_self_test_memset() argument 150 for(i = 0; i < size; i++) in _nx_crypto_self_test_memset() 207 NX_CRYPTO_KEEP int _nx_crypto_self_test_memcmp(const void *str1, const void *str2, size_t size) in _nx_crypto_self_test_memcmp() argument 215 for(i = 0; i < size; i++) in _nx_crypto_self_test_memcmp() 270 NX_CRYPTO_KEEP void* _nx_crypto_self_test_memmove(void *dest, const void *src, size_t size) in _nx_crypto_self_test_memmove() argument 280 for(i = 0; i < size; i++) in _nx_crypto_self_test_memmove() 288 for(i = size; i != 0; i--) in _nx_crypto_self_test_memmove()
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/include/flatcc/portable/ |
D | paligned_alloc.h | 104 #define aligned_alloc(alignment, size) _aligned_malloc(size, alignment) 119 static inline void *__portable_aligned_alloc(size_t alignment, size_t size) 127 err = posix_memalign(&p, alignment, size); 139 #define aligned_alloc(alignment, size) __portable_aligned_alloc(alignment, size) 146 static inline void *__portable_aligned_alloc(size_t alignment, size_t size) 150 size_t total_size = (size + alignment - 1 + sizeof(void *)); 172 #define aligned_alloc(alignment, size) __portable_aligned_alloc(alignment, size)
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/ |
D | object_pool_static.c | 22 if (!pool || pool->size == 0) { in _object_pool_init() 23 log_fatal("Wrong definition pool=[%p] size=[%zu]", (void *)pool, pool ? pool->size : 0); in _object_pool_init() 31 for (size_t i=0; i<pool->size; i++) { in _object_pool_init() 45 if (pool->current_size >= pool->size) { in __object_pool_get() 46 if (++pool->failures % pool->size == 0) { in __object_pool_get() 47 …("Pool exceeded objects [%zu/%zu] failures=[%zu]", pool->current_size, pool->size, pool->failures); in __object_pool_get() 70 return (pool->size - pool->current_size); in __object_pool_get_available_size()
|
D | collectors_info.c | 86 collector_info_t *collectors_info_get(collectors_info_t *collectors_info, uint32_t *size) in collectors_info_get() argument 94 if (size) { in collectors_info_get() 95 *size = COLLECTORS_INFO_SIZE; in collectors_info_get()
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/utils/collection/ |
D | bit_vector.h | 23 #define BIT_VECTOR_DECLARATIONS(type, size) \ argument 25 char data[__BV_CEIL_DIV8(size)]; \ 38 bool __bit_vector_set(char bit_vector[], int index, bool bit, int size); 49 bool __bit_vector_get(char bit_vector[], int index, int size); 59 bool __is_bit_vector_zero(char bit_vector[], int size); 69 void __bit_vector_clean(char bit_vector[], int size);
|
D | hashset.h | 155 #define HASHSET_DEFINITIONS(type, size) … argument 159 …memset(table, 0, sizeof(type*) * size); … 165 …unsigned int index = hashset_##type##_hash(element) % (size); … 179 …unsigned int index = hashset_##type##_hash(element) % (size); … 198 …unsigned int index = hashset_##type##_hash(element) % (size); … 214 …for (unsigned int i = 0; i < size; ++i) { … 228 …for (unsigned int i = 0; i < size; ++i) { … 251 …for (unsigned int i = 0; i < size; ++i) { … 269 …for (unsigned int i = 0; i < size; ++i) { …
|
D | hashtable.h | 77 …size_t size; /* Actual size of hashtable. MUST be between 1 and <size> … member 109 bool hashtable_init(hashtable_t *hashtable, size_t size, hash_func_t hash_func, 188 #define hashtable_init_simple(hashtable, size) hashtable_init(hashtable, size, NULL, NULL, NULL) argument
|
D | linked_list.h | 29 uint32_t size;\ 70 (linked_list)->size = 0;\ 95 return (linked_list)->size;\ 115 (linked_list)->size += 1;\ 140 (linked_list)->size -= 1;\ 161 (linked_list)->size += 1;\ 182 (linked_list)->size -= 1;\ 213 (linked_list)->size -= 1;\ 236 (linked_list)->size += 1;\ 264 (first_linked_list)->size += (second_linked_list)->size;\
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/serializer/ |
D | serializer.c | 159 asc_result_t serializer_buffer_get(serializer_t *serializer, uint8_t **buffer, size_t *size) in serializer_buffer_get() argument 161 …ffer_get, serializer=[%p], buffer=[%p], size=[%p]", (void*)serializer, (void*)buffer, (void*)size); in serializer_buffer_get() 163 if (serializer == NULL || buffer == NULL || size == NULL) { in serializer_buffer_get() 173 *buffer = flatcc_builder_get_direct_buffer(&serializer->builder, size); in serializer_buffer_get() 182 asc_result_t serializer_buffer_get_size(serializer_t *serializer, size_t *size) in serializer_buffer_get_size() argument 184 …og_debug("serializer_buffer_get_size, serializer=[%p], size=[%p]", (void*)serializer, (void*)size); in serializer_buffer_get_size() 186 if (serializer == NULL || size == NULL) { in serializer_buffer_get_size() 196 *size = flatcc_builder_get_buffer_size(&serializer->builder); in serializer_buffer_get_size() 201 asc_result_t serializer_buffer_get_copy(serializer_t *serializer, uint8_t *buffer, size_t size) in serializer_buffer_get_copy() argument 203 …ializer=[%p], buffer=[%p], size=[%lu]", (void*)serializer, (void*)buffer, (long unsigned int)size); in serializer_buffer_get_copy() [all …]
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/utils/ |
D | ifile.h | 35 size_t ifile_read(const char *path, const char *mode, char *buf, size_t size); 46 char *ifile_alloc_read(const char *path, const char *mode, size_t *size); 58 asc_result_t ifile_write(const char *path, const char *mode, char *buf, size_t size); 77 …ult_t ifile_validate_stat(const char *path, ifile_stat_t *expected_stat, char **buf, size_t *size);
|
D | istream.h | 62 …ontains_string(const char *path, const char *s, istream_match_t *params, char **buf, size_t *size); 75 …uals_to_buffer(const char *path, const char *s, istream_match_t *params, char **buf, size_t *size); 97 …ct(const char *path, const char *regex, istream_regex_extract_t *params, char **buf, size_t *size); 110 …egex_match(const char *path, const char *regex, istream_match_t *params, char **buf, size_t *size);
|
/NetX-Duo-v6.2.1/crypto_libraries/inc/ |
D | nx_crypto.h | 106 VOID *_nx_crypto_self_test_memcpy(void *dest, const void *src, size_t size); 107 VOID *_nx_crypto_self_test_memmove(void *dest, const void *src, size_t size); 108 VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size); 109 int _nx_crypto_self_test_memcmp(const void *dest, const void *src, size_t size); 128 VOID *(*volatile _nx_crypto_memset_ptr)(void *dest, int value, size_t size) = memset; 129 VOID *(*volatile _nx_crypto_memcpy_ptr)(void *dest, const void *src, size_t size) = memcpy; 131 extern VOID *(*volatile _nx_crypto_memset_ptr)(void *dest, int value, size_t size); 132 extern VOID *(*volatile _nx_crypto_memcpy_ptr)(void *dest, const void *src, size_t size);
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/src/runtime/ |
D | builder.c | 123 #define push_iov_cond(base, size, cond) if ((size) > 0 && (cond)) { iov.len += size;\ argument 124 … iov.iov[iov.count].iov_base = (void *)(base); iov.iov[iov.count].iov_len = (size); ++iov.count; } 125 #define push_iov(base, size) push_iov_cond(base, size, 1) argument 244 static inline void *push_ds(flatcc_builder_t *B, uoffset_t size) in push_ds() argument 249 if ((B->ds_offset += size) >= B->ds_limit) { in push_ds() 257 static inline void unpush_ds(flatcc_builder_t *B, uoffset_t size) in unpush_ds() argument 259 B->ds_offset -= size; in unpush_ds() 260 memset(B->ds + B->ds_offset, 0, size); in unpush_ds() 263 static inline void *push_ds_copy(flatcc_builder_t *B, const void *data, uoffset_t size) in push_ds_copy() argument 267 if (!(p = push_ds(B, size))) { in push_ds_copy() [all …]
|
D | emitter.c | 98 static int copy_front(flatcc_emitter_t *E, uint8_t *data, size_t size) in copy_front() argument 102 data += size; in copy_front() 103 while (size) { in copy_front() 104 k = size; in copy_front() 117 size -= k; in copy_front() 123 static int copy_back(flatcc_emitter_t *E, uint8_t *data, size_t size) in copy_back() argument 127 while (size) { in copy_back() 128 k = size; in copy_back() 139 size -= k; in copy_back() 252 void *flatcc_emitter_copy_buffer(flatcc_emitter_t *E, void *buf, size_t size) in flatcc_emitter_copy_buffer() argument [all …]
|
/NetX-Duo-v6.2.1/common/src/ |
D | nx_packet_copy.c | 88 ULONG size; /* Packet data size */ in _nx_packet_copy() local 166 … size = (ULONG)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_data_start); in _nx_packet_copy() 170 …status = _nx_packet_data_append(work_ptr, packet_ptr -> nx_packet_data_start, size, pool_ptr, wai… in _nx_packet_copy() 177 … size = (ULONG)(packet_ptr -> nx_packet_append_ptr - packet_ptr -> nx_packet_prepend_ptr); in _nx_packet_copy() 181 …status = _nx_packet_data_append(work_ptr, packet_ptr -> nx_packet_prepend_ptr, size, pool_ptr, wa… in _nx_packet_copy()
|
D | nx_utility.c | 253 UINT size; in _nx_utility_uint_to_string() local 263 size = 0; in _nx_utility_uint_to_string() 266 while (size < string_buffer_size - 1) in _nx_utility_uint_to_string() 270 for (i = size; i != 0; i--) in _nx_utility_uint_to_string() 294 size++; in _nx_utility_uint_to_string() 306 size = 0; in _nx_utility_uint_to_string() 310 string_buffer[size] = (CHAR) NX_NULL; in _nx_utility_uint_to_string() 313 return(size); in _nx_utility_uint_to_string()
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/serializer/extensions/ |
D | page_allocator.c | 32 void *serializer_page_alloc(size_t size) in OBJECT_POOL_DEFINITIONS() 34 if (size != sizeof(flatcc_emitter_page_t)) { in OBJECT_POOL_DEFINITIONS() 35 log_error("Unexpected size: %lu", (unsigned long int)size); in OBJECT_POOL_DEFINITIONS()
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/include/flatcc/ |
D | flatcc_alloc.h | 93 static inline void *__flatcc_aligned_alloc(size_t alignment, size_t size) 97 size_t total_size = (size + alignment - 1 + sizeof(void *)); 108 #define FLATCC_ALIGNED_ALLOC(alignment, size) __flatcc_aligned_alloc(alignment, size)
|
D | flatcc_builder.h | 535 void flatcc_builder_set_vtable_cache_limit(flatcc_builder_t *B, size_t size); 799 const void *data, size_t size, uint16_t align); 809 size_t size, uint16_t align); 926 const void *data, size_t size, uint16_t align, int flags); 985 size_t flatcc_builder_enter_user_frame(flatcc_builder_t *B, size_t size); 1194 const void *data, size_t size, uint16_t align, 1345 void *flatcc_builder_table_add(flatcc_builder_t *B, int id, size_t size, uint16_t align); 1353 void *flatcc_builder_table_edit(flatcc_builder_t *B, size_t size); 1360 void *flatcc_builder_table_add_copy(flatcc_builder_t *B, int id, const void *data, size_t size, uin… 1867 void *flatcc_builder_aligned_alloc(size_t alignment, size_t size); [all …]
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/model/ |
D | security_message.c | 27 security_message_ptr->size = 0; in security_message_clear() 38 return security_message_ptr->data == NULL || security_message_ptr->size == 0; in security_message_is_empty()
|
/NetX-Duo-v6.2.1/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/ |
D | serializer.h | 312 asc_result_t serializer_buffer_get(serializer_t *serializer, uint8_t **buffer, size_t *size); 326 asc_result_t serializer_buffer_get_size(serializer_t *serializer, size_t *size); 341 asc_result_t serializer_buffer_get_copy(serializer_t *serializer, uint8_t *buffer, size_t size);
|
/NetX-Duo-v6.2.1/addons/pop3/ |
D | nxd_pop3_client.c | 874 UINT _nxe_pop3_client_mail_item_size_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *size) in _nxe_pop3_client_mail_item_size_get() argument 881 if ((client_ptr == NX_NULL) || (size == NX_NULL)) in _nxe_pop3_client_mail_item_size_get() 893 status = _nx_pop3_client_mail_item_size_get(client_ptr, mail_item, size); in _nxe_pop3_client_mail_item_size_get() 954 UINT _nx_pop3_client_mail_item_size_get(NX_POP3_CLIENT *client_ptr, UINT mail_item, ULONG *size) in _nx_pop3_client_mail_item_size_get() argument 966 *size = 0; in _nx_pop3_client_mail_item_size_get() 1099 *size = strtoul(argument, NULL, 10); in _nx_pop3_client_mail_item_size_get() 1236 UINT size; in _nx_pop3_client_mail_item_get() local 1293 size = _nx_pop3_server_number_convert(mail_item, &argument[0]); in _nx_pop3_client_mail_item_get() 1294 …if ((buffer + size + (sizeof(NX_POP3_COMMAND_TERMINATION) - 1)) >= (CHAR *)packet_ptr -> nx_packet… in _nx_pop3_client_mail_item_get() 1303 memcpy(buffer, &argument[0], size); /* Use case of memcpy is verified. */ in _nx_pop3_client_mail_item_get() [all …]
|