Searched refs:bytes_count (Results 1 – 6 of 6) sorted by relevance
| /xnu-12377.1.9/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() 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() [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 | 84 uint32_t bytes_count; member
|
| H A D | necp.c | 6061 trie_request->nodes_count, trie_request->maps_count, trie_request->bytes_count) == false) { in necp_create_domain_trie()
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | flow_divert.h | 79 uint8_t *bytes __counted_by(bytes_count); 83 uint16_t bytes_count; member
|
| H A D | flow_divert.c | 786 if (start + bytes_size <= trie->bytes_count) { in trie_bytes_move() 3044 size_t bytes_count = 0; in flow_divert_handle_app_map_create() local 3079 if (os_add_overflow(bytes_count, sid_size, &bytes_count)) { in flow_divert_handle_app_map_create() 3105 if (bytes_count > UINT16_MAX || nodes_count > UINT16_MAX || maps_count > UINT16_MAX) { in flow_divert_handle_app_map_create() 3107 …b, "Invalid bytes count (%lu), nodes count (%lu) or maps count (%lu)", bytes_count, nodes_count, m… in flow_divert_handle_app_map_create() 3112 nodes_count, maps_count, bytes_count); in flow_divert_handle_app_map_create() 3116 os_mul_overflow(sizeof(*new_trie.bytes), (size_t)bytes_count, &bytes_mem_size) || in flow_divert_handle_app_map_create() 3153 new_trie.bytes_count = (uint16_t)bytes_count; in flow_divert_handle_app_map_create() 3172 …(sid_size <= UINT16_MAX && new_trie.bytes_free_next + (uint16_t)sid_size <= new_trie.bytes_count) { in flow_divert_handle_app_map_create()
|