/xnu-2422.115.4/osfmk/i386/ |
H A D | genassym.c | 107 #undef offsetof macro 108 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE)0)->MEMBER) macro 134 DECLARE("SLOCK_ILK", offsetof(usimple_lock_t, interlock)); 136 DECLARE("SLOCK_TYPE", offsetof(usimple_lock_t, lock_type)); 137 DECLARE("SLOCK_PC", offsetof(usimple_lock_t, debug.lock_pc)); 138 DECLARE("SLOCK_THREAD", offsetof(usimple_lock_t, debug.lock_thread)); 139 DECLARE("SLOCK_DURATIONH",offsetof(usimple_lock_t, debug.duration[0])); 140 DECLARE("SLOCK_DURATIONL",offsetof(usimple_lock_t, debug.duration[1])); 145 DECLARE("MUTEX_OWNER", offsetof(lck_mtx_t *, lck_mtx_owner)); 146 DECLARE("MUTEX_PTR", offsetof(lck_mtx_ [all...] |
H A D | cpu_data.h | 254 #ifndef offsetof 255 #define offsetof(TYPE,MEMBER) __builtin_offsetof(TYPE,MEMBER) macro 287 #ifndef offsetof 288 #define offsetof(TYPE,MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro 289 #endif /* offsetof */ 294 : "i" (offsetof(cpu_data_t,member))); \ 301 : "r" (offsetof(cpu_data_t,member[index]))); \ 307 : "r" (value), "i" (offsetof(cpu_data_t,member))); 313 : "i" (offsetof(cpu_data_t,member)), "0" (value)); \ 364 : "i" (offsetof(cpu_data_ [all...] |
/xnu-2422.115.4/bsd/netinet6/ |
H A D | in6_proto.c | 355 .dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr) << 3, 373 _CASSERT(offsetof(struct ip6protosw, pr_entry) == 374 offsetof(struct protosw, pr_entry)); 375 _CASSERT(offsetof(struct ip6protosw, pr_domain) == 376 offsetof(struct protosw, pr_domain)); 377 _CASSERT(offsetof(struct ip6protosw, pr_protosw) == 378 offsetof(struct protosw, pr_protosw)); 379 _CASSERT(offsetof(struct ip6protosw, pr_type) == 380 offsetof(struct protosw, pr_type)); 381 _CASSERT(offsetof(struc [all...] |
H A D | frag6.c | 346 offsetof(struct ip6_hdr, ip6_plen)); 486 offsetof(struct ip6_frag, ip6f_offlg)); 495 offsetof(struct ip6_frag, ip6f_offlg)); 530 offsetof(struct ip6_frag, ip6f_offlg));
|
H A D | udp6_output.c | 343 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
|
/xnu-2422.115.4/bsd/dev/i386/ |
H A D | sysctl.c | 311 (void *)offsetof(i386_cpu_info_t, cpuid_max_basic),sizeof(uint32_t), 315 (void *)offsetof(i386_cpu_info_t, cpuid_max_ext), sizeof(uint32_t), 319 (void *)offsetof(i386_cpu_info_t, cpuid_vendor), 0, 323 (void *)offsetof(i386_cpu_info_t, cpuid_brand_string), 0, 327 (void *)offsetof(i386_cpu_info_t, cpuid_family), sizeof(uint8_t), 331 (void *)offsetof(i386_cpu_info_t, cpuid_model), sizeof(uint8_t), 335 (void *)offsetof(i386_cpu_info_t, cpuid_extmodel), sizeof(uint8_t), 339 (void *)offsetof(i386_cpu_info_t, cpuid_extfamily), sizeof(uint8_t), 343 (void *)offsetof(i386_cpu_info_t, cpuid_stepping), sizeof(uint8_t), 347 (void *)offsetof(i386_cpu_info_ [all...] |
/xnu-2422.115.4/EXTERNAL_HEADERS/ |
H A D | stddef.h | 52 #define offsetof(t, d) __builtin_offsetof(t, d) macro
|
/xnu-2422.115.4/bsd/sys/ |
H A D | _types.h | 139 #ifndef offsetof 140 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro 141 #endif /* offsetof */
|
H A D | kern_event.h | 142 #define KEV_MSG_HEADER_SIZE (offsetof(struct kern_event_msg, event_data[0]))
|
H A D | fasttrap_impl.h | 139 ((fasttrap_id_tp_t *)(((char *)(id) - offsetof(fasttrap_id_tp_t, fit_id))) - \
|
/xnu-2422.115.4/bsd/net/ |
H A D | if_pflog.h | 96 #define PFLOG_REAL_HDRLEN offsetof(struct pfloghdr, pad)
|
H A D | net_str_id.c | 175 iffmid_size = ROUNDUP32(offsetof(struct net_str_id_entry, nsi_string) + str_size);
|
H A D | route.c | 411 _CASSERT(offsetof(struct route, ro_rt) == 412 offsetof(struct route_in6, ro_rt)); 413 _CASSERT(offsetof(struct route, ro_srcia) == 414 offsetof(struct route_in6, ro_srcia)); 415 _CASSERT(offsetof(struct route, ro_flags) == 416 offsetof(struct route_in6, ro_flags)); 417 _CASSERT(offsetof(struct route, ro_dst) == 418 offsetof(struct route_in6, ro_dst)); 637 offsetof(struct sockaddr_inifscope, sin_scope_id) + 642 offsetof(struc [all...] |
H A D | ether_inet6_pr_module.c | 192 offsetof(struct sockaddr_dl, sdl_data[0]) + ETHER_ADDR_LEN;
|
H A D | if_bond.c | 976 bcopy(eh_p, vlh_p, offsetof(struct ether_header, ether_type)); 1385 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p)) 1386 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p)) 1399 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header); 1442 offset = offsetof(struct ip6_hdr, ip6_src) + sizeof(struct ether_header); 1679 if (m->m_pkthdr.len < (int)offsetof(lacpdu, la_reserved)) { 1684 if (m->m_len < (int)offsetof(lacpdu, la_reserved)) { 1685 m = m_pullup(m, offsetof(lacpd [all...] |
H A D | ether_if_module.c | 135 ((size_t) offsetof(struct ether_desc_blk_str, block_ptr))
|
H A D | ether_inet_pr_module.c | 286 offsetof(struct sockaddr_dl, sdl_data[0]) + ETHER_ADDR_LEN;
|
/xnu-2422.115.4/security/ |
H A D | mac_internal.h | 413 mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instring) 416 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, elementlist, outbuf, outbuflen) 419 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "*", outbuf, outbuflen)
|
/xnu-2422.115.4/osfmk/ipc/ |
H A D | mach_msg.c | 113 #ifndef offsetof 114 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro 115 #endif /* offsetof */ 308 msg_addr + offsetof(mach_msg_user_header_t, msgh_local_port), 313 msg_addr + offsetof(mach_msg_user_header_t, msgh_size),
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | mptcp_opt.c | 562 *finp = opt + optlen + offsetof(struct mptcp_dss_copt, \ 636 offsetof(struct mptcp_dss64_ack32_opt, mdss_data_len)); 642 offsetof(struct mptcp_dss64_ack32_opt, 694 offsetof(struct mptcp_dsn_opt, mdss_data_len)); 698 offsetof(struct mptcp_dsn_opt, mdss_subflow_seqn)); 818 offsetof(struct mptcp_dss_ack_opt, mdss_data_len)); 822 offsetof(struct mptcp_dss_ack_opt, 877 offsetof(struct mptcp_dss32_ack64_opt, mdss_data_len)); 881 offsetof(struct mptcp_dss32_ack64_opt, 931 offsetof(struc [all...] |
/xnu-2422.115.4/bsd/dev/dtrace/ |
H A D | fasttrap.c | 1248 size_t size = offsetof(fasttrap_probe_t, ftp_tps[probe->ftp_ntps]); 1268 size_t size = offsetof(fasttrap_probe_t, ftp_tps[probe->ftp_ntps]); 1872 pp = kmem_zalloc(offsetof(fasttrap_probe_t, 1878 bzero(pp, offsetof(fasttrap_probe_t, ftp_tps[pdata->ftps_noffs])); 1880 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[pdata->ftps_noffs]), KM_SLEEP); 2118 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[ntps]), KM_SLEEP); 2123 bzero(pp, offsetof(fasttrap_probe_t, ftp_tps[ntps])); 2125 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[ntps]), KM_SLEEP); 2632 size_t zone_element_size = offsetof(fasttrap_probe_t, ftp_tps[i]);
|
H A D | dtrace.c | 3814 offsetof(mblk_t, b_wptr)); 3817 offsetof(mblk_t, b_rptr)); 3826 offsetof(mblk_t, b_datap)); 3829 offsetof(mblk_t, b_cont)); 3843 offsetof(dblk_t, db_type)) != M_DATA) 4450 offsetof(struct dev_info, devi_minor)); 4452 uintptr_t next = offsetof(struct ddi_minor_data, next); 4453 uintptr_t name = offsetof(struct ddi_minor_data, 4454 d_minor) + offsetof(struct ddi_minor, name); 4455 uintptr_t dev = offsetof(struc [all...] |
/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_journal.h | 129 // offsetof macro to calculate the size. 131 #define JOURNAL_HEADER_CKSUM_SIZE (offsetof(struct journal_header, sequence_num))
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_newsysctl.c | 199 memcpy(oidp, new_oidp, offsetof(struct sysctl_oid, oid_descr)); 297 if (!memcmp(&oidp->oid_number, &old_oidp->oid_number, (offsetof(struct sysctl_oid, oid_descr)-offsetof(struct sysctl_oid, oid_number)))) {
|
/xnu-2422.115.4/bsd/security/audit/ |
H A D | audit_arg.c | 353 char path[SOCK_MAXADDRLEN - offsetof(struct sockaddr_un, sun_path) + 1]; 372 slen = sun->sun_len - offsetof(struct sockaddr_un, sun_path);
|