Searched refs:bytes_count (Results 1 – 6 of 6) sorted by relevance
| /xnu-11215/bsd/net/ |
| H A D | trie_utility.c | 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() 152 os_mul_overflow(sizeof(*new_trie->bytes), (size_t)bytes_count, &bytes_mem_size) || 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() [all …]
|
| H A D | trie_utility.h | 70 uint8_t *bytes __counted_by(bytes_count); 74 uint16_t bytes_count; member 87 …t_trie_init(struct net_trie *new_trie, size_t prefix_count, size_t leaf_count, size_t bytes_count); 90 uint16_t nodes_count, uint16_t child_maps_count, uint16_t bytes_count);
|
| H A D | necp.h | 83 uint32_t bytes_count; member
|
| H A D | necp.c | 6096 trie_request->nodes_count, trie_request->maps_count, trie_request->bytes_count) == false) { in necp_create_domain_trie()
|
| /xnu-11215/bsd/netinet/ |
| H A D | flow_divert.h | 78 uint8_t *bytes __counted_by(bytes_count); 82 uint16_t bytes_count; member
|
| H A D | flow_divert.c | 775 if (start + bytes_size <= trie->bytes_count) { in trie_bytes_move() 3079 size_t bytes_count = 0; in flow_divert_handle_app_map_create() local 3114 if (os_add_overflow(bytes_count, sid_size, &bytes_count)) { in flow_divert_handle_app_map_create() 3140 if (bytes_count > UINT16_MAX || nodes_count > UINT16_MAX || maps_count > UINT16_MAX) { in flow_divert_handle_app_map_create() 3142 …b, "Invalid bytes count (%lu), nodes count (%lu) or maps count (%lu)", bytes_count, nodes_count, m… in flow_divert_handle_app_map_create() 3147 nodes_count, maps_count, bytes_count); in flow_divert_handle_app_map_create() 3151 os_mul_overflow(sizeof(*new_trie.bytes), (size_t)bytes_count, &bytes_mem_size) || in flow_divert_handle_app_map_create() 3188 new_trie.bytes_count = (uint16_t)bytes_count; in flow_divert_handle_app_map_create() 3207 …(sid_size <= UINT16_MAX && new_trie.bytes_free_next + (uint16_t)sid_size <= new_trie.bytes_count) { in flow_divert_handle_app_map_create()
|