Home
last modified time | relevance | path

Searched refs:uint16_t (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/xnu-8796.141.3/bsd/net/
H A Dbridgestp.h236 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 Dnat464_utils.h90 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 Dnetsrc.h61 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 Dpktap.h115 uint16_t pth_trace_tag;
117 uint16_t pth_iftype;
118 uint16_t pth_ifunit;
122 uint16_t pth_pad3;
165 uint16_t pth_dlt; /* DLT of packet */
166 uint16_t pth_frame_pre_length;
167 uint16_t pth_frame_post_length;
168 uint16_t pth_iftype;
169 uint16_t pth_ipproto;
199 (pktap_v2_hdr_dst)->pth_dlt = (uint16_t)(pktap_header_src)->pth_dlt; \
[all …]
H A Dif_ports_used.h90 uint16_t npi_if_index;
91 uint16_t npi_flags; /* NPIF_xxx */
124 uint16_t wake_pkt_if_index; /* interface of incoming wake packet */
126 uint16_t wake_pkt_flags; /* NPIF_xxx */
141 uint16_t wake_pkt_control_flags;
156 uint16_t una_wake_pkt_if_index; /* interface of incoming wake packet */
157 uint16_t una_wake_pkt_flags; /* NPIF_xxx */
158 uint16_t _una_wake_pkt_reserved; /* not used */
159 uint16_t una_wake_ptk_len; /* length of una_wake_pkt */
170 uint16_t una_wake_pkt_control_flags; /* for NPIF_TCP, see TH_FLAGS in netinet/tcp.h */
[all …]
H A Dif_llatbl.h96 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 Dif_bridgevar.h276 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 Dif_var_status.h365 uint16_t estimated_intermittent_period;
370 uint16_t single_outage_period;
396 uint16_t wlan_duty_cycle;
444 uint16_t cdrx_cycle;
448 uint16_t estimated_outage_period;
471 uint16_t _reserved;
533 uint16_t estimated_intermittent_period;
538 uint16_t single_outage_period;
586 uint16_t itd_len; /* length of entire struct (common + td-specific) */
600 uint16_t addr16[8];
[all …]
/xnu-8796.141.3/bsd/netinet/
H A Din_cksum.c87 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 Dcpu_in_cksum_gen.c284 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 Dflow_divert.h70 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 Din_private.h272 extern uint16_t inet_cksum(struct mbuf *, uint32_t, uint32_t, uint32_t);
273 extern uint16_t inet_cksum_buffer(const void *__sized_by(__len), uint32_t, uint32_t, uint32_t __len…
274 extern uint16_t in_addword(uint16_t, uint16_t);
275 extern uint16_t in_pseudo(uint32_t, uint32_t, uint32_t);
276 extern uint16_t in_pseudo64(uint64_t, uint64_t, uint64_t);
277 extern uint16_t in_cksum_hdr_opt(const struct ip *);
278 extern uint16_t ip_cksum_hdr_dir(struct mbuf *, uint32_t, int);
279 extern uint16_t ip_cksum_hdr_dir_buffer(const void *__sized_by(__len), uint32_t, uint32_t __len, in…
281 extern uint16_t b_sum16(const void *__sized_by(len)buf, int len);
/xnu-8796.141.3/bsd/skywalk/packet/
H A Dos_packet.h168 typedef uint16_t packet_trace_tag_t;
257 uint16_t pktid_sequence_number;
401 const packet_csum_flags_t, const uint16_t, const uint16_t);
403 uint16_t *, uint16_t *);
413 extern int os_packet_set_token(const packet_t, const void *, const uint16_t);
416 extern int os_packet_set_vlan_tag(const packet_t, const uint16_t,
418 extern int os_packet_get_vlan_tag(const packet_t, uint16_t *, boolean_t *);
419 extern uint16_t os_packet_get_vlan_id(const uint16_t);
420 extern uint8_t os_packet_get_vlan_priority(const uint16_t);
430 extern int os_packet_set_protocol_segment_size(const packet_t, const uint16_t);
[all …]
H A Dpacket_var.h97 _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) |= \
106 *__DECONST(uint16_t *, &(_kbuf)->buf_flag) |= \
125 _CASSERT(sizeof((_kbuf)->buf_boff) == sizeof(uint16_t)); \
126 _CASSERT(sizeof((_kbuf)->buf_grolen) == sizeof(uint16_t)); \
127 _CASSERT(sizeof((_kbuf)->buf_dlim) == sizeof(uint16_t)); \
135 *__DECONST(uint16_t *, &(_kbuf)->buf_dlim) = \
140 *__DECONST(uint16_t *, &(_kbuf)->buf_boff) = 0; \
141 *__DECONST(uint16_t *, &(_kbuf)->buf_grolen) = 0; \
[all …]
H A Dos_packet_private.h188 uint16_t _win;
261 const uint16_t __dlim; /* maximum length */
262 uint16_t __dlen; /* length of data in buflet */
263 uint16_t __doff; /* offset of data in buflet */
264 const uint16_t __flag;
265 const uint16_t __gro_len; /* length of each gro segement */
267 const uint16_t __buf_off;
330 _CASSERT(sizeof ((_buf)->buf_dlim) == sizeof (uint16_t)); \
331 _CASSERT(sizeof ((_buf)->buf_boff) == sizeof (uint16_t)); \
332 _CASSERT(sizeof ((_buf)->buf_grolen) == sizeof (uint16_t)); \
[all …]
H A Dpacket_kern.c76 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
277 const packet_csum_flags_t flags, const uint16_t start, in kern_packet_set_inet_checksum()
278 const uint16_t stuff, const boolean_t tx) in kern_packet_set_inet_checksum()
284 kern_packet_get_inet_checksum(const kern_packet_t ph, uint16_t *start, in kern_packet_get_inet_checksum()
[all …]
/xnu-8796.141.3/bsd/vfs/
H A Dvfs_unicode_data.h210 static uint16_t nfTrieHi[806] = {
264 static uint16_t nfTrieMid[146][16] = {
412 static uint16_t nfTrieLo[437][16] = {
851 static uint16_t nfU16InvMasks[135] = {
862 static uint16_t nfU16Seq2[773][2] = {
993 static uint16_t nfU16Seq3[222][3] = {
1051 static uint16_t nfU16SeqMisc[198] = {
1197 static uint16_t nfBasicCF[1280] = {
/xnu-8796.141.3/osfmk/i386/
H A Dmp_desc.h115 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-8796.141.3/tests/
H A Dicmp_fragmented_payload.c71 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 Din_cksum_test.c37 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-8796.141.3/osfmk/kern/
H A Dkalloc.c116 static const uint16_t kt_zone_cfg[] = {
428 __options_decl(kalloc_type_variant_t, uint16_t, {
447 TUNABLE(uint16_t, kt_var_heaps, "kt_var_heaps",
449 TUNABLE(uint16_t, kt_fixed_zones, "kt_fixed_zones",
451 TUNABLE(uint16_t, kt_var_ptr_heaps, "kt_var_ptr_heaps", 2);
480 static uint16_t kt_freq_list[MAX_K_ZONE(kt_zone_cfg)];
482 static uint16_t kt_freq_list_total[MAX_K_ZONE(kt_zone_cfg)];
485 uint16_t nzones;
486 uint16_t idx;
500 #define KT_GET_HASH(flags) (uint16_t)((flags & KT_HASH) >> 16)
[all …]
/xnu-8796.141.3/libsyscall/wrappers/skywalk/
H A Dos_packet.c203 const uint16_t start, const uint16_t stuff) in os_packet_set_inet_checksum()
209 os_packet_get_inet_checksum(const packet_t ph, uint16_t *start, uint16_t *val) in os_packet_get_inet_checksum()
281 os_packet_get_token(const packet_t ph, void *token, uint16_t *len) in os_packet_get_token()
288 const uint16_t len) in os_packet_set_token()
306 os_packet_set_vlan_tag(const packet_t ph, const uint16_t tag, in os_packet_set_vlan_tag()
313 os_packet_get_vlan_tag(const packet_t ph, uint16_t *tag, boolean_t *tag_in_pkt) in os_packet_get_vlan_tag()
318 uint16_t
319 os_packet_get_vlan_id(const uint16_t tag) in os_packet_get_vlan_id()
325 os_packet_get_vlan_priority(const uint16_t tag) in os_packet_get_vlan_priority()
415 os_packet_decrement_use_count(const packet_t ph, uint16_t *use_cnt) in os_packet_decrement_use_count()
[all …]
/xnu-8796.141.3/libkern/os/
H A Dlog_encode_types.h77 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-8796.141.3/libkern/firehose/
H A Dchunk_private.h37 ((((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-8796.141.3/libkern/libkern/machine/
H A DOSByteOrder.h47 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()

12345678910>>...18