| /xnu-11215/bsd/net/ |
| H A D | bridgestp.h | 294 uint16_t pv_dport_id; 295 uint16_t pv_port_id; 300 uint16_t cu_message_age; 301 uint16_t cu_max_age; 302 uint16_t cu_forward_delay; 303 uint16_t cu_hello_time; 329 uint16_t bp_port_htime; 333 uint16_t bp_desg_htime; 345 uint16_t bp_port_id; 392 uint16_t bs_edge_delay; [all …]
|
| H A D | trie_utility.h | 57 uint16_t start; 58 uint16_t length:15; 59 uint16_t is_leaf:1; 60 uint16_t child_map; 61 uint16_t metadata; 62 uint16_t metadata_length; 72 uint16_t nodes_count; 74 uint16_t bytes_count; 75 uint16_t nodes_free_next; 78 uint16_t root; [all …]
|
| H A D | nat464_utils.h | 90 uint16_t _addr16[8]; 104 nat464_translate_icmp_ip(pbuf_t *, uint16_t, uint16_t *, uint16_t *, 105 uint8_t, uint8_t, uint16_t, struct nat464_addr *, 119 nat464_translate_46(pbuf_t *, uint16_t, uint8_t, uint8_t, uint8_t, struct in6_addr, 120 struct in6_addr, uint16_t); 127 nat464_insert_frag46(pbuf_t *, uint16_t, uint16_t, boolean_t); 130 nat464_remove_frag64(pbuf_t *, uint32_t, uint16_t, boolean_t); 132 uint16_t 133 nat464_cksum_fixup(uint16_t, uint16_t, uint16_t, uint8_t);
|
| H A D | netsrc.h | 61 uint16_t nrp_flags; 62 uint16_t nrp_label; 63 uint16_t nrp_precedence; 64 uint16_t nrp_dstlabel; 65 uint16_t nrp_dstprecedence; 89 uint16_t nrp_label; 90 uint16_t nrp_precedence; 91 uint16_t nrp_dstlabel; 92 uint16_t nrp_dstprecedence; 93 uint16_t nrp_ifindex; [all …]
|
| H A D | trie_utility.c | 61 static uint16_t 73 static uint16_t 83 static uint16_t 206 uint16_t nodes_count, uint16_t child_maps_count, uint16_t bytes_count) in net_trie_init_with_mem() 293 uint16_t 325 uint16_t string_end = trie->bytes_free_next + (uint16_t)string_length; in net_trie_insert() 327 uint16_t string_remainder = (uint16_t)string_length; in net_trie_insert() 331 uint16_t node_idx; in net_trie_insert() 332 uint16_t current_end; in net_trie_insert() 455 uint16_t [all …]
|
| H A D | pktap.h | 101 uint16_t pth_trace_tag; 103 uint16_t pth_iftype; 104 uint16_t pth_ifunit; 108 uint16_t pth_pad3; 153 uint16_t pth_dlt; /* DLT of packet */ 154 uint16_t pth_frame_pre_length; 155 uint16_t pth_frame_post_length; 156 uint16_t pth_iftype; 157 uint16_t pth_ipproto; 187 (pktap_v2_hdr_dst)->pth_dlt = (uint16_t)(pktap_header_src)->pth_dlt; \ [all …]
|
| H A D | if_bridgevar.h | 276 uint16_t ifba_vlan; /* vlan id */ 357 uint16_t ifbrpu_int16; 390 uint16_t ifbop_priority; 391 uint16_t ifbop_root_port; 414 uint16_t ifbop_priority; 415 uint16_t ifbop_root_port; 429 uint16_t ifbop_priority; 430 uint16_t ifbop_root_port; 591 uint16_t ifbml_pad; 600 uint16_t ifbml_pad; [all …]
|
| H A D | if_var_status.h | 395 uint16_t estimated_intermittent_period; 400 uint16_t single_outage_period; 426 uint16_t wlan_duty_cycle; 474 uint16_t cdrx_cycle; 478 uint16_t estimated_outage_period; 501 uint16_t _reserved; 568 uint16_t single_outage_period; 630 uint16_t addr16[8]; 644 uint16_t inet_lport; 645 uint16_t inet_rport; [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_cksum.c | 102 uint16_t 112 uint16_t 118 uint16_t 119 in_addword(uint16_t a, uint16_t b) in in_addword() 127 uint16_t 139 uint16_t 154 uint16_t 170 uint16_t 191 uint16_t 219 uint16_t [all …]
|
| H A D | cpu_in_cksum_gen.c | 285 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() 286 partial += *(uint16_t *)(void *)(data + 2); in os_cpu_in_cksum_mbuf() 287 partial += *(uint16_t *)(void *)(data + 4); in os_cpu_in_cksum_mbuf() 288 partial += *(uint16_t *)(void *)(data + 6); in os_cpu_in_cksum_mbuf() 289 partial += *(uint16_t *)(void *)(data + 8); in os_cpu_in_cksum_mbuf() 314 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() 330 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() 337 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() 342 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() 438 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() [all …]
|
| H A D | flow_divert.h | 39 uint16_t start; 40 uint16_t length; 41 uint16_t child_map; 77 uint16_t *child_maps __sized_by(child_maps_size); 80 uint16_t nodes_count; 81 uint16_t child_maps_count; 82 uint16_t bytes_count; 83 uint16_t nodes_free_next; 84 uint16_t child_maps_free_next; 85 uint16_t bytes_free_next; [all …]
|
| H A D | in_private.h | 270 extern uint16_t inet_cksum(struct mbuf *, uint32_t, uint32_t, uint32_t); 271 extern uint16_t inet_cksum_buffer(const void *__sized_by(__len), uint32_t, uint32_t, uint32_t __len… 272 extern uint16_t in_addword(uint16_t, uint16_t); 273 extern uint16_t in_pseudo(uint32_t, uint32_t, uint32_t); 274 extern uint16_t in_pseudo64(uint64_t, uint64_t, uint64_t); 275 extern uint16_t in_cksum_hdr_opt(const struct ip *); 276 extern uint16_t ip_cksum_hdr_dir(struct mbuf *, uint32_t, int); 277 extern uint16_t ip_cksum_hdr_dir_buffer(const void *__sized_by(__len), uint32_t, uint32_t __len, in… 279 extern uint16_t b_sum16(const void *__sized_by(len)buf, int len);
|
| /xnu-11215/tests/skywalk/ |
| H A D | skywalk_test_utils.h | 114 uint16_t length; 194 uint16_t sport; 243 uint16_t sport, uint16_t dport, uint32_t flags); 245 void *src, void *dst, uint8_t proto, uint16_t sport, uint16_t dport); 248 uint16_t dport); 251 uint16_t sport, uint16_t dport); 289 int protocol, uint16_t src_port, struct in_addr dst_ip, uint16_t dst_port, 329 size_t mtu, uint16_t csum_flags, uint16_t csum_start, uint16_t csum_stuff); 332 size_t mtu, uint16_t csum_flags, uint16_t csum_start, uint16_t csum_stuff); 334 uint8_t ipver, void *src_ip, void *dst_ip, uint16_t sport, uint16_t dport, [all …]
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_unicode_data.h | 210 static uint16_t nfTrieHi[806] = { 264 static uint16_t nfTrieMid[147][16] = { 413 static uint16_t nfTrieLo[437][16] = { 852 static uint16_t nfU16InvMasks[135] = { 863 static uint16_t nfU16Seq2[773][2] = { 994 static uint16_t nfU16Seq3[222][3] = { 1052 static uint16_t nfU16SeqMisc[198] = { 1198 static uint16_t nfBasicCF[1280] = {
|
| /xnu-11215/osfmk/i386/ |
| H A D | mp_desc.h | 115 valid_user_data_selector(uint16_t selector); 118 valid_user_code_selector(uint16_t selector); 121 valid_user_stack_selector(uint16_t selector); 124 valid_user_segment_selectors(uint16_t cs, 125 uint16_t ss, 126 uint16_t ds, 127 uint16_t es, 128 uint16_t fs, 129 uint16_t gs);
|
| /xnu-11215/tests/ |
| H A D | icmp_fragmented_payload.c | 71 static uint16_t 72 checksum_buffer(uint16_t *buf, size_t len) in checksum_buffer() 89 return (uint16_t)~sum; in checksum_buffer() 100 uint16_t icmp_hdr_len; 102 uint16_t inner_ip_hdr_len; 104 uint16_t inner_tcp_hdr_len; 149 (uint16_t)(pcb->icmp_hdr == NULL ? -1 : pcb->icmp_hdr->icmp_type), in icmp4_pcb_print() 150 (uint16_t)(pcb->icmp_hdr == NULL ? -1 : pcb->icmp_hdr->icmp_code), in icmp4_pcb_print() 152 (uint16_t)(pcb->icmp_hdr == NULL ? -1 : pcb->icmp_hdr->icmp_id), in icmp4_pcb_print() 153 (uint16_t)(pcb->icmp_hdr == NULL ? -1 : pcb->icmp_hdr->icmp_seq), in icmp4_pcb_print() [all …]
|
| H A D | in_cksum_test.c | 37 static uint16_t 42 uint16_t val = buf[1]; in dumb_in_cksum() 54 uint16_t val = buf[0]; in dumb_in_cksum() 65 static uint16_t 87 uint16_t dsum = dumb_in_cksum(data, len); in test_checksum() 94 for (uint16_t split = 0; split < len; split += 2) { in test_checksum() 99 uint16_t osum = split_in_cksum(data, 2, seglens, aligns, tmpbuf); in test_checksum() 225 uint16_t dsum = dumb_in_cksum(pkt49479689, sizeof(pkt49479689)); 226 T_ASSERT_EQ(ntohs(dsum), (uint16_t)0xa32b, "verifying dumb chksum");
|
| /xnu-11215/osfmk/kern/ |
| H A D | kalloc.c | 486 uint16_t nzones; 487 uint16_t idx; 1307 static uint16_t 1346 uint16_t n_zones = (uint16_t) numer / total_sig; in kalloc_type_distribute_budget() 1452 static uint16_t 1460 uint16_t zbudget_sig = (uint16_t) ((7 * zone_budget) / 10); in kalloc_type_apply_policy() 1536 static uint16_t 1571 static uint16_t 1620 static uint16_t 3245 uint16_t idx; in kheap_init_var() [all …]
|
| /xnu-11215/libkern/os/ |
| H A D | log_encode_types.h | 77 uint16_t u16; 106 uint16_t offset; 107 uint16_t length : 15; 108 uint16_t truncated : 1; 119 uint16_t ctx_content_off; // offset into buffer->hdr_data 120 uint16_t ctx_content_sz; // size not including the header 121 uint16_t ctx_pubdata_sz; 122 uint16_t ctx_pubdata_cnt;
|
| /xnu-11215/bsd/skywalk/packet/ |
| H A D | os_packet.h | 272 uint16_t pktid_sequence_number; 416 const packet_csum_flags_t, const uint16_t, const uint16_t); 420 uint16_t *, uint16_t *); 436 extern uint16_t os_packet_get_vlan_id(const uint16_t); 698 const uint16_t); 710 const uint16_t); 734 const packet_csum_flags_t, const uint16_t, const uint16_t, boolean_t); 736 uint16_t *, uint16_t *, boolean_t); 757 uint16_t *len); 763 extern uint16_t kern_packet_get_vlan_id(const uint16_t); [all …]
|
| H A D | packet_var.h | 187 ((uint16_t *)(void *)(_dkb))[24] = ((uint16_t *)(void *)(_skb))[24]; \ 461 uint16_t pkt_vpna_gencnt; 840 const uint16_t, kern_packet_t, const uint16_t, const uint32_t, 841 const boolean_t, const uint16_t, const uint16_t, const boolean_t); 844 const uint16_t, struct mbuf *, const uint16_t, const uint32_t, 845 const boolean_t, const uint16_t); 848 const uint16_t, struct mbuf *, const uint16_t, const uint32_t, 849 const boolean_t, const uint16_t); 863 uint16_t, uint16_t, uint32_t *, boolean_t); 867 extern uint32_t pkt_sum(kern_packet_t, uint16_t, uint16_t); [all …]
|
| /xnu-11215/libkern/firehose/ |
| H A D | chunk_private.h | 37 ((((pos).fcp_pos >> 48) & 0x1ff) == (uint16_t)stream) 43 uint16_t fcp_next_entry_offs; 44 uint16_t fcp_private_offs; 67 uint16_t fcr_offset; // offset from the start of the chunk 68 uint16_t fcr_length; 76 firehose_chunk_pos_fits(firehose_chunk_pos_u *pos, uint16_t size) in firehose_chunk_pos_fits() 95 firehose_stream_t stream, uint8_t qos, uint16_t pubsize, in firehose_chunk_tracepoint_try_reserve() 96 uint16_t privsize, uint8_t **privptr) in firehose_chunk_tracepoint_try_reserve() 98 const uint16_t ft_size = offsetof(struct firehose_tracepoint_s, ft_data); in firehose_chunk_tracepoint_try_reserve() 136 const uint16_t minimum_payload_size = 16; in firehose_chunk_tracepoint_try_reserve() [all …]
|
| /xnu-11215/libkern/libkern/machine/ |
| H A D | OSByteOrder.h | 49 uint16_t 51 uint16_t data in _OSSwapInt16() 78 uint16_t 84 uint16_t data = *(volatile uint16_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt16() 117 uint16_t data in OSWriteSwapInt16() 120 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); in OSWriteSwapInt16()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | sme.c | 106 uint16_t 119 return (uint16_t)ret; in arm_sme_svl_b() 129 arm_save_sme_za(arm_sme_context_t *sme_ss, uint16_t svl_b) in arm_save_sme_za() 147 for (register uint16_t i asm("w12") = 0; i < svl_b; i += 16) { in arm_save_sme_za() 179 arm_load_sme_za(const arm_sme_context_t *sme_ss, uint16_t svl_b) in arm_load_sme_za() 182 for (register uint16_t i asm("w12") = 0; i < svl_b; i += 16) { in arm_load_sme_za() 282 arm_save_sme_za_zt0(arm_sme_context_t *sme_ss, uint16_t svl_b) in arm_save_sme_za_zt0() 307 arm_load_sme_za_zt0(const arm_sme_context_t *sme_ss, uint16_t svl_b) in arm_load_sme_za_zt0()
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | os_nexus_private.h | 376 uint16_t fdp_offset; 377 uint16_t fdp_len; 467 uint16_t _addr16[8]; 474 uint16_t fk_mask; 477 uint16_t fk_sport; 478 uint16_t fk_dport; 559 uint16_t nqi_flags; 568 uint16_t nli_link_id_internal; 571 uint16_t nli_qset_cnt; 577 uint16_t nlir_version; [all …]
|