| /xnu-8019.80.24/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 | 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 | pktap.h | 115 uint16_t pth_iftype; 116 uint16_t pth_ifunit; 159 uint16_t pth_dlt; /* DLT of packet */ 160 uint16_t pth_frame_pre_length; 161 uint16_t pth_frame_post_length; 162 uint16_t pth_iftype; 163 uint16_t pth_ipproto; 193 (pktap_v2_hdr_dst)->pth_dlt = (uint16_t)(pktap_header_src)->pth_dlt; \ 194 (pktap_v2_hdr_dst)->pth_frame_pre_length = (uint16_t)(pktap_header_src)->pth_frame_pre_length; \ 195 (pktap_v2_hdr_dst)->pth_frame_post_length = (uint16_t)(pktap_header_src)->pth_frame_post_length; \ [all …]
|
| H A D | if_llatbl.h | 96 uint16_t r_flags; /* LLE runtime flags */ 97 uint16_t r_skip_req; /* feedback from fast path */ 105 uint16_t la_flags; 106 uint16_t la_asked; 107 uint16_t la_preempt; 109 uint16_t ln_router; 116 uint16_t mac16[3]; 174 typedef struct llentry *(llt_lookup_t)(struct lltable *, uint16_t flags, 176 typedef struct llentry *(llt_alloc_t)(struct lltable *, uint16_t flags, 180 const struct sockaddr *addr, const struct sockaddr *mask, uint16_t flags); [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 …]
|
| /xnu-8019.80.24/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 | 284 partial += *(uint16_t *)(void *)data; in os_cpu_in_cksum_mbuf() 285 partial += *(uint16_t *)(void *)(data + 2); in os_cpu_in_cksum_mbuf() 286 partial += *(uint16_t *)(void *)(data + 4); in os_cpu_in_cksum_mbuf() 287 partial += *(uint16_t *)(void *)(data + 6); in os_cpu_in_cksum_mbuf() 288 partial += *(uint16_t *)(void *)(data + 8); in os_cpu_in_cksum_mbuf() 289 partial += *(uint16_t *)(void *)(data + 10); in os_cpu_in_cksum_mbuf() 290 partial += *(uint16_t *)(void *)(data + 12); in os_cpu_in_cksum_mbuf() 291 partial += *(uint16_t *)(void *)(data + 14); in os_cpu_in_cksum_mbuf() 292 partial += *(uint16_t *)(void *)(data + 16); in os_cpu_in_cksum_mbuf() 293 partial += *(uint16_t *)(void *)(data + 18); in os_cpu_in_cksum_mbuf() [all …]
|
| H A D | flow_divert.h | 70 uint16_t *child_maps; 73 uint16_t nodes_count; 74 uint16_t child_maps_count; 75 uint16_t bytes_count; 76 uint16_t nodes_free_next; 77 uint16_t child_maps_free_next; 78 uint16_t bytes_free_next; 79 uint16_t root;
|
| H A D | mptcp.h | 106 uint16_t data_len; 107 uint16_t csum; 202 uint16_t mdss_data_len; /* Data Length */ 211 uint16_t mdss_data_len; /* Data Length */ 233 uint16_t mdss_data_len; /* Data Length */ 243 uint16_t mdss_data_len; /* Data Length */ 253 uint16_t mdss_data_len; /* Data Length */ 262 uint16_t mdss_data_len; /* Data Length */ 335 uint16_t maddr_port; 341 uint16_t maddr_port; [all …]
|
| /xnu-8019.80.24/bsd/dev/arm/ |
| H A D | disassembler.c | 18 thumb32_instword_to_arm(uint16_t hw1, uint16_t hw2) in thumb32_instword_to_arm() 633 thumb16_cond_supervisor(uint16_t instr) in thumb16_cond_supervisor() 646 thumb16_misc(uint16_t instr) in thumb16_misc() 668 thumb16_loadstore_single(__unused uint16_t instr) in thumb16_loadstore_single() 676 thumb16_data_special_and_branch(uint16_t instr) in thumb16_data_special_and_branch() 706 thumb16_data_proc(__unused uint16_t instr) in thumb16_data_proc() 714 thumb16_shift_addsub_move_compare(__unused uint16_t instr) in thumb16_shift_addsub_move_compare() 722 dtrace_decode_thumb16(uint16_t instr) in dtrace_decode_thumb16() 789 thumb32_coproc(uint16_t instr1, uint16_t instr2) in thumb32_coproc() 833 thumb32_longmultiply(uint16_t instr1, uint16_t instr2) in thumb32_longmultiply() [all …]
|
| /xnu-8019.80.24/bsd/skywalk/packet/ |
| H A D | os_packet.h | 237 uint16_t pktid_sequence_number; 332 const packet_csum_flags_t, const uint16_t, const uint16_t); 334 uint16_t *, uint16_t *); 341 extern int os_packet_set_token(const packet_t, const void *, const uint16_t); 344 extern int os_packet_set_vlan_tag(const packet_t, const uint16_t, 346 extern int os_packet_get_vlan_tag(const packet_t, uint16_t *, boolean_t *); 347 extern uint16_t os_packet_get_vlan_id(const uint16_t); 348 extern uint8_t os_packet_get_vlan_priority(const uint16_t); 373 extern int os_packet_decrement_use_count(const packet_t ph, uint16_t *use_cnt); 389 extern int os_buflet_set_data_offset(const buflet_t, const uint16_t); [all …]
|
| H A D | packet_var.h | 99 _CASSERT(sizeof((_kbuf)->buf_flag) == sizeof(uint16_t)); \ 102 *__DECONST(uint16_t *, &(_kbuf)->buf_flag) = BUFLET_FLAG_EXTERNAL;\ 125 *__DECONST(uint16_t *, &(_kbuf)->buf_dlim) = (_pp)->pp_buflet_size;\ 183 _CASSERT(sizeof((_dkb)->buf_flag) == sizeof(uint16_t)); \ 184 *__DECONST(uint16_t *, &(_dkb)->buf_flag) &= ~BUFLET_FLAG_EXTERNAL;\ 219 METADATA_TYPE(_kqum) = (uint16_t)(_pp)->pp_md_type; \ 221 METADATA_SUBTYPE(_kqum) = (uint16_t)(_pp)->pp_md_subtype; \ 272 volatile uint16_t _sf = ((_dkq)->qum_qflags & QUM_F_SAVE_MASK); \ 441 const uint16_t pkt_bufs_max; /* maximum size of buflet chain */ 442 const uint16_t pkt_bufs_cnt; /* buflet chain size */ [all …]
|
| H A D | packet_kern.c | 76 uint16_t 133 const uint16_t off) in kern_packet_set_network_header_offset() 140 uint16_t 143 return (uint16_t)__packet_get_headroom(ph) + in kern_packet_get_network_header_offset() 144 (uint16_t)__packet_get_link_header_length(ph); in kern_packet_get_network_header_offset() 150 const uint16_t off) in kern_packet_set_transport_header_offset() 157 uint16_t 264 const packet_csum_flags_t flags, const uint16_t start, in kern_packet_set_inet_checksum() 265 const uint16_t stuff) in kern_packet_set_inet_checksum() 271 kern_packet_get_inet_checksum(const kern_packet_t ph, uint16_t *start, in kern_packet_get_inet_checksum() [all …]
|
| H A D | packet_copy.c | 87 pkt_copy_from_pkt(const enum txrx t, kern_packet_t dph, const uint16_t doff, in pkt_copy_from_pkt() 88 kern_packet_t sph, const uint16_t soff, const uint32_t len, in pkt_copy_from_pkt() 89 const boolean_t copysum, const uint16_t start, const uint16_t stuff, in pkt_copy_from_pkt() 95 uint16_t csum = 0; in pkt_copy_from_pkt() 98 _CASSERT(sizeof(csum) == sizeof(uint16_t)); in pkt_copy_from_pkt() 167 *(uint16_t *)(uintptr_t)(dbaddr + stuff) = csum; in pkt_copy_from_pkt() 206 _pkt_copyaddr_sum(kern_packet_t sph, uint16_t soff, uint8_t *dbaddr, in _pkt_copyaddr_sum() 214 uint16_t clen, sboff, sblen, sbcnt, off0 = soff; in _pkt_copyaddr_sum() 235 clen = (uint16_t)MIN(len, sblen); in _pkt_copyaddr_sum() 261 clen = (uint16_t)MIN(len, sblen); in _pkt_copyaddr_sum() [all …]
|
| /xnu-8019.80.24/bsd/vfs/ |
| H A D | vfs_unicode_data.h | 211 static uint16_t nfTrieHi[790] = { 264 static uint16_t nfTrieMid[140][16] = { 406 static uint16_t nfTrieLo[424][16] = { 832 static uint16_t nfU16InvMasks[128] = { 842 static uint16_t nfU16Seq2[773][2] = { 973 static uint16_t nfU16Seq3[222][3] = { 1031 static uint16_t nfU16SeqMisc[198] = { 1172 static uint16_t nfBasicCF[1280] = {
|
| /xnu-8019.80.24/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-8019.80.24/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-8019.80.24/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-8019.80.24/libsyscall/wrappers/skywalk/ |
| H A D | os_packet.c | 205 const uint16_t start, const uint16_t stuff) in os_packet_set_inet_checksum() 211 os_packet_get_inet_checksum(const packet_t ph, uint16_t *start, uint16_t *val) in os_packet_get_inet_checksum() 271 os_packet_get_token(const packet_t ph, void *token, uint16_t *len) in os_packet_get_token() 278 const uint16_t len) in os_packet_set_token() 296 os_packet_set_vlan_tag(const packet_t ph, const uint16_t tag, in os_packet_set_vlan_tag() 303 os_packet_get_vlan_tag(const packet_t ph, uint16_t *tag, boolean_t *tag_in_pkt) in os_packet_get_vlan_tag() 308 uint16_t 309 os_packet_get_vlan_id(const uint16_t tag) in os_packet_get_vlan_id() 315 os_packet_get_vlan_priority(const uint16_t tag) in os_packet_get_vlan_priority() 392 os_packet_decrement_use_count(const packet_t ph, uint16_t *use_cnt) in os_packet_decrement_use_count() [all …]
|
| /xnu-8019.80.24/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() 88 firehose_stream_t stream, uint8_t qos, uint16_t pubsize, in firehose_chunk_tracepoint_try_reserve() 89 uint16_t privsize, uint8_t **privptr) in firehose_chunk_tracepoint_try_reserve() 91 const uint16_t ft_size = offsetof(struct firehose_tracepoint_s, ft_data); in firehose_chunk_tracepoint_try_reserve() 129 const uint16_t minimum_payload_size = 16; in firehose_chunk_tracepoint_try_reserve() [all …]
|
| /xnu-8019.80.24/libkern/libkern/machine/ |
| H A D | OSByteOrder.h | 47 uint16_t 49 uint16_t data in _OSSwapInt16() 76 uint16_t 82 uint16_t data = *(volatile uint16_t *)((uintptr_t)base + byteOffset); in OSReadSwapInt16() 115 uint16_t data in OSWriteSwapInt16() 118 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); in OSWriteSwapInt16()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/ |
| H A D | os_nexus_private.h | 366 uint16_t nfr_ethertype; 372 uint16_t nfr_flags; 436 uint16_t _addr16[8]; 443 uint16_t fk_mask; 446 uint16_t fk_sport; 447 uint16_t fk_dport; 461 #define FKMASK_IPVER (((uint16_t)1) << 0) 462 #define FKMASK_PROTO (((uint16_t)1) << 1) 463 #define FKMASK_SRC (((uint16_t)1) << 2) 464 #define FKMASK_SPORT (((uint16_t)1) << 3) [all …]
|
| /xnu-8019.80.24/osfmk/kern/ |
| H A D | kalloc.c | 699 TUNABLE(uint16_t, kt_zone_budget, "kt_zbudget", KT_ZBUDGET); 731 uint16_t idx; in kalloc_idx_for_size() 750 kalloc_heap_zone_for_idx(kalloc_heap_t kheap, uint16_t zindex) in kalloc_heap_zone_for_idx() 833 uint16_t kt_idx = kalloc_type_get_idx(cur->kt_size); in kalloc_type_view_copy() 1015 const uint16_t idxA = kalloc_type_get_idx(ktA->kt_size); in kalloc_type_cmp() 1016 const uint16_t idxB = kalloc_type_get_idx(ktB->kt_size); in kalloc_type_cmp() 1037 static uint16_t * 1038 kalloc_type_create_iterators(uint16_t *kt_skip_list_start, in kalloc_type_create_iterators() 1039 uint16_t *kt_freq_list, uint16_t *kt_freq_list_total, uint64_t count) in kalloc_type_create_iterators() 1041 uint16_t *kt_skip_list = kt_skip_list_start; in kalloc_type_create_iterators() [all …]
|