Searched refs:nodes_count (Results 1 – 6 of 6) sorted by relevance
| /xnu-12377.41.6/bsd/net/ |
| H A D | trie_utility.c | 64 if (trie->nodes_free_next < trie->nodes_count) { in trie_node_alloc() 116 size_t nodes_count = 0; in net_trie_init() local 135 if (os_add3_overflow(prefix_count, leaf_count, 1, &nodes_count)) { /* + 1 for the root node */ in net_trie_init() 145 if (bytes_count > UINT16_MAX || nodes_count > UINT16_MAX || maps_count > UINT16_MAX) { in net_trie_init() 146 …(%lu), nodes count (%lu) or maps count (%lu)", __FUNCTION__, bytes_count, nodes_count, maps_count); in net_trie_init() 150 if (os_mul_overflow(sizeof(*new_trie->nodes), (size_t)nodes_count, &nodes_mem_size) || in net_trie_init() 163 …count = %lu, bytes_count = %lu, total memory size %lu)", __FUNCTION__, nodes_count, maps_count, by… in net_trie_init() 183 new_trie->nodes_count = (uint16_t)nodes_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 223 os_mul_overflow(sizeof(*new_trie->nodes), (size_t)nodes_count, &test_nodes_mem_size) || in net_trie_init_with_mem() [all …]
|
| H A D | trie_utility.h | 68 struct net_trie_node *nodes __counted_by(nodes_count); 72 uint16_t nodes_count; member 90 uint16_t nodes_count, uint16_t child_maps_count, uint16_t bytes_count);
|
| H A D | necp.h | 82 uint32_t nodes_count; member
|
| H A D | necp.c | 6050 trie_request->nodes_count, trie_request->maps_count, trie_request->bytes_count) == false) { in necp_create_domain_trie()
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | flow_divert.h | 77 struct flow_divert_trie_node *nodes __counted_by(nodes_count); 81 uint16_t nodes_count; member
|
| H A D | flow_divert.c | 763 if (trie->nodes_free_next < trie->nodes_count) { in trie_node_alloc() 3133 size_t nodes_count = 0; in flow_divert_handle_app_map_create() local 3181 …if (os_add3_overflow(prefix_count, signing_id_count, 1, &nodes_count)) { /* + 1 for the root node … in flow_divert_handle_app_map_create() 3193 if (bytes_count > UINT16_MAX || nodes_count > UINT16_MAX || maps_count > UINT16_MAX) { in flow_divert_handle_app_map_create() 3195 …d bytes count (%lu), nodes count (%lu) or maps count (%lu)", bytes_count, nodes_count, maps_count); in flow_divert_handle_app_map_create() 3200 nodes_count, maps_count, bytes_count); in flow_divert_handle_app_map_create() 3202 if (os_mul_overflow(sizeof(*new_trie.nodes), (size_t)nodes_count, &nodes_mem_size) || in flow_divert_handle_app_map_create() 3228 new_trie.nodes_count = (uint16_t)nodes_count; in flow_divert_handle_app_map_create()
|