Searched refs:offsetof (Results 26 - 50 of 65) sorted by relevance

123

/xnu-2782.1.97/bsd/netinet6/
H A Dudp6_output.c345 m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
H A Dipsec.c4173 m_copydata(m, off + offsetof(struct ip, ip_src), sizeof(i4src.sin_addr),
4175 m_copydata(m, off + offsetof(struct ip, ip_dst), sizeof(i4dst.sin_addr),
4184 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_src), sizeof(i6src.sin6_addr),
4186 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_dst), sizeof(i6dst.sin6_addr),
4254 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_src),
4256 m_copydata(m, off + offsetof(struct ip6_hdr, ip6_dst),
4401 #define IPSEC_TAG_HDR_SIZE (offsetof(struct ipsec_tag, history[0]))
H A Dip6_input.c175 _CASSERT(!(offsetof(struct in6_ifstat, f) % sizeof (uint64_t)))
178 _CASSERT(!(offsetof(struct icmp6_ifstat, f) % sizeof (uint64_t)))
H A Draw_ip6.c530 off = offsetof(struct icmp6_hdr, icmp6_cksum);
H A Dicmp6.c1425 replylen += offsetof(struct ni_reply_fqdn, ni_fqdn_namelen);
1448 replylen += offsetof(struct ni_reply_fqdn, ni_fqdn_namelen);
/xnu-2782.1.97/bsd/security/audit/
H A Daudit_arg.c352 char path[SOCK_MAXADDRLEN - offsetof(struct sockaddr_un, sun_path) + 1];
371 slen = sun->sun_len - offsetof(struct sockaddr_un, sun_path);
H A Daudit_bsm_token.c869 if (so->sun_len >= offsetof(struct sockaddr_un, sun_path))
870 slen = min(so->sun_len - offsetof(struct sockaddr_un, sun_path),
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_quota.c1091 bcopy((caddr_t)dqblkp, (caddr_t)user_dqblkp, offsetof(struct dqblk, dqb_btime));
1099 bcopy((caddr_t)user_dqblkp, (caddr_t)dqblkp, offsetof(struct dqblk, dqb_btime));
H A Dvfs_xattr.c1513 if (rawsize < offsetof(apple_double_header_t, entries))
1530 header_end = offsetof(apple_double_header_t, entries) +
2849 ainfop->finderinfo->offset == offsetof(apple_double_header_t, finfo)) {
2973 xah->appledouble.entries[0].offset = SWAP32 (offsetof(apple_double_header_t, finfo));
2974 xah->appledouble.entries[0].length = SWAP32 (ATTR_BUF_SIZE - offsetof(apple_double_header_t, finfo) - rsrcforksize);
/xnu-2782.1.97/iokit/Kernel/
H A DIOHibernateRestoreKernel.c468 + (offsetof(IOHibernateImageHeader, fileExtentMap)
522 + (offsetof(IOHibernateImageHeader, fileExtentMap)
/xnu-2782.1.97/osfmk/x86_64/
H A Dpmap.c161 char pmap_cpu_data_assert[(((offsetof(cpu_data_t, cpu_tlb_invalid) - offsetof(cpu_data_t, cpu_active_cr3)) == 8) && (offsetof(cpu_data_t, cpu_active_cr3) % 64 == 0)) ? 1 : -1];
/xnu-2782.1.97/bsd/dev/dtrace/
H A Ddtrace.c11831 { DOF_SECT_DIF, offsetof(dtrace_difo_t, dtdo_buf),
11832 offsetof(dtrace_difo_t, dtdo_len), sizeof (dif_instr_t),
11835 { DOF_SECT_INTTAB, offsetof(dtrace_difo_t, dtdo_inttab),
11836 offsetof(dtrace_difo_t, dtdo_intlen), sizeof (uint64_t),
11839 { DOF_SECT_STRTAB, offsetof(dtrace_difo_t, dtdo_strtab),
11840 offsetof(dtrace_difo_t, dtdo_strlen), 0,
11843 { DOF_SECT_VARTAB, offsetof(dtrace_difo_t, dtdo_vartab),
11844 offsetof(dtrace_difo_t, dtdo_varlen), sizeof (dtrace_difv_t),
14109 offsetof(dof_provider_t, dofpv_prenoffs) :
15443 dtrace_probe_foreach(offsetof(dtrace_pops_
[all...]
/xnu-2782.1.97/osfmk/i386/
H A Dlocks_i386.c786 ((event_t) (((unsigned char*) (x)) + (offsetof(lck_rw_t, lck_rw_tag))))
789 ((event_t) (((unsigned char*) (x)) + (offsetof(lck_rw_t, lck_rw_pad8))))
/xnu-2782.1.97/bsd/net/
H A Dif.c2670 offsetof(struct ifreq, ifr_addr)),
2673 ifrp += (sa->sa_len + offsetof(struct ifreq,
3060 offsetof(struct sockaddr_dl, sdl_data) >
3071 offsetof(struct sockaddr, sa_data)) {
3084 len = alen + offsetof(struct sockaddr_dl, sdl_data);
H A Drtsock.c377 offsetof(struct sockaddr_in, sin_zero))
393 offsetof(struct sockaddr_in, sin_zero))
H A Dpf_table.c1942 offsetof(struct sockaddr_in, sin_addr) * 8) ||
1944 offsetof(struct sockaddr_in6, sin6_addr) * 8)) {
H A Dbpf.c249 #define SOCKADDR_HDR_LEN offsetof(struct sockaddr, sa_data)
H A Ddlil.c137 _CASSERT(!(offsetof(struct if_data_internal, f) % sizeof (u_int64_t)))
140 _CASSERT(!(offsetof(struct ifnet, if_data.f) % sizeof (u_int64_t)))
186 (DLIL_SDLMAXLEN - offsetof(struct sockaddr_dl, sdl_data[0]))
5253 masklen = offsetof(struct sockaddr_dl, sdl_data[0]) + namelen;
/xnu-2782.1.97/bsd/kern/
H A Duipc_syscalls.c2481 if (len < offsetof(struct sockaddr, sa_data[0]))
2516 len < offsetof(struct sockaddr, sa_data[0]))
2585 ss.ss_len < offsetof(struct sockaddr, sa_data[0])) {
H A Duipc_usrreq.c987 namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path);
1096 len = nam->sa_len - offsetof(struct sockaddr_un, sun_path);
H A Dkern_credential.c811 if ((error = copyout(&workp->kr_work, message, offsetof(struct kauth_identity_extlookup, el_extend))) != 0) {
817 message + offsetof(struct kauth_identity_extlookup, el_info_reserved_1),
818 sizeof(struct kauth_identity_extlookup) - offsetof(struct kauth_identity_extlookup, el_info_reserved_1))) != 0) {
837 error = copyin(message + offsetof(struct kauth_identity_extlookup, el_extend), &uaddr, sizeof(uaddr));
/xnu-2782.1.97/bsd/netinet/
H A Dtcp_output.c1412 offsetof(struct ipoption, ipopt_list);
1822 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1831 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
H A Dtcp_subr.c760 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
771 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1836 ((caddr_t)ip - offsetof(struct icmp, icmp_ip));
H A Dtcp_timer.c108 #define TIMERENTRY_TO_TP(te) ((struct tcpcb *)((uintptr_t)te - offsetof(struct tcpcb, tentry.le.le_next)))
/xnu-2782.1.97/bsd/hfs/
H A Dhfs_endian.c505 if ((char *)srcKey + offsetof(HFSPlusCatalogKey, nodeName.unicode[0]) > nextRecord) {

Completed in 233 milliseconds

123