Lines Matching refs:bytes_count
87 if (start + bytes_size <= trie->bytes_count) { in trie_bytes_move()
110 net_trie_init(struct net_trie *new_trie, size_t prefix_count, size_t leaf_count, size_t bytes_count) in net_trie_init() argument
130 if (new_trie == NULL || prefix_count <= 0 || leaf_count <= 0 || bytes_count <= 0) { in net_trie_init()
145 if (bytes_count > UINT16_MAX || nodes_count > UINT16_MAX || maps_count > UINT16_MAX) { in net_trie_init()
146 …tes count (%lu), nodes count (%lu) or maps count (%lu)", __FUNCTION__, bytes_count, nodes_count, m… in net_trie_init()
152 os_mul_overflow(sizeof(*new_trie->bytes), (size_t)bytes_count, &bytes_mem_size) || in net_trie_init()
163 …= %lu, total memory size %lu)", __FUNCTION__, nodes_count, maps_count, bytes_count, trie_memory_si… in net_trie_init()
193 new_trie->bytes_count = (uint16_t)bytes_count; in net_trie_init()
206 uint16_t nodes_count, uint16_t child_maps_count, uint16_t bytes_count) in net_trie_init_with_mem() argument
225 os_mul_overflow(sizeof(*new_trie->bytes), (size_t)bytes_count, &test_bytes_mem_size)) { in net_trie_init_with_mem()
243 …_TRIE_LOG(LOG_ERR, "%s: NET_TRIE - passed in bytes_count %d not valid", __FUNCTION__, bytes_count); in net_trie_init_with_mem()
268 new_trie->bytes_count = (uint16_t)bytes_count; in net_trie_init_with_mem()
278 (unsigned int)new_trie->bytes, new_trie->bytes_mem_size, new_trie->bytes_count); in net_trie_init_with_mem()
303 …tring_length > UINT16_MAX || trie->bytes_free_next + (uint16_t)string_length > trie->bytes_count) { in net_trie_insert()