Searched refs:offsetof (Results 1 - 25 of 47) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dgenassym.c81 /* Undefine standard offsetof because it is different than the one here */
82 #undef offsetof macro
83 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE)0)->MEMBER) macro
91 DECLARE("ACT_MACT_KSP", offsetof(thread_t, machine.ksp));
92 DECLARE("ACT_MACT_BEDA", offsetof(thread_t, machine.bbDescAddr));
93 DECLARE("ACT_MACT_BTS", offsetof(thread_t, machine.bbTableStart));
94 DECLARE("ACT_MACT_BTE", offsetof(thread_t, machine.bbTaskEnv));
95 DECLARE("ACT_MACT_SPF", offsetof(thread_t, machine.specFlags));
96 DECLARE("ACT_PREEMPT_CNT", offsetof(thread_t, machine.preemption_count));
97 DECLARE("ACT_PER_PROC", offsetof(thread_
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dgenassym.c109 #undef offsetof macro
110 #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_LOCKED", offsetof(mutex_t *, lck_mtx.lck_mtx_locked));
146 DECLARE("MUTEX_WAITERS",offsetof(mutex_
[all...]
H A Dcpu_data.h192 #ifndef offsetof
193 #define offsetof(TYPE,MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
194 #endif /* offsetof */
199 : "i" (offsetof(cpu_data_t,member))); \
253 : "i" (offsetof(cpu_data_t, cpu_preemption_level)));
266 : "i" (offsetof(cpu_data_t, cpu_preemption_level))
277 : "i" (offsetof(cpu_data_t, cpu_preemption_level))
H A Dmp_desc.c239 offsetof(cpu_desc_table_t, gdt[0]));
241 offsetof(cpu_desc_table_t, idt[0]));
243 offsetof(cpu_desc_table_t, ktss));
245 offsetof(cpu_desc_table_t, sstk.top);
274 offsetof(cpu_desc_table_t, dbtss));
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dsysctl.c161 (void *)offsetof(i386_cpu_info_t, cpuid_vendor), 0,
165 (void *)offsetof(i386_cpu_info_t, cpuid_brand_string), 0,
169 (void *)offsetof(i386_cpu_info_t, cpuid_family), sizeof(uint8_t),
173 (void *)offsetof(i386_cpu_info_t, cpuid_model), sizeof(uint8_t),
177 (void *)offsetof(i386_cpu_info_t, cpuid_extmodel), sizeof(uint8_t),
181 (void *)offsetof(i386_cpu_info_t, cpuid_extfamily), sizeof(uint8_t),
185 (void *)offsetof(i386_cpu_info_t, cpuid_stepping), sizeof(uint8_t),
189 (void *)offsetof(i386_cpu_info_t, cpuid_features), sizeof(uint64_t),
193 (void *)offsetof(i386_cpu_info_t, cpuid_extfeatures), sizeof(uint64_t),
197 (void *)offsetof(i386_cpu_info_
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A D_types.h138 #ifndef offsetof
139 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro
140 #endif /* offsetof */
H A Dkern_event.h135 #define KEV_MSG_HEADER_SIZE (offsetof(struct kern_event_msg, event_data[0]))
H A Dfasttrap_impl.h136 ((fasttrap_id_tp_t *)(((char *)(id) - offsetof(fasttrap_id_tp_t, fit_id))) - \
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dadsp_internal.h280 #define kProbeTimerType offsetof(CCB, ProbeTimer)
281 #define kFlushTimerType offsetof(CCB, FlushTimer)
282 #define kRetryTimerType offsetof(CCB, RetryTimer)
283 #define kAttnTimerType offsetof(CCB, AttnTimer)
284 #define kResetTimerType offsetof(CCB, ResetTimer)
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/ppc/
H A DIODBDMA.h182 OSWriteSwapInt32(registerSetPtr,offsetof(IODBDMAChannelRegisters,field),value)
185 OSReadSwapInt32(registerSetPtr,offsetof(IODBDMAChannelRegisters, field))
261 OSWriteSwapInt32( descPtr, offsetof( IODBDMADescriptor, field), value)
264 OSReadSwapInt32( descPtr, offsetof( IODBDMADescriptor, field))
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_internal.h376 mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instring)
379 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, elementlist, outbuf, outbuflen)
382 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "*", outbuf, outbuflen)
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dfrag6.c207 offsetof(struct ip6_hdr, ip6_plen));
298 offsetof(struct ip6_frag, ip6f_offlg));
306 offsetof(struct ip6_frag, ip6f_offlg));
342 offsetof(struct ip6_frag, ip6f_offlg));
H A Din6_proto.c314 in6_inithead, offsetof(struct sockaddr_in6, sin6_addr) << 3, sizeof(struct sockaddr_in6) ,
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_journal.h110 // offsetof macro to calculate the size.
112 #define JOURNAL_HEADER_CKSUM_SIZE (offsetof(struct journal_header, sequence_num))
H A Dvfs_quota.c1091 bcopy((caddr_t)dqblkp, (caddr_t)user_dqblkp, offsetof(struct dqblk, dqb_btime));
1098 bcopy((caddr_t)user_dqblkp, (caddr_t)dqblkp, offsetof(struct dqblk, dqb_btime));
H A Dvfs_xattr.c1315 if (rawsize < offsetof(apple_double_header_t, entries))
1332 header_end = offsetof(apple_double_header_t, entries) +
2612 ainfop->finderinfo->offset == offsetof(apple_double_header_t, finfo)) {
2736 xah->appledouble.entries[0].offset = SWAP32 (offsetof(apple_double_header_t, finfo));
2737 xah->appledouble.entries[0].length = SWAP32 (ATTR_BUF_SIZE - offsetof(apple_double_header_t, finfo) - rsrcforksize);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Dfasttrap.c1228 size_t size = offsetof(fasttrap_probe_t, ftp_tps[probe->ftp_ntps]);
1248 size_t size = offsetof(fasttrap_probe_t, ftp_tps[probe->ftp_ntps]);
1796 pp = kmem_zalloc(offsetof(fasttrap_probe_t,
1802 bzero(pp, offsetof(fasttrap_probe_t, ftp_tps[pdata->ftps_noffs]));
1804 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[pdata->ftps_noffs]), KM_SLEEP);
2026 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[ntps]), KM_SLEEP);
2031 bzero(pp, offsetof(fasttrap_probe_t, ftp_tps[ntps]));
2033 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[ntps]), KM_SLEEP);
2550 size_t zone_element_size = offsetof(fasttrap_probe_t, ftp_tps[i]);
H A Ddtrace.c3171 offsetof(mblk_t, b_wptr));
3174 offsetof(mblk_t, b_rptr));
3183 offsetof(mblk_t, b_datap));
3186 offsetof(mblk_t, b_cont));
3200 offsetof(dblk_t, db_type)) != M_DATA)
3720 offsetof(struct dev_info, devi_minor));
3722 uintptr_t next = offsetof(struct ddi_minor_data, next);
3723 uintptr_t name = offsetof(struct ddi_minor_data,
3724 d_minor) + offsetof(struct ddi_minor, name);
3725 uintptr_t dev = offsetof(struc
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dether_inet6_pr_module.c174 static const size_t minsize = offsetof(struct sockaddr_dl, sdl_data[0]) + ETHER_ADDR_LEN;
H A Dif.c1650 (ifrp + offsetof(struct ifreq, ifr_addr)),
1653 ifrp += (sa->sa_len + offsetof(struct ifreq, ifr_addr));
1800 offsetof(struct sockaddr_dl, sdl_data) > sdl_original->sdl_len)
1810 offsetof(struct sockaddr, sa_data)) {
1823 len = alen + offsetof(struct sockaddr_dl, sdl_data);
H A Dif_bond.c1008 bcopy(eh_p, vlh_p, offsetof(struct ether_header, ether_type));
1412 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p))
1413 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p))
1426 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header);
1469 offset = offsetof(struct ip6_hdr, ip6_src) + sizeof(struct ether_header);
1694 if (m->m_pkthdr.len < (int)offsetof(lacpdu, la_reserved)) {
1699 if (m->m_len < (int)offsetof(lacpdu, la_reserved)) {
1700 m = m_pullup(m, offsetof(lacpd
[all...]
H A Dether_if_module.c148 #define ETHER_DESC_HEADER_SIZE ((size_t)offsetof(struct ether_desc_blk_str, block_ptr))
H A Dether_inet_pr_module.c278 static const size_t minsize = offsetof(struct sockaddr_dl, sdl_data[0]) + ETHER_ADDR_LEN;
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/
H A Dmach_msg.c114 #ifndef offsetof
115 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro
116 #endif /* offsetof */
301 msg_addr + offsetof(mach_msg_header_t, msgh_size),
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_credential.c4030 offsetof(struct ucred, cr_uid))) == 0);
4035 (offsetof(struct ucred, cr_label) -
4036 offsetof(struct ucred, cr_uid))) == 0);
4103 sizeof(struct ucred) : offsetof(struct ucred, cr_label)) -
4104 offsetof(struct ucred, cr_uid),

Completed in 298 milliseconds

12