| /xnu-11215.61.5/bsd/net/ |
| H A D | bridgestp.h | 236 uint16_t cbu_protoid; /* protocol id */ 242 uint16_t cbu_rootpri; /* root priority */ 248 uint16_t cbu_bridgepri; /* bridge priority */ 251 uint16_t cbu_portid; /* port id */ 252 uint16_t cbu_messageage; /* current message age */ 253 uint16_t cbu_maxage; /* maximum age */ 254 uint16_t cbu_hellotime; /* hello time */ 255 uint16_t cbu_forwarddelay; /* forwarding delay */ 266 uint16_t tbu_protoid; /* protocol id */ 294 uint16_t pv_dport_id; [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; 69 uint16_t *child_maps __counted_by(CHILD_MAP_SIZE * child_maps_count); 72 uint16_t nodes_count; 73 uint16_t child_maps_count; 74 uint16_t bytes_count; [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; 66 uint16_t nrp_unused; // Padding 89 uint16_t nrp_label; 90 uint16_t nrp_precedence; 91 uint16_t nrp_dstlabel; 92 uint16_t nrp_dstprecedence; [all …]
|
| H A D | trie_utility.c | 61 static uint16_t 65 uint16_t node_idx = trie->nodes_free_next++; in trie_node_alloc() 73 static uint16_t 83 static uint16_t 84 trie_bytes_move(struct net_trie *trie, uint16_t bytes_idx, size_t bytes_size) in trie_bytes_move() 86 uint16_t start = trie->bytes_free_next; in trie_bytes_move() 183 new_trie->nodes_count = (uint16_t)nodes_count; in net_trie_init() 187 new_trie->child_maps = (uint16_t *)(void *)(data_memory + nodes_mem_size); in net_trie_init() 188 new_trie->child_maps_count = (uint16_t)maps_count; in net_trie_init() 193 new_trie->bytes_count = (uint16_t)bytes_count; in net_trie_init() [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 */ 286 uint16_t ifba_vlan; /* vlan id */ 294 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; [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; 563 uint16_t estimated_intermittent_period; 568 uint16_t single_outage_period; 616 uint16_t itd_len; /* length of entire struct (common + td-specific) */ 630 uint16_t addr16[8]; [all …]
|
| /xnu-11215.61.5/bsd/netinet/ |
| H A D | in_cksum.c | 87 uint16_t s[2]; 92 uint16_t s[4]; 102 uint16_t 105 return (uint16_t)os_cpu_in_cksum(buf, len, 0); in b_sum16() 108 uint16_t inet_cksum_simple(struct mbuf *, int); 112 uint16_t 118 uint16_t 119 in_addword(uint16_t a, uint16_t b) in in_addword() 124 return (uint16_t)sum; in in_addword() 127 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() 290 partial += *(uint16_t *)(void *)(data + 10); in os_cpu_in_cksum_mbuf() 291 partial += *(uint16_t *)(void *)(data + 12); in os_cpu_in_cksum_mbuf() 292 partial += *(uint16_t *)(void *)(data + 14); in os_cpu_in_cksum_mbuf() 293 partial += *(uint16_t *)(void *)(data + 16); in os_cpu_in_cksum_mbuf() 294 partial += *(uint16_t *)(void *)(data + 18); 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.61.5/tests/skywalk/ |
| H A D | skywalk_test_utils.h | 114 uint16_t length; 150 uint16_t csum_flags; 151 uint16_t csum_start; 152 uint16_t csum_stuff; 194 uint16_t sport; 195 uint16_t dport; 243 uint16_t sport, uint16_t dport, uint32_t flags); 245 void *src, void *dst, uint8_t proto, uint16_t sport, uint16_t dport); 247 uint8_t af, void *src, void *dst, uint8_t proto, uint16_t sport, 248 uint16_t dport); [all …]
|
| /xnu-11215.61.5/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.61.5/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.61.5/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() 151 (uint16_t)(pcb->icmp_hdr == NULL ? -1 : pcb->icmp_hdr->icmp_cksum), in icmp4_pcb_print() 152 (uint16_t)(pcb->icmp_hdr == NULL ? -1 : pcb->icmp_hdr->icmp_id), 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.61.5/osfmk/kern/ |
| H A D | kalloc.c | 117 static const uint16_t kt_zone_cfg[] = { 429 __options_decl(kalloc_type_variant_t, uint16_t, { 448 TUNABLE(uint16_t, kt_var_heaps, "kt_var_heaps", 450 TUNABLE(uint16_t, kt_fixed_zones, "kt_fixed_zones", 452 TUNABLE(uint16_t, kt_var_ptr_heaps, "kt_var_ptr_heaps", 2); 481 static uint16_t kt_freq_list[MAX_K_ZONE(kt_zone_cfg)]; 483 static uint16_t kt_freq_list_total[MAX_K_ZONE(kt_zone_cfg)]; 486 uint16_t nzones; 487 uint16_t idx; 501 #define KT_GET_HASH(flags) (uint16_t)((flags & KT_HASH) >> 16) [all …]
|
| /xnu-11215.61.5/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.61.5/bsd/skywalk/packet/ |
| H A D | os_packet.h | 168 typedef uint16_t packet_trace_tag_t; 272 uint16_t pktid_sequence_number; 416 const packet_csum_flags_t, const uint16_t, const uint16_t); 420 uint16_t *, uint16_t *); 430 extern int os_packet_set_token(const packet_t, const void *, const uint16_t); 433 extern int os_packet_set_vlan_tag(const packet_t, const uint16_t, 435 extern int os_packet_get_vlan_tag(const packet_t, uint16_t *, boolean_t *); 436 extern uint16_t os_packet_get_vlan_id(const uint16_t); 437 extern uint8_t os_packet_get_vlan_priority(const uint16_t); 447 extern int os_packet_set_protocol_segment_size(const packet_t, const uint16_t); [all …]
|
| H A D | packet_var.h | 97 _CASSERT(sizeof((_kbuf)->buf_flag) == sizeof(uint16_t)); \ 100 *__DECONST(uint16_t *, &(_kbuf)->buf_flag) = BUFLET_FLAG_EXTERNAL;\ 102 *__DECONST(uint16_t *, &(_kbuf)->buf_flag) |= \ 187 ((uint16_t *)(void *)(_dkb))[24] = ((uint16_t *)(void *)(_skb))[24]; \ 189 _CASSERT(sizeof((_dkb)->buf_flag) == sizeof(uint16_t)); \ 190 *__DECONST(uint16_t *, &(_dkb)->buf_flag) &= ~BUFLET_FLAG_EXTERNAL;\ 225 METADATA_TYPE(_kqum) = (uint16_t)(_pp)->pp_md_type; \ 227 METADATA_SUBTYPE(_kqum) = (uint16_t)(_pp)->pp_md_subtype; \ 278 volatile uint16_t _sf = ((_dkq)->qum_qflags & QUM_F_SAVE_MASK); \ 451 const uint16_t pkt_bufs_max; /* maximum size of buflet chain */ [all …]
|
| /xnu-11215.61.5/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.61.5/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.61.5/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.61.5/bsd/skywalk/nexus/ |
| H A D | os_nexus_private.h | 376 uint16_t fdp_offset; 377 uint16_t fdp_len; 389 uint16_t nfr_ethertype; 395 uint16_t nfr_flags; 467 uint16_t _addr16[8]; 474 uint16_t fk_mask; 477 uint16_t fk_sport; 478 uint16_t fk_dport; 492 #define FKMASK_IPVER (((uint16_t)1) << 0) 493 #define FKMASK_PROTO (((uint16_t)1) << 1) [all …]
|