bin/ksh/table.c
131
p = (struct tbl *) alloc(offsetof(struct tbl, name[0]) + len,
bin/ps/keyword.c
66
#define POFF(x) offsetof(struct kinfo_proc2, x)
bin/ps/keyword.c
67
#define LOFF(x) offsetof(struct kinfo_lwp, x)
common/lib/libprop/prop_dictionary.c
213
.rbto_node_offset = offsetof(struct _prop_dictionary_keysym, pdk_link),
common/lib/libprop/prop_number.c
152
.rbto_node_offset = offsetof(struct _prop_number, pn_link),
common/lib/libprop/prop_string.c
124
.rbto_node_offset = offsetof(struct _prop_string, ps_link),
crypto/dist/ipsec-tools/src/racoon/schedule.h
53
#ifndef offsetof
crypto/dist/ipsec-tools/src/racoon/schedule.h
64
(type *)( (char *)(intptr_t)__mptr - offsetof(type,member) );})
dist/pf/sbin/pfctl/pfctl_optimize.c
100
offsetof(struct pf_rule, field), \
dist/pf/usr.sbin/ftp-proxy/npf.c
114
BPF_STMT(BPF_LD+BPF_W+BPF_ABS, offsetof(struct ip, ip_src)),
dist/pf/usr.sbin/ftp-proxy/npf.c
117
BPF_STMT(BPF_LD+BPF_W+BPF_ABS, offsetof(struct ip, ip_dst)),
dist/pf/usr.sbin/ftp-proxy/npf.c
121
BPF_STMT(BPF_LD+BPF_H+BPF_IND, offsetof(struct tcphdr, th_dport)),
lib/libc/arch/sparc/gen/longjmp.c
52
__CTASSERT(_SIZEOF_SC + _JB_G4 == offsetof(struct __jmp_buf,regs.g4));
lib/libc/arch/sparc/gen/longjmp.c
53
__CTASSERT(_SIZEOF_SC + _JB_G7 == offsetof(struct __jmp_buf,regs.g7));
lib/libc/arch/sparc64/gen/longjmp.c
58
__CTASSERT(0x68 == offsetof(__jmp_buf_regs_t,save_mask) +
lib/libc/citrus/citrus_lc_messages.c
90
#define OFFSET(field) (offsetof(_MessagesLocale, field))
lib/libc/citrus/citrus_lc_monetary.c
98
#define OFFSET(field) (offsetof(_MonetaryLocale, field))
lib/libc/citrus/citrus_lc_numeric.c
92
#define OFFSET(field) (offsetof(_NumericLocale, field))
lib/libc/citrus/citrus_lc_time.c
104
#define OFFSET(field) offsetof(_TimeLocale, field)
lib/libc/locale/c16rtomb.c
88
__CTASSERT(offsetof(struct c16rtombstate, mbs) <= sizeof(mbstate_t));
lib/libc/locale/c16rtomb.c
90
offsetof(struct c16rtombstate, mbs));
lib/libc/locale/c8rtomb.c
78
__CTASSERT(offsetof(struct c8rtombstate, mbs) <= sizeof(mbstate_t));
lib/libc/locale/c8rtomb.c
80
offsetof(struct c8rtombstate, mbs));
lib/libc/locale/mbrtoc16.c
94
__CTASSERT(offsetof(struct mbrtoc16state, mbs) <= sizeof(mbstate_t));
lib/libc/locale/mbrtoc16.c
96
offsetof(struct mbrtoc16state, mbs));
lib/libc/locale/mbrtoc8.c
94
__CTASSERT(offsetof(struct mbrtoc8state, mbs) <= sizeof(mbstate_t));
lib/libc/locale/mbrtoc8.c
96
offsetof(struct mbrtoc8state, mbs));
lib/libc/locale/multibyte.h
57
#define _PRIVSIZE (sizeof(mbstate_t)-offsetof(_RuneStatePriv, __private))
lib/libc/locale/nl_langinfo.c
105
#define offsetofu16(a, b) ((uint16_t)offsetof(a, b))
lib/libc/net/getaddrinfo.c
146
offsetof(struct sockaddr_in6, sin6_addr),
lib/libc/net/getaddrinfo.c
151
offsetof(struct sockaddr_in, sin_addr),
lib/libc/net/getnameinfo.c
91
offsetof(struct sockaddr_in6, sin6_addr)},
lib/libc/net/getnameinfo.c
94
offsetof(struct sockaddr_in, sin_addr)},
lib/libc/stdlib/_env.c
121
(const uint8_t *)key - offsetof(env_node_t, data));
lib/libc/stdlib/_env.c
71
.rbto_node_offset = offsetof(env_node_t, rb_node),
lib/libc/stdlib/jemalloc.c
1845
assert(offsetof(struct arena_chunk_s, link) == 0);
lib/libc/stdlib/jemalloc.c
458
.rbto_node_offset = offsetof(struct chunk_node_s, link),
lib/libc/stdlib/jemalloc.c
529
.rbto_node_offset = offsetof(struct arena_chunk_s, link),
lib/libc/stdlib/jemalloc.c
561
.rbto_node_offset = offsetof(struct arena_run_s, link),
lib/libc/stdlib/malloc.c
676
l = (long)offsetof(struct pginfo, bits[0]);
lib/libc/time/zic.c
187
# define alignof(type) offsetof(struct { char a; type b; }, b)
lib/libperfuse/fuse.h
497
#define FUSE_NAME_OFFSET offsetof(struct fuse_dirent, name)
lib/libpthread/pthread.c
94
.rbto_node_offset = offsetof(struct __pthread_st, pt_alltree),
lib/librefuse/refuse.c
64
{ t, offsetof(struct refuse_config, p), v }
lib/librefuse/refuse_lowlevel.c
45
{ t, offsetof(struct fuse_cmdline_opts, p), v }
lib/librumpuser/sp_common.c
224
#define SPC_ZEROFF offsetof(struct spclient, spc_pfd)
regress/sys/net/frag/ip4_frag_1.c
56
#define ICMP_SIZE offsetof(struct icmp, icmp_ip)
sbin/cgdconfig/cgdconfig.c
1222
+ offsetof(vdev_label_t, vl_vdev_phys);
sbin/dmesg/dmesg.c
239
offsetof(struct kern_msgbuf, msg_bufc)) !=
sbin/dmesg/dmesg.c
240
offsetof(struct kern_msgbuf, msg_bufc))
sbin/efi/devpath3.c
960
seriallen = p->hdr.Length - offsetof(typeof(*p), SerialNum);
sbin/efi/showvar.c
254
if (offsetof(EFI_KEY_OPTION, UndocData) < v->ev.datasize &&
sbin/fdisk/fdisk.c
1105
int copy_size = offsetof(struct mbr_sector, mbr_dsn);
sbin/fsck_udf/main.c
342
bpos_start = offsetof(struct file_entry, data) + l_ea;
sbin/fsck_udf/main.c
348
bpos_start = offsetof(struct extfile_entry, data) + l_ea;
sbin/ifconfig/ieee80211.c
958
ie += offsetof(struct ieee80211_wme_param, params_acParams);
sbin/ifconfig/parse.c
232
sizeof(*ss) - offsetof(struct sockaddr_dl, sdl_data[0]);
sbin/ifconfig/parse.c
258
sdl->sdl_len = offsetof(struct sockaddr_dl, sdl_data)
sbin/ifconfig/parse.c
427
len = offsetof(struct paddr_prefix, pfx_addr) + sa->sa_len;
sbin/ifconfig/parse.h
245
return offsetof(struct paddr_prefix, pfx_addr) + pfx->pfx_addr.sa_len;
sbin/ifconfig/util.c
204
pfx = malloc(offsetof(struct paddr_prefix, pfx_addr) + u.sa.sa_len);
sbin/newfs/mkfs.c
1598
{offsetof(struct fs, fs_magic)/4, FS_UFS1_MAGIC, ~0u},
sbin/newfs/mkfs.c
1599
{offsetof(struct fs, fs_magic)/4, FS_UFS2_MAGIC, ~0u},
sbin/newfs/mkfs.c
666
memset(iobuf + offsetof(struct fs, fs_old_postbl_start),
sbin/newfs/mkfs.c
753
memset(iobuf + offsetof(struct fs, fs_old_postbl_start),
sbin/newfs_ext2fs/mke2fs.c
789
{offsetof(struct ext2fs, e2fs_magic) / 4, E2FS_MAGIC, 0xffff},
sbin/newfs_ext2fs/mke2fs.c
790
{offsetof(struct ext2fs, e2fs_magic) / 4,
sbin/newfs_udf/udf_core.c
2800
context.vat_start = offsetof(struct udf_vat, data);
sbin/newfs_udf/udf_core.c
2801
context.vat_size = offsetof(struct udf_vat, data);
sbin/nvmectl/identify.c
228
hexlength = offsetof(struct nvm_identify_controller,
sbin/nvmectl/identify.c
291
hexlength = offsetof(struct nvm_identify_namespace,
sbin/ping/ping.c
1190
offsetof(struct icmp, icmp_data) + datalen
sbin/ping/ping.c
178
u_char u_buf[MAXPACKET+offsetof(struct icmp, icmp_data)];
sbin/route/rtutil.c
612
lim = mask->sin6_len - offsetof(struct sockaddr_in6, sin6_addr);
sbin/route/rtutil.c
730
int len = sa->sa_len - offsetof(struct sockaddr, sa_data);
sys/arch/aarch64/aarch64/cpu_machdep.c
183
CTASSERT(offsetof(struct reg, r_pc) == _REG_PC * sizeof(__greg_t));
sys/arch/aarch64/aarch64/cpu_machdep.c
184
CTASSERT(offsetof(struct reg, r_sp) == _REG_SP * sizeof(__greg_t));
sys/arch/aarch64/aarch64/cpu_machdep.c
185
CTASSERT(offsetof(struct reg, r_spsr) == _REG_SPSR * sizeof(__greg_t));
sys/arch/aarch64/aarch64/cpu_machdep.c
186
CTASSERT(offsetof(struct reg, r_tpidr) == _REG_TPIDR * sizeof(__greg_t));
sys/arch/aarch64/aarch64/cpu_machdep.c
189
CTASSERT(offsetof(struct fpreg, fpcr) == offsetof(__fregset_t, __fpcr));
sys/arch/aarch64/aarch64/cpu_machdep.c
190
CTASSERT(offsetof(struct fpreg, fpsr) == offsetof(__fregset_t, __fpsr));
sys/arch/aarch64/aarch64/db_trace.c
742
db_read_bytes((db_addr_t)pp + offsetof(proc_t, p_lwps.lh_first),
sys/arch/aarch64/aarch64/db_trace.c
759
db_read_bytes((db_addr_t)l.l_proc + offsetof(proc_t, p_pid),
sys/arch/aarch64/aarch64/db_trace.c
774
offsetof(struct pcb, pcb_tf),
sys/arch/aarch64/aarch64/db_trace.c
791
offsetof(struct cpu_info, ci_index),
sys/arch/acorn32/podulebus/if_ie.c
115
#define xoffsetof(type, member) (offsetof(type, member) << 1)
sys/arch/acorn32/stand/nbfs/nbfs.c
402
entsiz = ALIGN(offsetof(
sys/arch/alpha/alpha/pmap.c
272
CTASSERT(offsetof(struct pmap, pm_percpu[0]) == COHERENCY_UNIT);
sys/arch/alpha/alpha/prom.c
421
i < (offsetof(struct rpb, rpb_checksum) / sizeof (uint64_t));
sys/arch/alpha/include/cpu.h
154
__CTASSERT(offsetof(struct cpu_info, ci_curlwp) <= 0x7ff0);
sys/arch/alpha/include/cpu.h
155
__CTASSERT(offsetof(struct cpu_info, ci_ssir) <= 0x7ff0);
sys/arch/alpha/include/pmap.h
166
(ALIGN(offsetof(struct pmap, pm_percpu[(x)])))
sys/arch/amd64/amd64/db_machdep.c
51
#define dbreg(xx) (long *)offsetof(db_regs_t, tf_ ## xx)
sys/arch/amd64/include/cpu.h
67
(*(struct cpu_info * const *)offsetof(struct cpu_info, ci_self)));
sys/arch/amd64/include/cpu.h
79
(*(struct cpu_info * const *)offsetof(struct cpu_info, ci_curlwp)));
sys/arch/amd64/include/pcb.h
117
__CTASSERT(offsetof(struct pcb, pcb_savefpusmall) == 128);
sys/arch/arm/arm32/db_machdep.c
84
#define XO(f) ((long *)(offsetof(db_regs_t, f) / sizeof(register_t)))
sys/arch/arm/broadcom/bcm53xx_eth.c
766
offsetof(struct bcmeth_mapcache, dmc_maps[dmc->dmc_maxmaps]);
sys/arch/arm/broadcom/bcm53xx_eth.c
783
offsetof(struct bcmeth_mapcache, dmc_maps[maxmaps]);
sys/arch/arm/cortex/pl310.c
66
__CTASSERT(offsetof(struct arml2cc_softc, sc_ev_inv.ev_count) % 8 == 0);
sys/arch/arm/cortex/pl310.c
67
__CTASSERT(offsetof(struct arml2cc_softc, sc_ev_wb.ev_count) % 8 == 0);
sys/arch/arm/cortex/pl310.c
68
__CTASSERT(offsetof(struct arml2cc_softc, sc_ev_wbinv.ev_count) % 8 == 0);
sys/arch/arm/gemini/gemini_gmac.c
431
mc = kmem_zalloc(offsetof(gmac_mapcache_t, mc_maps[maxmaps]),
sys/arch/arm/gemini/gemini_gmac.c
458
kmem_free(mc, offsetof(gmac_mapcache_t, mc_maps[mc->mc_max]));
sys/arch/arm/gemini/gemini_gpio.c
103
offsetof(struct gpio_softc, gpio_pic)))
sys/arch/arm/gemini/gemini_icu.c
80
((void *)((uintptr_t)(pic) - offsetof(struct geminiicu_softc, sc_pic)))
sys/arch/arm/imx/imx23_icoll.c
76
offsetof(struct imx23_icoll_softc, sc_pic)))
sys/arch/arm/imx/imx31_gpio.c
89
offsetof(struct gpio_softc, gpio_pic)))
sys/arch/arm/imx/imx51_tzic.c
88
offsetof(struct tzic_softc, sc_pic)))
sys/arch/arm/imx/imxgpio.c
81
offsetof(struct imxgpio_softc, gpio_pic)))
sys/arch/arm/sociox/if_scx.c
436
#define SCX_CDOFF(x) offsetof(struct control_data, x)
sys/arch/arm/sunxi/sunxi_intc.c
84
((void *)((uintptr_t)(pic) - offsetof(struct sunxi_intc_softc, sc_pic)))
sys/arch/arm/ti/am18xx_intc.c
88
((uintptr_t)(pic) - offsetof(struct am18xx_intc_softc, sc_pic)))
sys/arch/arm/ti/ti_omapintc.c
94
((struct omap2icu_softc *)((uintptr_t)(pic) - offsetof(struct omap2icu_softc, sc_pic)))
sys/arch/arm/xscale/iopaaureg.h
131
#define SYNC_DESC_4_OFFSET offsetof(struct aau_desc_4, d_nda)
sys/arch/bebox/stand/boot/siop.c
702
const int off_msg_in = offsetof(struct siop_common_xfer, msg_in);
sys/arch/bebox/stand/boot/siop.c
703
const int off_status = offsetof(struct siop_common_xfer, status);
sys/arch/dreamcast/dev/g2/aicavar.h
56
#define AICA_ARM_CMDADDR(x) (AICA_ARM_CMD + offsetof(aica_cmd_t, x))
sys/arch/dreamcast/dev/maple/mlcd.c
93
#define MLCD_BUF_SZ(sc) (offsetof(struct mlcd_buf, lb_data) + (sc)->sc_bsize)
sys/arch/evbmips/rmixl/machdep.c
486
#define LOAD_CURCPU_0 ((MIPS_CURLWP_REG << 21) | offsetof(lwp_t, l_cpu))
sys/arch/evbppc/mpc85xx/machdep.c
1214
CTASSERT(offsetof(struct tlb_md_io_ops, md_tlb_mapiodev) == 0);
sys/arch/evbppc/virtex/dev/if_temac.c
112
#define TEMAC_TXDOFF(n) (offsetof(struct temac_control, cd_txdesc) + \
sys/arch/evbppc/virtex/dev/if_temac.c
118
#define TEMAC_RXDOFF(n) (offsetof(struct temac_control, cd_rxdesc) + \
sys/arch/evbppc/virtex/dev/tft_ll.c
157
offsetof(struct ll_tft_control, cd_img);
sys/arch/evbppc/virtex/dev/tft_ll.c
206
offs + offsetof(struct ll_tft_control, cd_img),
sys/arch/evbppc/virtex/dev/tft_ll.c
65
CTASSERT(offsetof(struct ll_tft_control, cd_img) == sizeof(struct cdmac_descr));
sys/arch/hp300/dev/dmareg.h
74
#define DMA_ID2 offsetof(struct dmareg, dma_id[2])
sys/arch/hpc/stand/hpcboot/arch.cpp
88
_boot_arg->bootinfo = ptokv(p + offsetof(struct BootArgs, bi));
sys/arch/hppa/gsc/harmony.c
287
offsetof(struct harmony_empty, playback[i][0]);
sys/arch/hppa/gsc/harmony.c
293
offsetof(struct harmony_empty, capture[i][0]);
sys/arch/hppa/gsc/harmony.c
296
offsetof(struct harmony_empty, playback[0][0]),
sys/arch/hppa/gsc/harmony.c
527
offsetof(struct harmony_empty, playback[0][0]),
sys/arch/hppa/gsc/harmony.c
546
offsetof(struct harmony_empty, playback[0][0]),
sys/arch/hppa/hppa/trap.c
515
offsetof(struct trapframe, tf_r1 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
516
offsetof(struct trapframe, tf_rp ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
517
offsetof(struct trapframe, tf_r3 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
518
offsetof(struct trapframe, tf_r4 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
519
offsetof(struct trapframe, tf_r5 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
520
offsetof(struct trapframe, tf_r6 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
521
offsetof(struct trapframe, tf_r7 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
522
offsetof(struct trapframe, tf_r8 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
523
offsetof(struct trapframe, tf_r9 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
524
offsetof(struct trapframe, tf_r10 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
525
offsetof(struct trapframe, tf_r11 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
526
offsetof(struct trapframe, tf_r12 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
527
offsetof(struct trapframe, tf_r13 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
528
offsetof(struct trapframe, tf_r14 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
529
offsetof(struct trapframe, tf_r15 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
530
offsetof(struct trapframe, tf_r16 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
531
offsetof(struct trapframe, tf_r17 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
532
offsetof(struct trapframe, tf_r18 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
533
offsetof(struct trapframe, tf_t4 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
534
offsetof(struct trapframe, tf_t3 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
535
offsetof(struct trapframe, tf_t2 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
536
offsetof(struct trapframe, tf_t1 ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
537
offsetof(struct trapframe, tf_arg3) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
538
offsetof(struct trapframe, tf_arg2) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
539
offsetof(struct trapframe, tf_arg1) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
540
offsetof(struct trapframe, tf_arg0) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
541
offsetof(struct trapframe, tf_dp ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
542
offsetof(struct trapframe, tf_ret0) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
543
offsetof(struct trapframe, tf_ret1) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
544
offsetof(struct trapframe, tf_sp ) / sizeof(register_t),
sys/arch/hppa/hppa/trap.c
545
offsetof(struct trapframe, tf_r31 ) / sizeof(register_t),
sys/arch/i386/i386/db_machdep.c
62
#define dbreg(xx) (long *)offsetof(db_regs_t, tf_ ## xx)
sys/arch/i386/i386/trap.c
409
offsetof(struct trapframe, tf_eip));
sys/arch/i386/include/cpu.h
64
(*(struct cpu_info * const *)offsetof(struct cpu_info, ci_self)));
sys/arch/i386/include/cpu.h
76
(*(struct cpu_info * const *)offsetof(struct cpu_info, ci_curlwp)));
sys/arch/i386/include/pcb.h
111
__CTASSERT(offsetof(struct pcb, pcb_savefpu) == 128);
sys/arch/i386/include/reg.h
54
#define tES (offsetof(struct trapframe, tf_es) / sizeof (int))
sys/arch/i386/include/reg.h
55
#define tDS (offsetof(struct trapframe, tf_ds) / sizeof (int))
sys/arch/i386/include/reg.h
56
#define tEDI (offsetof(struct trapframe, tf_edi) / sizeof (int))
sys/arch/i386/include/reg.h
57
#define tESI (offsetof(struct trapframe, tf_esi) / sizeof (int))
sys/arch/i386/include/reg.h
58
#define tEBP (offsetof(struct trapframe, tf_ebp) / sizeof (int))
sys/arch/i386/include/reg.h
59
#define tEBX (offsetof(struct trapframe, tf_ebx) / sizeof (int))
sys/arch/i386/include/reg.h
60
#define tEDX (offsetof(struct trapframe, tf_edx) / sizeof (int))
sys/arch/i386/include/reg.h
61
#define tECX (offsetof(struct trapframe, tf_ecx) / sizeof (int))
sys/arch/i386/include/reg.h
62
#define tEAX (offsetof(struct trapframe, tf_eax) / sizeof (int))
sys/arch/i386/include/reg.h
64
#define tEIP (offsetof(struct trapframe, tf_eip) / sizeof (int))
sys/arch/i386/include/reg.h
65
#define tCS (offsetof(struct trapframe, tf_cs) / sizeof (int))
sys/arch/i386/include/reg.h
66
#define tEFLAGS (offsetof(struct trapframe, tf_eflags) / sizeof (int))
sys/arch/i386/include/reg.h
67
#define tESP (offsetof(struct trapframe, tf_esp) / sizeof (int))
sys/arch/i386/include/reg.h
68
#define tSS (offsetof(struct trapframe, tf_ss) / sizeof (int))
sys/arch/i386/stand/lib/biosdisk.c
192
#define MBR_PARTS(buf) ((char *)(buf) + offsetof(struct mbr_sector, mbr_parts))
sys/arch/i386/stand/lib/bootinfo_biosgeom.c
119
if (ed.size >= offsetof(struct biosdisk_ext13info, checksum)
sys/arch/ia64/ia64/db_interface.c
224
#define DB_OFFSET(x) (db_expr_t *)offsetof(struct trapframe, x)
sys/arch/ia64/stand/efi/libefi/efifs.c
275
if (EFI_ERROR(status) || sz < offsetof(EFI_FILE_INFO, FileName))
sys/arch/ia64/stand/efi/libefi/efifs.c
286
d->d_namlen = ((info->Size - offsetof(EFI_FILE_INFO, FileName))
sys/arch/m68k/m68k/db_trace.c
508
regp = tfp + offsetof(struct frame, f_sr);
sys/arch/m68k/m68k/db_trace.c
515
regp = tfp + offsetof(struct frame, f_pc);
sys/arch/m68k/m68k/pmap_68k.c
1251
.rbto_node_offset = offsetof(struct pmap_table, pt_node),
sys/arch/mips/adm5120/dev/if_admswvar.h
104
#define ADMSW_CDOFF(x) offsetof(struct admsw_control_data, x)
sys/arch/mips/atheros/dev/aevar.h
84
#define AE_CDOFF(x) offsetof(struct ae_control_data, x)
sys/arch/mips/cavium/dev/if_cnmac.c
628
char _sqe_s_entry_pad[offsetof(struct mbuf, m_nextpkt)];
sys/arch/mips/cavium/dev/if_cnmac.c
632
char _sqe_s_gbuf_pad[offsetof(struct mbuf, m_paddr)];
sys/arch/mips/cavium/octeonvar.h
161
offsetof(struct octeon_cvmseg_map, entry)
sys/arch/mips/cavium/octeonvar.h
163
(offsetof(struct octeon_cvmseg_map, csm_ether) + \
sys/arch/mips/cavium/octeonvar.h
165
offsetof(struct octeon_cvmseg_ether_map, entry))
sys/arch/mips/mips/mips_machdep.c
181
#define _LOAD_V0_L_PRIVATE_A0 _MKINSN(OP_LD, _R_A0, _R_V0, 0, offsetof(lwp_t, l_private))
sys/arch/mips/mips/mips_machdep.c
184
#define _LOAD_V0_L_PRIVATE_A0 _MKINSN(OP_LW, _R_A0, _R_V0, 0, offsetof(lwp_t, l_private))
sys/arch/mips/mips/netbsd32_machdep.c
124
sfsz = offsetof(struct sigframe_siginfo32, sf_uc.uc_mcontext);
sys/arch/powerpc/booke/dev/pq3etsec.c
1309
offsetof(struct pq3etsec_mapcache, dmc_maps[dmc->dmc_maxmaps]);
sys/arch/powerpc/booke/dev/pq3etsec.c
1326
offsetof(struct pq3etsec_mapcache, dmc_maps[maxmaps]);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
170
#define EMAC_CDOFF(x) offsetof(struct emac_control_data, x)
sys/arch/prep/stand/boot/siop.c
681
const int off_msg_in = offsetof(struct siop_common_xfer, msg_in);
sys/arch/prep/stand/boot/siop.c
682
const int off_status = offsetof(struct siop_common_xfer, status);
sys/arch/riscv/riscv/db_machdep.c
58
{ "ra", (void *)offsetof(struct trapframe, tf_ra), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
59
{ "sp", (void *)offsetof(struct trapframe, tf_sp), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
60
{ "gp", (void *)offsetof(struct trapframe, tf_gp), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
61
{ "tp", (void *)offsetof(struct trapframe, tf_tp), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
62
{ "s0", (void *)offsetof(struct trapframe, tf_s0), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
63
{ "s1", (void *)offsetof(struct trapframe, tf_s1), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
64
{ "s2", (void *)offsetof(struct trapframe, tf_s2), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
65
{ "s3", (void *)offsetof(struct trapframe, tf_s3), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
66
{ "s4", (void *)offsetof(struct trapframe, tf_s4), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
67
{ "s5", (void *)offsetof(struct trapframe, tf_s5), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
68
{ "s6", (void *)offsetof(struct trapframe, tf_s6), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
69
{ "s7", (void *)offsetof(struct trapframe, tf_s7), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
70
{ "s8", (void *)offsetof(struct trapframe, tf_s8), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
71
{ "s9", (void *)offsetof(struct trapframe, tf_s9), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
72
{ "s10", (void *)offsetof(struct trapframe, tf_s10), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
73
{ "s11", (void *)offsetof(struct trapframe, tf_s11), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
74
{ "a0", (void *)offsetof(struct trapframe, tf_a0), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
75
{ "a1", (void *)offsetof(struct trapframe, tf_a1), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
76
{ "a2", (void *)offsetof(struct trapframe, tf_a2), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
77
{ "a3", (void *)offsetof(struct trapframe, tf_a3), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
78
{ "a4", (void *)offsetof(struct trapframe, tf_a4), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
79
{ "a5", (void *)offsetof(struct trapframe, tf_a5), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
80
{ "a6", (void *)offsetof(struct trapframe, tf_a6), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
81
{ "a7", (void *)offsetof(struct trapframe, tf_a7), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
82
{ "t0", (void *)offsetof(struct trapframe, tf_t0), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
83
{ "t1", (void *)offsetof(struct trapframe, tf_t1), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
84
{ "t2", (void *)offsetof(struct trapframe, tf_t2), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
85
{ "t3", (void *)offsetof(struct trapframe, tf_t3), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
86
{ "t4", (void *)offsetof(struct trapframe, tf_t4), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
87
{ "t5", (void *)offsetof(struct trapframe, tf_t5), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
88
{ "t6", (void *)offsetof(struct trapframe, tf_t6), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
89
{ "pc", (void *)offsetof(struct trapframe, tf_pc), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_machdep.c
90
{ "status", (void *)offsetof(struct trapframe, tf_sr), db_rw_ddbreg, "i" },
sys/arch/riscv/riscv/db_machdep.c
91
{ "cause", (void *)offsetof(struct trapframe, tf_cause), db_rw_ddbreg, "i" },
sys/arch/riscv/riscv/db_machdep.c
92
{ "tval", (void *)offsetof(struct trapframe, tf_tval), db_rw_ddbreg, NULL },
sys/arch/riscv/riscv/db_trace.c
192
db_read_bytes((db_addr_t)pp + offsetof(proc_t, p_lwps.lh_first),
sys/arch/sgimips/hpc/sqvar.h
67
#define SQ_CDOFF(x) offsetof(struct sq_control, x)
sys/arch/sgimips/mace/if_mec.c
276
#define MEC_CDOFF(x) offsetof(struct mec_control_data, x)
sys/arch/sh3/sh3/disksubr.c
236
offset = offsetof(struct disklabel,
sys/arch/sparc/dev/cgtwo.c
191
offsetof(struct cg2fb, status.reg),
sys/arch/sparc/dev/cgtwo.c
199
offsetof(struct cg2fb, redmap[0]),
sys/arch/sparc/sparc/db_machdep.c
51
#define dbreg(xx) (long *)offsetof(db_regs_t, db_tf.tf_ ## xx)
sys/arch/sparc/sparc/db_machdep.c
52
#define dbregfr(xx) (long *)offsetof(db_regs_t, db_fr.fr_ ## xx)
sys/arch/sparc/sparc/syscall.c
164
offsetof(struct frame, fr_argx);
sys/arch/sparc64/dev/iommu.c
194
offsetof(struct iommureg, iommu_cr)),
sys/arch/sparc64/dev/iommu.c
197
offsetof(struct iommureg, iommu_tsb)));
sys/arch/sparc64/dev/iommureg.h
80
#define IOMMUREG(x) (offsetof(struct iommureg2, x))
sys/arch/sparc64/dev/iommureg.h
81
#define STRBUFREG(x) (offsetof(struct iommu_strbuf, x))
sys/arch/sparc64/dev/psycho.c
1037
offsetof(struct psychoreg, psy_iommu),
sys/arch/sparc64/dev/psycho.c
1545
offsetof(struct psychoreg, pci_dma_write_sync));
sys/arch/sparc64/dev/psycho.c
392
offsetof(struct psychoreg, psy_pcictl),
sys/arch/sparc64/dev/psycho.c
406
offsetof(struct psychoreg, psy_pcictl),
sys/arch/sparc64/dev/psycho.c
414
offsetof(struct psychoreg, psy_csr));
sys/arch/sparc64/dev/psycho.c
451
offsetof(struct pci_ctl, pci_csr));
sys/arch/sparc64/dev/psycho.c
461
offsetof(struct pci_ctl, pci_csr), csr);
sys/arch/sparc64/dev/psycho.c
613
offsetof(struct pci_ctl, pci_strbuf),
sys/arch/sparc64/dev/psycho.c
660
offsetof(struct pci_ctl, pci_strbuf),
sys/arch/sparc64/dev/schizo.c
234
pbm->sp_bus_a ? offsetof(struct schizo_regs, pbm_a) :
sys/arch/sparc64/dev/schizo.c
235
offsetof(struct schizo_regs, pbm_b),
sys/arch/sparc64/dev/schizo.c
258
offsetof(struct schizo_pbm_regs, strbuf),
sys/arch/sparc64/dev/schizo.c
477
offsetof(struct schizo_pbm_regs, iommu),
sys/arch/sparc64/dev/schizo.c
584
mapoff = offsetof(struct schizo_pbm_regs, imap[ino]);
sys/arch/sparc64/dev/schizo.c
585
clroff = offsetof(struct schizo_pbm_regs, iclr[ino]);
sys/arch/sparc64/dev/schizo.c
831
mapoff = offsetof(struct schizo_pbm_regs, imap[ino]);
sys/arch/sparc64/dev/schizo.c
832
clroff = offsetof(struct schizo_pbm_regs, iclr[ino]);
sys/arch/sparc64/sparc64/db_machdep.c
144
#define dbreg(xx) (long *)offsetof(db_regs_t, db_tf.tf_ ## xx)
sys/arch/sparc64/sparc64/db_machdep.c
145
#define dbregfr(xx) (long *)offsetof(db_regs_t, db_fr.fr_ ## xx)
sys/arch/sparc64/sparc64/db_machdep.c
146
#define dbregfp(xx) (long *)offsetof(db_regs_t, db_fpstate.fs_ ## xx)
sys/arch/sparc64/sparc64/machdep.c
2687
offsetof(struct kern_msgbuf, msg_bufc);
sys/arch/sparc64/sparc64/syscall.c
103
#ifndef offsetof
sys/arch/sparc64/sparc64/syscall.c
207
offsetof(struct frame64, fr_argx);
sys/arch/sparc64/sparc64/syscall.c
224
offsetof(struct frame32, fr_argx);
sys/arch/sparc64/sparc64/trap.c
717
+ offsetof(struct mmufsa, dfa);
sys/arch/sparc64/sparc64/trap.c
725
+ offsetof(struct mmufsa, ifa);
sys/arch/sparc64/sparc64/trap.c
750
paddr_t mmufsa_dfa_addr = cpus->ci_mmufsa + offsetof(struct mmufsa, dfa);
sys/arch/sparc64/sparc64/trap.c
751
paddr_t mmufsa_dfc_addr = cpus->ci_mmufsa + offsetof(struct mmufsa, dfc);
sys/arch/sparc64/sparc64/trap.c
92
#ifndef offsetof
sys/arch/sun2/dev/if_ie_mbmem.c
248
bus_space_read_2(sc->ievt, sc->ievh, offsetof(struct iembmem, reg))
sys/arch/sun2/dev/if_ie_mbmem.c
250
bus_space_write_2(sc->ievt, sc->ievh, offsetof(struct iembmem, reg), val)
sys/arch/sun3/dev/sebuf.c
101
pa = ca->ca_paddr + offsetof(struct sebuf_regs, se_scsi_regs);
sys/arch/sun3/dev/sebuf.c
115
pa = ca->ca_paddr + offsetof(struct sebuf_regs, se_eth_regs);
sys/arch/usermode/usermode/pmap.c
982
memcpy(pv, npv, offsetof(struct pv_entry, pv_pflags));
sys/arch/usermode/usermode/pmap.c
986
memset(pv, 0, offsetof(struct pv_entry, pv_pflags));
sys/arch/vax/vsa/gpx.c
1294
if (status == offsetof(struct adder, status))
sys/arch/vax/vsa/gpx.c
300
if (status == offsetof(struct adder, status))
sys/arch/x86/x86/fpu.c
160
PAGE_SIZE - offsetof(struct pcb, pcb_savefpusmall);
sys/arch/x86/x86/pmap.c
2222
((uintptr_t)node - offsetof(struct pv_entry, pve_rb));
sys/arch/x86/x86/pmap.c
2276
offsetof(struct pv_entry, pve_rb));
sys/arch/x86/x86/pmap.c
486
.rbto_node_offset = offsetof(struct pv_entry, pve_rb),
sys/arch/x86/x86/svs.c
553
offsetof(struct pcpu_entry, rsp0), true);
sys/arch/x86/x86/sys_machdep.c
458
CTASSERT(offsetof(struct cpu_tss, iomap) -
sys/arch/x86/x86/sys_machdep.c
459
offsetof(struct cpu_tss, tss) == IOMAP_VALIDOFF);
sys/arch/x86/x86/syscall.c
100
CTASSERT(offsetof(struct trapframe, tf_arg9) >=
sys/arch/x86/x86/vm_machdep.c
145
memcpy(pcb2, pcb1, offsetof(struct pcb, pcb_savefpu));
sys/arch/xen/xen/genfb_xen.c
77
offsetof(dom0_vga_console_info_t, u.vesa_lfb.ext_lfb_base)) {
sys/arch/xen/xen/xennet_checksum.c
155
m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
sys/arch/xen/xen/xennet_checksum.c
165
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/coda/coda_namecache.h
83
#define DATA_SIZE (sizeof(struct coda_cache) - offsetof(struct coda_cache, cp))
sys/compat/common/ieee80211_20.c
84
offsetof(struct ieee80211_stats, __lastmemb) - \
sys/compat/common/ieee80211_20.c
85
offsetof(struct ieee80211_stats, __srcmemb))
sys/compat/linux/arch/i386/linux_ptrace.c
116
#define LUSR_OFF(member) offsetof(struct linux_user, member)
sys/compat/linux/arch/powerpc/linux_ptrace.c
92
#define LUSR_OFF(member) offsetof(struct linux_user, member)
sys/compat/linux/arch/powerpc/linux_ptrace.c
93
#define LUSR_REG_OFF(member) offsetof(struct linux_pt_regs, member)
sys/compat/linux/common/linux_socket.c
1620
namelen <= offsetof(struct sockaddr_big, sb_data))
sys/compat/netbsd32/netbsd32_fs.c
1109
offsetof(struct nfs_args, fh)
sys/compat/netbsd32/netbsd32_fs.c
1110
- offsetof(struct nfs_args, addrlen));
sys/compat/netbsd32/netbsd32_fs.c
1115
offsetof(struct nfs_args, hostname)
sys/compat/netbsd32/netbsd32_fs.c
1116
- offsetof(struct nfs_args, fhsize));
sys/compat/netbsd32/netbsd32_fs.c
979
offsetof(struct nfs_args, fh)
sys/compat/netbsd32/netbsd32_fs.c
980
- offsetof(struct nfs_args, addrlen));
sys/compat/netbsd32/netbsd32_fs.c
985
offsetof(struct nfs_args, hostname)
sys/compat/netbsd32/netbsd32_fs.c
986
- offsetof(struct nfs_args, fhsize));
sys/dev/acpi/apei_einj.c
161
sizeof(*einj) - offsetof(ACPI_TABLE_EINJ, HeaderLength)) {
sys/dev/acpi/apei_einj.c
165
sizeof(*einj) - offsetof(ACPI_TABLE_EINJ, HeaderLength));
sys/dev/acpi/apei_erst.c
233
sizeof(*erst) - offsetof(ACPI_TABLE_ERST, HeaderLength)) {
sys/dev/acpi/apei_erst.c
237
sizeof(*erst) - offsetof(ACPI_TABLE_ERST, HeaderLength));
sys/dev/acpi/apei_interp.c
164
I = kmem_zalloc(offsetof(struct apei_interp, actinst[nact]), KM_SLEEP);
sys/dev/acpi/apei_interp.c
201
kmem_free(I, offsetof(struct apei_interp, actinst[nact]));
sys/dev/dkwedge/dkwedge_bsdlabel.c
101
(offsetof(struct disklabel, d_partitions) + \
sys/dev/efi.c
273
offsetof(struct EFI_SYSTEM_RESOURCE_TABLE, Entries);
sys/dev/efi.c
280
const size_t len = offsetof(struct EFI_SYSTEM_RESOURCE_TABLE,
sys/dev/eisa/ahb.c
866
offsetof(struct ahb_ecb, ecb_sense);
sys/dev/eisa/ahb.c
869
offsetof(struct ahb_ecb, ecb_status);
sys/dev/eisa/ahb.c
926
offsetof(struct ahb_ecb, ahb_dma);
sys/dev/hyperv/hvs.c
292
.reqlen = offsetof(struct hvs_cmd_io, _reserved),
sys/dev/hyperv/hvs.c
300
.reqlen = offsetof(struct hvs_cmd_io, _reserved),
sys/dev/hyperv/if_hvn.c
4265
offsetof(struct ndis_rssprm_toeplitz, rss_ind[0]);
sys/dev/hyperv/if_hvn.c
4268
offsetof(struct ndis_rssprm_toeplitz, rss_key[0]);
sys/dev/hyperv/if_hvnreg.h
219
offsetof(struct rndis_pktinfo, rm_data[dlen])
sys/dev/hyperv/vmbus.c
618
msg_pa + offsetof(struct vmbus_msg, msg_req));
sys/dev/hyperv/vmbusic.c
149
if (dlen < offsetof(struct vmbus_icmsg_negotiate, ic_ver[cnt])) {
sys/dev/hyperv/vmbusic.c
51
offsetof(struct vmbus_icmsg_negotiate, ic_ver[VMBUS_IC_VERCNT])
sys/dev/hyperv/vmbusicreg.h
101
offsetof(struct vmbus_icmsg_heartbeat, ic_rsvd[0])
sys/dev/hyperv/vmbusicreg.h
113
offsetof(struct vmbus_icmsg_shutdown, ic_msg[0])
sys/dev/hyperv/vmbusvar.h
59
__CTASSERT((offsetof(struct vmbus_msg, msg_req) % 8) == 0);
sys/dev/ic/aac.c
1230
offsetof(struct aac_common, ac_sync_fib);
sys/dev/ic/aac.c
647
offsetof(struct aac_common, ac_fibs));
sys/dev/ic/aac.c
654
offsetof(struct aac_common, ac_printf));
sys/dev/ic/aac.c
694
qoff = offsetof(struct aac_common, ac_qbuf) + AAC_QUEUE_ALIGN;
sys/dev/ic/aac.c
783
sc->sc_common_seg.ds_addr + offsetof(struct aac_common, ac_init),
sys/dev/ic/adv.c
142
offsetof(struct adv_control, overrun_buf);
sys/dev/ic/adv.c
575
ADV_CCB_OFF(ccb) + offsetof(struct adv_ccb, scsi_sense);
sys/dev/ic/adv.h
80
#define ADV_CCB_OFF(c) (offsetof(struct adv_control, ccbs[0]) + \
sys/dev/ic/adw.c
654
ADW_CCB_OFF(ccb) + offsetof(struct adw_ccb, scsi_sense));
sys/dev/ic/adw.c
744
offsetof(struct adw_ccb, sg_block[0]);
sys/dev/ic/adw.h
98
#define ADW_CCB_OFF(c) (offsetof(struct adw_control, ccbs[0]) + \
sys/dev/ic/adwlib.c
1735
ADW_CCB_OFF(ccb) + offsetof(struct adw_ccb, scsiq);
sys/dev/ic/aha.c
1015
offsetof(struct aha_control, ac_mbx), mailbox.cmd.addr);
sys/dev/ic/aha.c
1250
offsetof(struct aha_ccb, scat_gath),
sys/dev/ic/ahavar.h
101
#define AHA_MBO_OFF(m) (offsetof(struct aha_control, ac_mbx.mbo[0]) + \
sys/dev/ic/ahavar.h
107
#define AHA_CCB_OFF(c) (offsetof(struct aha_control, ac_ccbs[0]) + \
sys/dev/ic/ahavar.h
95
#define AHA_MBI_OFF(m) (offsetof(struct aha_control, ac_mbx.mbi[0]) + \
sys/dev/ic/aic6915var.h
97
#define SF_CDOFF(x) offsetof(struct sf_control_data, x)
sys/dev/ic/aic79xx.c
6335
ahd_outb(ahd, LUNPTR, offsetof(struct hardware_scb,
sys/dev/ic/aic79xx.c
6338
ahd_outb(ahd, LUNPTR, offsetof(struct hardware_scb, lun));
sys/dev/ic/aic79xx.c
6340
ahd_outb(ahd, CMDLENPTR, offsetof(struct hardware_scb, cdb_len));
sys/dev/ic/aic79xx.c
6341
ahd_outb(ahd, ATTRPTR, offsetof(struct hardware_scb, task_attribute));
sys/dev/ic/aic79xx.c
6342
ahd_outb(ahd, FLAGPTR, offsetof(struct hardware_scb, task_management));
sys/dev/ic/aic79xx.c
6343
ahd_outb(ahd, CMDPTR, offsetof(struct hardware_scb,
sys/dev/ic/aic79xx.c
6346
offsetof(struct hardware_scb, next_hscb_busaddr));
sys/dev/ic/aic79xx.c
6348
ahd_outb(ahd, ABRTBYTEPTR, offsetof(struct hardware_scb, control));
sys/dev/ic/aic79xx.c
6358
AUSCBPTR_EN | offsetof(struct hardware_scb, tag));
sys/dev/ic/aic79xx.c
9045
maxaddr = offsetof(struct vpd_config, vpd_checksum);
sys/dev/ic/aic79xx.c
9047
for (i = offsetof(struct vpd_config, resource_type); i < maxaddr; i++)
sys/dev/ic/aic79xx.c
9054
maxaddr = offsetof(struct vpd_config, checksum);
sys/dev/ic/aic79xx.c
9055
for (i = offsetof(struct vpd_config, default_target_flags);
sys/dev/ic/aic79xx_osm.h
93
#ifndef offsetof
sys/dev/ic/aic7xxx_inline.h
434
+ offsetof(struct hardware_scb, cdb32));
sys/dev/ic/aic7xxx_osm.h
93
#ifndef offsetof
sys/dev/ic/atw.c
3622
M_PREPEND(m0, offsetof(struct atw_frame, atw_ihdr), M_DONTWAIT);
sys/dev/ic/atwvar.h
76
#define ATW_CDOFF(x) offsetof(struct atw_control_data, x)
sys/dev/ic/bha.c
380
ltophys(ccb->hashkey + offsetof(struct bha_ccb,
sys/dev/ic/bha.c
404
ltophys(ccb->hashkey + offsetof(struct bha_ccb, scsi_sense),
sys/dev/ic/ciss.c
1345
sc->cfgoff + offsetof(struct ciss_config, heartbeat));
sys/dev/ic/ciss.c
295
offsetof(struct ciss_config, amethod)) & CISS_METH_READY)
sys/dev/ic/ciss.c
298
offsetof(struct ciss_config, amethod), 4,
sys/dev/ic/ciss.c
303
offsetof(struct ciss_config, amethod)) & CISS_METH_READY)) {
sys/dev/ic/ciss.c
350
ccb->ccb_cmdpa = pa + offsetof(struct ciss_ccb, ccb_cmd);
sys/dev/ic/ciss.c
358
pa += offsetof(struct ciss_ccb, ccb_err);
sys/dev/ic/cissreg.h
540
CTASSERT((offsetof(struct ciss_ccb, ccb_cmd) & 0xf) == 0);
sys/dev/ic/dp83932var.h
129
#define SONIC_CDOFF32(x) offsetof(struct sonic_control_data32, x)
sys/dev/ic/dp83932var.h
98
#define SONIC_CDOFF16(x) offsetof(struct sonic_control_data16, x)
sys/dev/ic/dpt.c
1300
CCB_OFF(sc, ccb) + offsetof(struct dpt_ccb, ccb_sense));
sys/dev/ic/dpt.c
1337
offsetof(struct dpt_ccb, ccb_sg));
sys/dev/ic/dpt.c
886
offsetof(struct dpt_ccb, ccb_sg));
sys/dev/ic/dpt.c
994
CCB_OFF(sc, ccb) + offsetof(struct dpt_ccb, ccb_sense));
sys/dev/ic/dwc_eqos.c
1229
DESC_OFF(start) + offsetof(struct eqos_dma_desc, tdes3),
sys/dev/ic/dwc_eqos.c
423
DESC_OFF(index), offsetof(struct eqos_dma_desc, tdes3),
sys/dev/ic/esiop.c
1966
offsetof(struct siop_common_xfer, msg_in));
sys/dev/ic/esiop.c
1969
offsetof(struct siop_common_xfer, msg_in) + 1);
sys/dev/ic/esiop.c
1971
offsetof(struct siop_common_xfer, msg_in) + 3);
sys/dev/ic/esiop.c
1974
offsetof(struct siop_common_xfer, status));
sys/dev/ic/gemvar.h
83
#define GEM_CDOFF(x) offsetof(struct gem_control_data, x)
sys/dev/ic/hd64570.c
227
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_chainp)));
sys/dev/ic/hd64570.c
242
+ offsetof(struct sca_desc, sd_chainp), cp);
sys/dev/ic/hd64570.c
258
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_bufp));
sys/dev/ic/hd64570.c
261
+ offsetof(struct sca_desc, sd_hbufp)) << 16;
sys/dev/ic/hd64570.c
278
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_bufp),
sys/dev/ic/hd64570.c
281
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_hbufp),
sys/dev/ic/hd64570.c
295
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_buflen)));
sys/dev/ic/hd64570.c
309
+ offsetof(struct sca_desc, sd_buflen), len);
sys/dev/ic/hd64570.c
321
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_stat)));
sys/dev/ic/hd64570.c
334
sca_page_addr(sc, dp) + offsetof(struct sca_desc, sd_stat),
sys/dev/ic/i82557var.h
145
#define FXP_CDOFF(x) offsetof(struct fxp_control_data, x)
sys/dev/ic/mfi.c
2175
((uint8_t *)cfg) + offsetof(struct mfi_conf, mfc_array) +
sys/dev/ic/mfi.c
2463
((uint8_t *)cfg) + offsetof(struct mfi_conf, mfc_array) +
sys/dev/ic/mfi.c
2903
offsetof(struct mfi_mpi2_request_raid_scsi_io, SGL) / 4;
sys/dev/ic/mfi.c
2905
offsetof(struct mfi_mpi2_request_raid_scsi_io, SGL) / 16;
sys/dev/ic/mfi.c
3228
offsetof(struct mfi_mpi2_request_raid_scsi_io, SGL) / 4;
sys/dev/ic/mfi.c
650
offsetof(struct mfi_prod_cons, mpc_reply_q));
sys/dev/ic/mfi.c
652
offsetof(struct mfi_prod_cons, mpc_producer));
sys/dev/ic/mfi.c
654
offsetof(struct mfi_prod_cons, mpc_consumer));
sys/dev/ic/mfireg.h
212
(offsetof(struct mfi_mpi2_request_raid_scsi_io, SGL) / 16)
sys/dev/ic/ndisreg.h
137
offsetof(struct ndis_offload_params, ndis_rsc_ip4)
sys/dev/ic/ndisreg.h
187
offsetof(struct ndis_rss_caps, ndis_pad)
sys/dev/ic/ndisreg.h
189
offsetof(struct ndis_rss_caps, ndis_nind)
sys/dev/ic/ndisreg.h
225
offsetof(struct ndis_rss_params, ndis_cpumaskoffset)
sys/dev/ic/ndisreg.h
247
offsetof(struct ndis_rssprm_toeplitz, rss_ind[nind])
sys/dev/ic/ndisreg.h
364
offsetof(struct ndis_offload, ndis_ipsecv2)
sys/dev/ic/ndisreg.h
366
offsetof(struct ndis_offload, ndis_rsc)
sys/dev/ic/ninjaata32.c
151
offsetof(struct njata32_dma_page, dp_sg[devno]);
sys/dev/ic/ninjascsi32.c
466
sc->sc_ap_dma = dmaaddr + offsetof(struct njsc32_dma_page, dp_ap);
sys/dev/ic/ninjascsi32.c
474
offsetof(struct njsc32_dma_page, dp_sg[i]);
sys/dev/ic/ninjascsi32.c
980
offsetof(struct njsc32_dma_page, dp_ap), /* offset */
sys/dev/ic/oosiop.c
1184
offsetof(struct oosiop_xfer, msgin[2]));
sys/dev/ic/oosiop.c
1350
offsetof(struct oosiop_xfer, msgout[0]));
sys/dev/ic/oosiop.c
172
offsetof(struct oosiop_xfer, msgin[0]);
sys/dev/ic/oosiop.c
541
offsetof(struct oosiop_xfer, datain_scr[0]));
sys/dev/ic/oosiop.c
543
offsetof(struct oosiop_xfer, dataout_scr[0]));
sys/dev/ic/oosiop.c
545
offsetof(struct oosiop_xfer, msgin[0]));
sys/dev/ic/oosiop.c
547
offsetof(struct oosiop_xfer, msgin[1]));
sys/dev/ic/oosiop.c
549
offsetof(struct oosiop_xfer, msgout[0]));
sys/dev/ic/oosiop.c
551
offsetof(struct oosiop_xfer, status));
sys/dev/ic/oosiop.c
600
if (n >= offsetof(struct oosiop_xfer, datain_scr[0]) &&
sys/dev/ic/oosiop.c
601
n < offsetof(struct oosiop_xfer, datain_scr[OOSIOP_NSG * 2])) {
sys/dev/ic/oosiop.c
602
n -= offsetof(struct oosiop_xfer, datain_scr[0]);
sys/dev/ic/oosiop.c
612
} else if (n >= offsetof(struct oosiop_xfer, dataout_scr[0]) &&
sys/dev/ic/oosiop.c
613
n < offsetof(struct oosiop_xfer, dataout_scr[OOSIOP_NSG * 2])) {
sys/dev/ic/oosiop.c
614
n -= offsetof(struct oosiop_xfer, dataout_scr[0]);
sys/dev/ic/oosiopvar.h
47
#define OOSIOP_XFEROFF(x) offsetof(struct oosiop_xfer, x)
sys/dev/ic/osiopvar.h
121
#define OSIOP_DSOFF(x) offsetof(struct osiop_ds, x)
sys/dev/ic/pcdisplayvar.h
74
_pcdisplay_6845_read(ph, offsetof(struct reg_mc6845, reg))
sys/dev/ic/pcdisplayvar.h
76
_pcdisplay_6845_write(ph, offsetof(struct reg_mc6845, reg), val)
sys/dev/ic/rtw.c
1222
offsetof(struct rtw_descs, hd_rx[desc0]),
sys/dev/ic/rtw.c
1234
offsetof(struct rtw_descs, hd_rx[desc0]),
sys/dev/ic/rtwvar.h
258
#define RTW_DESC_OFFSET(ring, i) offsetof(struct rtw_descs, ring[i])
sys/dev/ic/siop.c
1714
dsa + offsetof(struct siop_common_xfer, msg_in));
sys/dev/ic/siop.c
1717
dsa + offsetof(struct siop_common_xfer, msg_in) + 1);
sys/dev/ic/siop.c
1719
dsa + offsetof(struct siop_common_xfer, msg_in) + 3);
sys/dev/ic/siop.c
1722
dsa + offsetof(struct siop_common_xfer, status) + off);
sys/dev/ic/smc83c170var.h
79
#define EPIC_CDOFF(x) offsetof(struct epic_control_data, x)
sys/dev/ic/tpm.c
556
pktlen < offsetof(struct response, bytes) ||
sys/dev/ic/tpm.c
598
if (nbytes > pktlen - offsetof(struct response, bytes)) {
sys/dev/ic/tpm.c
601
nbytes, pktlen - offsetof(struct response, bytes));
sys/dev/ic/tpm.c
602
nbytes = pktlen - offsetof(struct response, bytes);
sys/dev/ic/tpm.c
696
pktlen < offsetof(struct response, bytes) ||
sys/dev/ic/tpm.c
736
if (nbytes > pktlen - offsetof(struct response, bytes)) {
sys/dev/ic/tpm.c
739
nbytes, pktlen - offsetof(struct response, bytes));
sys/dev/ic/tpm.c
740
nbytes = pktlen - offsetof(struct response, bytes);
sys/dev/ic/tulipvar.h
89
#define TULIP_CDOFF(x) offsetof(struct tulip_control_data, x)
sys/dev/ic/uha.c
459
UHA_MSCP_OFF(mscp) + offsetof(struct uha_mscp, mscp_sense);
sys/dev/ic/uha.c
524
UHA_MSCP_OFF(mscp) + offsetof(struct uha_mscp,
sys/dev/ic/vgavar.h
171
_vga_attr_read(vh, offsetof(struct reg_vgaattr, reg))
sys/dev/ic/vgavar.h
173
_vga_attr_write(vh, offsetof(struct reg_vgaattr, reg), val)
sys/dev/ic/vgavar.h
175
_vga_ts_read(vh, offsetof(struct reg_vgats, reg))
sys/dev/ic/vgavar.h
177
_vga_ts_write(vh, offsetof(struct reg_vgats, reg), val)
sys/dev/ic/vgavar.h
179
_vga_gdc_read(vh, offsetof(struct reg_vgagdc, reg))
sys/dev/ic/vgavar.h
181
_vga_gdc_write(vh, offsetof(struct reg_vgagdc, reg), val)
sys/dev/ic/wi.c
1971
if (wi_read_bap(sc, fid, offsetof(struct wi_frame, wi_tx_swsup2),
sys/dev/ipmi.c
1121
__CTASSERT(offsetof(typeof(u.msg), data) == 2);
sys/dev/ipmi.c
1142
memcpy(buffer, u.msg.data, len - offsetof(typeof(u.msg), data));
sys/dev/isa/wds.c
1205
offsetof(struct wds_scb, scat_gath),
sys/dev/isa/wds.c
740
offsetof(struct wds_scb, cmd), wmbo->scb_addr);
sys/dev/kloader.c
378
+ offsetof(struct kloader_bootinfo, _argbuf);
sys/dev/marvell/if_mvgbe.c
118
offsetof(struct mvgbe_ring_data, mvgbe_tx_ring[(i)]))
sys/dev/marvell/if_mvgbe.c
122
offsetof(struct mvgbe_ring_data, mvgbe_rx_ring[(i)]))
sys/dev/marvell/if_mvgbe.c
124
#define MVGBE_CDOFF(x) offsetof(struct mvgbe_ring_data, x)
sys/dev/marvell/mvxpsecvar.h
189
(offsetof(struct mvxpsec_crypt_sram, packet_header))
sys/dev/marvell/mvxpsecvar.h
191
offsetof(struct mvxpsec_packet_header, desc))
sys/dev/marvell/mvxpsecvar.h
193
offsetof(struct mvxpsec_packet_header, crp_iv_work))
sys/dev/marvell/mvxpsecvar.h
195
offsetof(struct mvxpsec_packet_header, crp_iv_ext))
sys/dev/marvell/mvxpsecvar.h
198
(offsetof(struct mvxpsec_crypt_sram, session_header))
sys/dev/marvell/mvxpsecvar.h
200
offsetof(struct mvxpsec_session_header, crp_key))
sys/dev/marvell/mvxpsecvar.h
202
offsetof(struct mvxpsec_session_header, crp_key_d))
sys/dev/marvell/mvxpsecvar.h
204
offsetof(struct mvxpsec_session_header, miv_in))
sys/dev/marvell/mvxpsecvar.h
206
offsetof(struct mvxpsec_session_header, miv_out))
sys/dev/marvell/mvxpsecvar.h
209
(offsetof(struct mvxpsec_crypt_sram, payload))
sys/dev/mscp/mscp_subr.c
404
offsetof(struct mscp_pack, mp_ca.ca_rspdsc[0])) |
sys/dev/mscp/mscp_subr.c
480
offsetof(struct mscp_pack, mp_rsp[i].mscp_cmdref));
sys/dev/mscp/mscp_subr.c
487
offsetof(struct mscp_pack, mp_cmd[i].mscp_cmdref));
sys/dev/nvmm/x86/nvmm_x86_svm.c
2491
KASSERT(xsave_size < SIZE_MAX - offsetof(struct svm_cpudata, gfpu));
sys/dev/nvmm/x86/nvmm_x86_svm.c
2493
offsetof(struct svm_cpudata, gfpu) + xsave_size);
sys/dev/nvmm/x86/nvmm_x86_svm.c
482
CTASSERT(offsetof(struct vmcb, state) == 0x400);
sys/dev/nvmm/x86/nvmm_x86_vmx.c
3221
KASSERT(xsave_size < SIZE_MAX - offsetof(struct vmx_cpudata, gfpu));
sys/dev/nvmm/x86/nvmm_x86_vmx.c
3223
offsetof(struct vmx_cpudata, gfpu) + xsave_size);
sys/dev/pci/auich.c
155
#define ICH_CDOFF(x) offsetof(struct auich_cdata, x)
sys/dev/pci/cxgb/cxgb_adapter.h
545
#define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field)))
sys/dev/pci/hifn7751.c
1001
offsetof(struct hifn_dma, resr[0]));
sys/dev/pci/hifn7751.c
1259
+ offsetof(struct hifn_dma, test_src));
sys/dev/pci/hifn7751.c
1261
+ offsetof(struct hifn_dma, test_dst));
sys/dev/pci/hifn7751.c
1321
offsetof(struct hifn_dma, test_src));
sys/dev/pci/hifn7751.c
1324
offsetof(struct hifn_dma, test_dst));
sys/dev/pci/hifn7751.c
1377
offsetof(struct hifn_dma, command_bufs[i][0]));
sys/dev/pci/hifn7751.c
1380
offsetof(struct hifn_dma, result_bufs[i][0]));
sys/dev/pci/hifn7751.c
1384
offsetof(struct hifn_dma, cmdr[0]));
sys/dev/pci/hifn7751.c
1387
offsetof(struct hifn_dma, srcr[0]));
sys/dev/pci/hifn7751.c
1390
offsetof(struct hifn_dma, dstr[0]));
sys/dev/pci/hifn7751.c
1393
offsetof(struct hifn_dma, resr[0]));
sys/dev/pci/hifn7751.c
1581
offsetof(struct hifn_dma, slop[cmd->slopidx]);
sys/dev/pci/hifn7751.c
2545
offsetof(struct hifn_dma, dstr[i]), sizeof(struct hifn_desc),
sys/dev/pci/hifn7751.c
2549
offsetof(struct hifn_dma, dstr[i]),
sys/dev/pci/hifn7751.c
2840
offsetof(struct hifn_dma, dstr[i]), sizeof(struct hifn_desc),
sys/dev/pci/hifn7751.c
2844
offsetof(struct hifn_dma, dstr[i]),
sys/dev/pci/hifn7751.c
995
offsetof(struct hifn_dma, cmdr[0]));
sys/dev/pci/hifn7751.c
997
offsetof(struct hifn_dma, srcr[0]));
sys/dev/pci/hifn7751.c
999
offsetof(struct hifn_dma, dstr[0]));
sys/dev/pci/hifn7751var.h
110
offsetof(struct hifn_dma, r[i]), sizeof(struct hifn_desc), (f))
sys/dev/pci/hifn7751var.h
119
offsetof(struct hifn_dma, command_bufs[(i)][0]), \
sys/dev/pci/hifn7751var.h
124
offsetof(struct hifn_dma, result_bufs[(i)][0]), \
sys/dev/pci/if_aq.c
2767
sc->sc_mbox_addr + offsetof(fw1x_mailbox_t, msm), (uint32_t *)stats,
sys/dev/pci/if_aq.c
2787
sc->sc_mbox_addr + offsetof(fw2x_mailbox_t, caps),
sys/dev/pci/if_aq.c
2955
sc->sc_mbox_addr + offsetof(fw2x_mailbox_t, msm), (uint32_t *)stats,
sys/dev/pci/if_aq.c
2985
sc->sc_mbox_addr + offsetof(fw2x_mailbox_t, phy_info2),
sys/dev/pci/if_bge.c
1510
offsetof(struct bge_ring_data, bge_rx_std_ring) +
sys/dev/pci/if_bge.c
1522
offsetof(struct bge_ring_data, bge_rx_std_ring) +
sys/dev/pci/if_bge.c
1585
offsetof(struct bge_ring_data, bge_rx_jumbo_ring) +
sys/dev/pci/if_bge.c
2590
offsetof(struct bge_ring_data, bge_info),
sys/dev/pci/if_bge.c
4494
offsetof(struct bge_ring_data, bge_status_block),
sys/dev/pci/if_bge.c
4505
offset = offsetof(struct bge_ring_data, bge_rx_return_ring);
sys/dev/pci/if_bge.c
4666
offsetof(struct bge_ring_data, bge_status_block),
sys/dev/pci/if_bge.c
4672
offset = offsetof(struct bge_ring_data, bge_tx_ring);
sys/dev/pci/if_bge.c
4759
offsetof(struct bge_ring_data, bge_status_block),
sys/dev/pci/if_bge.c
4790
offsetof(struct bge_ring_data, bge_status_block),
sys/dev/pci/if_bge.c
4905
offsetof(struct bge_mac_stats_regs, etherStatsCollisions)));
sys/dev/pci/if_bge.c
4930
offsetof(struct bge_mac_stats_regs, ifHCOutUcastPkts));
sys/dev/pci/if_bge.c
4932
offsetof(struct bge_mac_stats_regs, ifHCOutMulticastPkts));
sys/dev/pci/if_bge.c
4934
offsetof(struct bge_mac_stats_regs, ifHCOutBroadcastPkts));
sys/dev/pci/if_bge.c
4960
CSR_READ_4(sc, stats + offsetof(struct bge_stats, stat))
sys/dev/pci/if_bge.c
5289
m_copyback(m0, hlen + offsetof(struct ip, ip_len),
sys/dev/pci/if_bge.c
5295
m_copyback(m0, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_bgevar.h
186
offsetof(struct bge_ring_data, offset))
sys/dev/pci/if_bgevar.h
88
rcb + offsetof(struct bge_rcb, offset), val)
sys/dev/pci/if_casvar.h
107
#define CAS_CDOFF(x) offsetof(struct cas_control_data, x)
sys/dev/pci/if_dge.c
1104
DGE_TCPIP_IPCSO(offset + offsetof(struct ip, ip_sum)) |
sys/dev/pci/if_dge.c
1112
DGE_TCPIP_IPCSO(offset + offsetof(struct ip, ip_sum)) |
sys/dev/pci/if_dge.c
1133
DGE_TCPIP_TUCSO(offset + offsetof(struct tcphdr, th_sum)) |
sys/dev/pci/if_dge.c
213
#define DGE_CDOFF(x) offsetof(struct dge_control_data, x)
sys/dev/pci/if_ena.c
2215
offsetof(struct ena_hw_stats, rx_packets));
sys/dev/pci/if_ena.c
3934
offsetof(struct ena_hw_stats, rx_packets));
sys/dev/pci/if_ena.c
3937
offsetof(struct ena_stats_dev, wd_expired));
sys/dev/pci/if_ena.c
447
CTASSERT(offsetof(struct ena_stats_rx, empty_rx_ring)
sys/dev/pci/if_ena.c
469
CTASSERT(offsetof(struct ena_stats_tx, pcq_drops)
sys/dev/pci/if_ena.c
485
CTASSERT(offsetof(struct ena_stats_dev, admin_q_pause)
sys/dev/pci/if_ena.c
502
CTASSERT(offsetof(struct ena_hw_stats, rx_drops)
sys/dev/pci/if_ena.c
604
sizeof(txr->tx_stats), offsetof(struct ena_stats_tx, cnt));
sys/dev/pci/if_ena.c
606
sizeof(rxr->rx_stats), offsetof(struct ena_stats_rx, cnt));
sys/dev/pci/if_ena.c
697
offsetof(struct ena_stats_tx, cnt));
sys/dev/pci/if_ena.c
879
offsetof(struct ena_stats_rx, cnt));
sys/dev/pci/if_iwm.c
1469
+ offsetof(struct iwm_tx_cmd, scratch);
sys/dev/pci/if_ixl.c
295
{ offsetof(struct ixl_hmc_rxq, head), 13, 0 },
sys/dev/pci/if_ixl.c
296
{ offsetof(struct ixl_hmc_rxq, cpuid), 8, 13 },
sys/dev/pci/if_ixl.c
297
{ offsetof(struct ixl_hmc_rxq, base), 57, 32 },
sys/dev/pci/if_ixl.c
298
{ offsetof(struct ixl_hmc_rxq, qlen), 13, 89 },
sys/dev/pci/if_ixl.c
299
{ offsetof(struct ixl_hmc_rxq, dbuff), 7, 102 },
sys/dev/pci/if_ixl.c
300
{ offsetof(struct ixl_hmc_rxq, hbuff), 5, 109 },
sys/dev/pci/if_ixl.c
301
{ offsetof(struct ixl_hmc_rxq, dtype), 2, 114 },
sys/dev/pci/if_ixl.c
302
{ offsetof(struct ixl_hmc_rxq, dsize), 1, 116 },
sys/dev/pci/if_ixl.c
303
{ offsetof(struct ixl_hmc_rxq, crcstrip), 1, 117 },
sys/dev/pci/if_ixl.c
304
{ offsetof(struct ixl_hmc_rxq, fc_ena), 1, 118 },
sys/dev/pci/if_ixl.c
305
{ offsetof(struct ixl_hmc_rxq, l2sel), 1, 119 },
sys/dev/pci/if_ixl.c
306
{ offsetof(struct ixl_hmc_rxq, hsplit_0), 4, 120 },
sys/dev/pci/if_ixl.c
307
{ offsetof(struct ixl_hmc_rxq, hsplit_1), 2, 124 },
sys/dev/pci/if_ixl.c
308
{ offsetof(struct ixl_hmc_rxq, showiv), 1, 127 },
sys/dev/pci/if_ixl.c
309
{ offsetof(struct ixl_hmc_rxq, rxmax), 14, 174 },
sys/dev/pci/if_ixl.c
310
{ offsetof(struct ixl_hmc_rxq, tphrdesc_ena), 1, 193 },
sys/dev/pci/if_ixl.c
311
{ offsetof(struct ixl_hmc_rxq, tphwdesc_ena), 1, 194 },
sys/dev/pci/if_ixl.c
312
{ offsetof(struct ixl_hmc_rxq, tphdata_ena), 1, 195 },
sys/dev/pci/if_ixl.c
313
{ offsetof(struct ixl_hmc_rxq, tphhead_ena), 1, 196 },
sys/dev/pci/if_ixl.c
314
{ offsetof(struct ixl_hmc_rxq, lrxqthresh), 3, 198 },
sys/dev/pci/if_ixl.c
315
{ offsetof(struct ixl_hmc_rxq, prefena), 1, 201 },
sys/dev/pci/if_ixl.c
345
{ offsetof(struct ixl_hmc_txq, head), 13, 0 },
sys/dev/pci/if_ixl.c
346
{ offsetof(struct ixl_hmc_txq, new_context), 1, 30 },
sys/dev/pci/if_ixl.c
347
{ offsetof(struct ixl_hmc_txq, base), 57, 32 },
sys/dev/pci/if_ixl.c
348
{ offsetof(struct ixl_hmc_txq, fc_ena), 1, 89 },
sys/dev/pci/if_ixl.c
349
{ offsetof(struct ixl_hmc_txq, timesync_ena), 1, 90 },
sys/dev/pci/if_ixl.c
350
{ offsetof(struct ixl_hmc_txq, fd_ena), 1, 91 },
sys/dev/pci/if_ixl.c
351
{ offsetof(struct ixl_hmc_txq, alt_vlan_ena), 1, 92 },
sys/dev/pci/if_ixl.c
352
{ offsetof(struct ixl_hmc_txq, cpuid), 8, 96 },
sys/dev/pci/if_ixl.c
354
{ offsetof(struct ixl_hmc_txq, thead_wb), 13, 0 + 128 },
sys/dev/pci/if_ixl.c
355
{ offsetof(struct ixl_hmc_txq, head_wb_ena), 1, 32 + 128 },
sys/dev/pci/if_ixl.c
356
{ offsetof(struct ixl_hmc_txq, qlen), 13, 33 + 128 },
sys/dev/pci/if_ixl.c
357
{ offsetof(struct ixl_hmc_txq, tphrdesc_ena), 1, 46 + 128 },
sys/dev/pci/if_ixl.c
358
{ offsetof(struct ixl_hmc_txq, tphrpacket_ena), 1, 47 + 128 },
sys/dev/pci/if_ixl.c
359
{ offsetof(struct ixl_hmc_txq, tphwdesc_ena), 1, 48 + 128 },
sys/dev/pci/if_ixl.c
360
{ offsetof(struct ixl_hmc_txq, head_wb_addr), 64, 64 + 128 },
sys/dev/pci/if_ixl.c
362
{ offsetof(struct ixl_hmc_txq, crc), 32, 0 + (7*128) },
sys/dev/pci/if_ixl.c
363
{ offsetof(struct ixl_hmc_txq, rdylist), 10, 84 + (7*128) },
sys/dev/pci/if_ixl.c
364
{ offsetof(struct ixl_hmc_txq, rdylist_act), 1, 94 + (7*128) },
sys/dev/pci/if_jme.c
1368
ETHER_HDR_LEN + offsetof(struct ip, ip_len),
sys/dev/pci/if_jme.c
1380
offsetof(struct ip6_hdr, ip6_plen),
sys/dev/pci/if_jme.c
1386
m_copyback(m, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_kse.c
210
#define KSE_CDOFF(x) offsetof(struct kse_control_data, x)
sys/dev/pci/if_mcx.c
1100
CTASSERT(offsetof(struct mcx_cap_device, max_indirection) == 0x20);
sys/dev/pci/if_mcx.c
1101
CTASSERT(offsetof(struct mcx_cap_device, flags1) == 0x2c);
sys/dev/pci/if_mcx.c
1102
CTASSERT(offsetof(struct mcx_cap_device, flags2) == 0x30);
sys/dev/pci/if_mcx.c
1103
CTASSERT(offsetof(struct mcx_cap_device, snapshot_log_max_msg) == 0x38);
sys/dev/pci/if_mcx.c
1104
CTASSERT(offsetof(struct mcx_cap_device, flags5) == 0x40);
sys/dev/pci/if_mcx.c
1105
CTASSERT(offsetof(struct mcx_cap_device, flags7) == 0x4c);
sys/dev/pci/if_mcx.c
1106
CTASSERT(offsetof(struct mcx_cap_device, device_frequency_mhz) == 0x98);
sys/dev/pci/if_mcx.c
1107
CTASSERT(offsetof(struct mcx_cap_device, device_frequency_khz) == 0x9c);
sys/dev/pci/if_mcx.c
500
CTASSERT((offsetof(struct mcx_reg_ppcnt, ppcnt_counter_set) %
sys/dev/pci/if_mcx.c
646
CTASSERT(offsetof(struct mcx_reg_mtmp, mtmp_sensor_name) == 0x18);
sys/dev/pci/if_mskvar.h
131
offsetof(struct msk_ring_data, sk_tx_ring[(i)]))
sys/dev/pci/if_mskvar.h
135
offsetof(struct msk_ring_data, sk_rx_ring[(i)]))
sys/dev/pci/if_mskvar.h
137
#define MSK_CDOFF(x) offsetof(struct msk_ring_data, x)
sys/dev/pci/if_pcn.c
154
#define PCN_CDOFF(x) offsetof(struct pcn_control_data, x)
sys/dev/pci/if_sip.c
162
#define SIP_CDOFF(x) offsetof(struct sip_control_data, x)
sys/dev/pci/if_skvar.h
135
offsetof(struct sk_ring_data, sk_tx_ring[(i)]))
sys/dev/pci/if_skvar.h
139
offsetof(struct sk_ring_data, sk_rx_ring[(i)]))
sys/dev/pci/if_skvar.h
141
#define SK_CDOFF(x) offsetof(struct sk_ring_data, x)
sys/dev/pci/if_ste.c
103
#define STE_CDOFF(x) offsetof(struct ste_control_data, x)
sys/dev/pci/if_stge.c
115
#define STGE_CDOFF(x) offsetof(struct stge_control_data, x)
sys/dev/pci/if_tireg.h
1031
#define TI_CDOFF(x) offsetof(struct ti_ring_data, x)
sys/dev/pci/if_vge.c
170
#define VGE_CDOFF(x) offsetof(struct vge_control_data, x)
sys/dev/pci/if_vge.c
243
offsetof(struct vge_txdesc, td_frag[0]), \
sys/dev/pci/if_vge.c
248
offsetof(struct vge_txdesc, td_frag[0]), \
sys/dev/pci/if_vioif.c
546
sc->sc_hdr_size = offsetof(struct virtio_net_hdr, num_buffers);
sys/dev/pci/if_vmx.c
3019
csum_off = offsetof(struct tcphdr, th_sum);
sys/dev/pci/if_vmx.c
3021
csum_off = offsetof(struct udphdr, uh_sum);
sys/dev/pci/if_vr.c
188
#define VR_CDOFF(x) offsetof(struct vr_control_data, x)
sys/dev/pci/if_wm.c
8685
offset + offsetof(struct ip, ip_len),
sys/dev/pci/if_wm.c
8695
offset + offsetof(struct ip6_hdr, ip6_plen),
sys/dev/pci/if_wm.c
8700
m_copyback(m0, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_wm.c
8752
WTX_TCPIP_IPCSO(offset + offsetof(struct ip, ip_sum)) |
sys/dev/pci/if_wm.c
8780
WTX_TCPIP_TUCSO(offset + offsetof(struct tcphdr, th_sum)) |
sys/dev/pci/if_wm.c
9353
offset + offsetof(struct ip, ip_len),
sys/dev/pci/if_wm.c
9363
offset + offsetof(struct ip6_hdr, ip6_plen),
sys/dev/pci/if_wm.c
9368
m_copyback(m0, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_wpi.c
3216
offsetof(struct wpi_shared, next));
sys/dev/pci/ips.c
1285
cmd->sgaddr = htole32(ccb->c_cmdbpa + offsetof(struct ips_cmdb,
sys/dev/pci/ips.c
1673
cmd->sgaddr = htole32(sc->sc_infom.dm_paddr + offsetof(struct ips_info,
sys/dev/pci/ips.c
1694
cmd->sgaddr = htole32(sc->sc_infom.dm_paddr + offsetof(struct ips_info,
sys/dev/pci/ips.c
1715
cmd->sgaddr = htole32(sc->sc_infom.dm_paddr + offsetof(struct ips_info,
sys/dev/pci/ips.c
1737
cmd->sgaddr = htole32(sc->sc_infom.dm_paddr + offsetof(struct ips_info,
sys/dev/pci/ips.c
1759
cmd->sgaddr = htole32(sc->sc_infom.dm_paddr + offsetof(struct ips_info,
sys/dev/pci/ixgbe/ix_txrx.c
882
KASSERT(mp->m_len >= offsetof(struct ether_vlan_header, evl_tag));
sys/dev/pci/ld_virtio.c
1126
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
1135
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
249
offsetof(struct virtio_blk_req, vr_bp),
sys/dev/pci/ld_virtio.c
251
offsetof(struct virtio_blk_req, vr_bp),
sys/dev/pci/ld_virtio.c
263
offsetof(struct virtio_blk_req, vr_bp),
sys/dev/pci/ld_virtio.c
553
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
562
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
663
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
672
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
819
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
828
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
855
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
955
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/ld_virtio.c
963
offsetof(struct virtio_blk_req, vr_status),
sys/dev/pci/mfii.c
3239
((uint8_t *)cfg) + offsetof(struct mfi_conf, mfc_array) +
sys/dev/pci/mfii.c
3843
((uint8_t *)cfg) + offsetof(struct mfi_conf, mfc_array) +
sys/dev/pci/mly.c
1001
offsetof(struct mly_mmbox, mmm_health),
sys/dev/pci/mly.c
1023
offsetof(struct mly_mmbox, mmm_health),
sys/dev/pci/mly.c
840
offsetof(struct mly_mmbox, mmm_health),
sys/dev/pci/mly.c
864
tmp = mly->mly_mmbox_busaddr + offsetof(struct mly_mmbox, mmm_command);
sys/dev/pci/mly.c
867
tmp = mly->mly_mmbox_busaddr + offsetof(struct mly_mmbox, mmm_status);
sys/dev/pci/mly.c
870
tmp = mly->mly_mmbox_busaddr + offsetof(struct mly_mmbox, mmm_health);
sys/dev/pci/pci_map.c
695
offset + offsetof (struct pci_rom_header, romh_magic));
sys/dev/pci/pci_map.c
697
offset + offsetof (struct pci_rom_header, romh_data_ptr));
sys/dev/pci/pci_map.c
712
offsetof(struct pci_rom, rom_vendor));
sys/dev/pci/pci_map.c
714
offsetof(struct pci_rom, rom_product));
sys/dev/pci/pci_map.c
716
ptr + offsetof (struct pci_rom, rom_class));
sys/dev/pci/pci_map.c
718
ptr + offsetof (struct pci_rom, rom_subclass));
sys/dev/pci/pci_map.c
720
ptr + offsetof (struct pci_rom, rom_interface));
sys/dev/pci/pci_map.c
722
ptr + offsetof (struct pci_rom, rom_len));
sys/dev/pci/pci_map.c
724
ptr + offsetof (struct pci_rom, rom_code_type));
sys/dev/pci/pci_map.c
726
ptr + offsetof (struct pci_rom, rom_indicator));
sys/dev/pci/pvscsi.c
325
/*offset*/offsetof(__typeof__(*(structptr)), member), \
sys/dev/pci/qat/qat.c
1708
offsetof(struct qat_sym_cookie, qsc_self_dmamap),
sys/dev/pci/qat/qat.c
1765
qdm->qdm_dma_seg.ds_addr + offsetof(struct qat_sym_cookie,
sys/dev/pci/qat/qat.c
1768
qdm->qdm_dma_seg.ds_addr + offsetof(struct qat_sym_cookie,
sys/dev/pci/qat/qat.c
1771
qdm->qdm_dma_seg.ds_addr + offsetof(struct qat_sym_cookie,
sys/dev/pci/qat/qat.c
1846
offsetof(struct qat_crypto_desc, qcd_hash_state_prefix_buf);
sys/dev/pci/qat/qat.c
1848
offsetof(struct qat_session, qs_enc_desc);
sys/dev/pci/qat/qat.c
1851
offsetof(struct qat_crypto_desc, qcd_hash_state_prefix_buf);
sys/dev/pci/qat/qat.c
199
offsetof(MD5_CTX, state),
sys/dev/pci/qat/qat.c
209
offsetof(SHA1_CTX, state),
sys/dev/pci/qat/qat.c
219
offsetof(SHA256_CTX, state),
sys/dev/pci/qat/qat.c
229
offsetof(SHA384_CTX, state),
sys/dev/pci/qat/qat.c
239
offsetof(SHA512_CTX, state),
sys/dev/pci/qat/qat_ae.c
2043
offsetof(struct mof_file_hdr, mfh_min_ver)),
sys/dev/pci/qat/qat_ae.c
2045
offsetof(struct mof_file_hdr, mfh_min_ver));
sys/dev/pci/qat/qat_ae.c
2343
hdr_size = offsetof(struct uof_str_tab, ust_strings);
sys/dev/pci/qat/qat_ae.c
2445
size - offsetof(struct suof_file_hdr, sfh_min_ver));
sys/dev/pci/qat/qat_ae.c
2466
size -= offsetof(struct suof_str_tab, sst_strings);
sys/dev/pci/qat/qat_ae.c
2473
offsetof(struct suof_str_tab, sst_strings);
sys/dev/pci/qat/qat_c2xxx.c
209
offsetof(struct fw_la_resp, comn_resp.opaque_data),
sys/dev/pci/qat/qat_c3xxx.c
291
.qhw_crypto_opaque_offset = offsetof(struct fw_la_resp, opaque_data),
sys/dev/pci/qat/qat_c62x.c
307
.qhw_crypto_opaque_offset = offsetof(struct fw_la_resp, opaque_data),
sys/dev/pci/qat/qat_d15xx.c
307
.qhw_crypto_opaque_offset = offsetof(struct fw_la_resp, opaque_data),
sys/dev/pci/qat/qatvar.h
594
CTASSERT(offsetof(struct qat_sym_cookie,
sys/dev/pci/qat/qatvar.h
596
CTASSERT(offsetof(struct qat_sym_cookie, qsc_buf_list) % QAT_OPTIMAL_ALIGN == 0);
sys/dev/pci/qat/qatvar.h
655
CTASSERT(offsetof(struct qat_session, qs_dec_desc) % QAT_OPTIMAL_ALIGN == 0);
sys/dev/pci/qat/qatvar.h
656
CTASSERT(offsetof(struct qat_session, qs_enc_desc) % QAT_OPTIMAL_ALIGN == 0);
sys/dev/pci/ubsec.c
1169
memset(q, 0, offsetof(struct ubsec_q, q_src_map));
sys/dev/pci/ubsec.c
1443
offsetof(struct ubsec_dmachunk, d_sbuf[j]));
sys/dev/pci/ubsec.c
1451
offsetof(struct ubsec_dmachunk, d_macbuf[0]));
sys/dev/pci/ubsec.c
1636
offsetof(struct ubsec_dmachunk, d_macbuf[0]));
sys/dev/pci/ubsec.c
1641
offsetof(struct ubsec_dmachunk, d_dbuf[j]));
sys/dev/pci/ubsec.c
1647
offsetof(struct ubsec_dmachunk, d_ctx));
sys/dev/pci/ubsec.c
1657
offsetof(struct ubsec_dmachunk, d_ctx);
sys/dev/pci/ubsec.c
1711
offsetof(struct ubsec_dmachunk, d_ctx));
sys/dev/pci/ubsec.c
1730
offsetof(struct ubsec_dmachunk, d_ctx));
sys/dev/pci/ubsec.c
904
offsetof(struct ubsec_dmachunk, d_mcr));
sys/dev/pci/ubsec.c
932
offsetof(struct ubsec_dmachunk, d_mcr));
sys/dev/pci/universe_pci.c
56
bus_space_read_4(d->csrt, d->csrh, offsetof(struct universereg, reg))
sys/dev/pci/universe_pci.c
58
bus_space_write_4(d->csrt, d->csrh, offsetof(struct universereg, reg), val)
sys/dev/pci/universe_pci.c
60
#define _pso(i) offsetof(struct universereg, __CONCAT(pcislv, i))
sys/dev/pci/universe_pci.c
69
pcislvoffsets[idx] + offsetof(struct universe_pcislvimg, reg))
sys/dev/pci/universe_pci.c
72
pcislvoffsets[idx] + offsetof(struct universe_pcislvimg, reg), val)
sys/dev/pci/universe_pci.c
75
#define _vso(i) offsetof(struct universereg, __CONCAT(vmeslv, i))
sys/dev/pci/universe_pci.c
84
vmeslvoffsets[idx] + offsetof(struct universe_vmeslvimg, reg))
sys/dev/pci/universe_pci.c
87
vmeslvoffsets[idx] + offsetof(struct universe_vmeslvimg, reg), val)
sys/dev/pci/veritefb.c
2236
entry = be32dec(u + offsetof(Elf32_Ehdr, e_entry));
sys/dev/pci/veritefb.c
2237
phoff = be32dec(u + offsetof(Elf32_Ehdr, e_phoff));
sys/dev/pci/veritefb.c
2238
phentsize = be16dec(u + offsetof(Elf32_Ehdr, e_phentsize));
sys/dev/pci/veritefb.c
2239
phnum = be16dec(u + offsetof(Elf32_Ehdr, e_phnum));
sys/dev/pci/veritefb.c
2270
if (be32dec(p + offsetof(Elf32_Phdr, p_type)) != PT_LOAD)
sys/dev/pci/veritefb.c
2272
off = be32dec(p + offsetof(Elf32_Phdr, p_offset));
sys/dev/pci/veritefb.c
2273
filesz = be32dec(p + offsetof(Elf32_Phdr, p_filesz));
sys/dev/pci/veritefb.c
2274
memsz = be32dec(p + offsetof(Elf32_Phdr, p_memsz));
sys/dev/pci/veritefb.c
2275
paddr = be32dec(p + offsetof(Elf32_Phdr, p_paddr));
sys/dev/pci/vioscsi.c
402
offsetof(struct vioscsi_req, vr_req),
sys/dev/pci/vioscsi.c
406
offsetof(struct vioscsi_req, vr_res),
sys/dev/pci/vioscsi.c
414
offsetof(struct vioscsi_req, vr_req),
sys/dev/pci/vioscsi.c
419
offsetof(struct vioscsi_req, vr_res),
sys/dev/pci/vioscsi.c
460
offsetof(struct vioscsi_req, vr_req),
sys/dev/pci/vioscsi.c
464
offsetof(struct vioscsi_req, vr_res),
sys/dev/pci/vioscsi.c
613
offsetof(struct vioscsi_req, vr_xs), 1,
sys/dev/pci/vioscsi.c
614
offsetof(struct vioscsi_req, vr_xs), 0,
sys/dev/pci/vioscsi.c
633
vr, offsetof(struct vioscsi_req, vr_xs), NULL,
sys/dev/pci/virtio.c
502
uint16_t hdrlen = offsetof(struct vring_avail, ring);
sys/dev/pci/virtio.c
515
uint16_t hdrlen = offsetof(struct vring_avail, ring);
sys/dev/pci/virtio.c
524
uint16_t hdrlen = offsetof(struct vring_avail, ring);
sys/dev/pci/virtio.c
534
uint16_t hdrlen = offsetof(struct vring_avail, ring);
sys/dev/pci/virtio.c
547
uint16_t hdrlen = offsetof(struct vring_used, ring);
sys/dev/pci/virtio.c
560
uint16_t hdrlen = offsetof(struct vring_used, ring);
sys/dev/pci/virtio.c
569
uint16_t hdrlen = offsetof(struct vring_used, ring);
sys/dev/pci/virtio.c
579
uint16_t hdrlen = offsetof(struct vring_used, ring);
sys/dev/pci/virtio.c
884
offsetof(struct vring_avail, ring[vq_num]));
sys/dev/pci/virtio.c
888
offsetof(struct vring_used, ring[vq_num]));
sys/dev/pci/xmm7360.c
187
offsetof(TYPE, FIELD)))->FIELD))
sys/dev/pci/xmm7360.c
189
((TYPE *)(((char *)(PTR)) - offsetof(TYPE, FIELD)) \
sys/dev/pci/xmm7360.c
648
xmm->cp->ctl.status = xmm->cp_phys + offsetof(struct control_page, status);
sys/dev/pci/xmm7360.c
649
xmm->cp->ctl.s_wptr = xmm->cp_phys + offsetof(struct control_page, s_wptr);
sys/dev/pci/xmm7360.c
650
xmm->cp->ctl.s_rptr = xmm->cp_phys + offsetof(struct control_page, s_rptr);
sys/dev/pci/xmm7360.c
651
xmm->cp->ctl.c_wptr = xmm->cp_phys + offsetof(struct control_page, c_wptr);
sys/dev/pci/xmm7360.c
652
xmm->cp->ctl.c_rptr = xmm->cp_phys + offsetof(struct control_page, c_rptr);
sys/dev/pci/xmm7360.c
653
xmm->cp->ctl.c_ring = xmm->cp_phys + offsetof(struct control_page, c_ring);
sys/dev/pcmcia/if_ray.c
393
SRAM_READ_1(sc, (off) + offsetof(struct s, f))
sys/dev/pcmcia/if_ray.c
396
((((uint16_t)SRAM_READ_1(sc, (off) + offsetof(struct s, f)) << 8) \
sys/dev/pcmcia/if_ray.c
397
|(SRAM_READ_1(sc, (off) + 1 + offsetof(struct s, f)))))
sys/dev/pcmcia/if_ray.c
400
ray_read_region(sc, (off) + offsetof(struct s, f), (p), (n))
sys/dev/pcmcia/if_ray.c
406
SRAM_WRITE_1(sc, (off) + offsetof(struct s, f), (v))
sys/dev/pcmcia/if_ray.c
409
SRAM_WRITE_1(sc, (off) + offsetof(struct s, f), (((v) >> 8 ) & 0xff)); \
sys/dev/pcmcia/if_ray.c
410
SRAM_WRITE_1(sc, (off) + 1 + offsetof(struct s, f), ((v) & 0xff)); \
sys/dev/pcmcia/if_ray.c
414
ray_write_region(sc, (off) + offsetof(struct s, f), (p), (n))
sys/dev/usb/ehci.c
1051
usb_syncmem(&itd->dma, itd->offs + offsetof(ehci_itd_t, itd_ctl),
sys/dev/usb/ehci.c
1064
usb_syncmem(&itd->dma, itd->offs + offsetof(ehci_itd_t, itd_ctl),
sys/dev/usb/ehci.c
1096
usb_syncmem(&sitd->dma, sitd->offs + offsetof(ehci_sitd_t, sitd_trans),
sys/dev/usb/ehci.c
1102
usb_syncmem(&sitd->dma, sitd->offs + offsetof(ehci_sitd_t, sitd_trans),
sys/dev/usb/ehci.c
1170
itd->offs + offsetof(ehci_itd_t,itd_ctl),
sys/dev/usb/ehci.c
1194
itd->offs + offsetof(ehci_itd_t,itd_ctl),
sys/dev/usb/ehci.c
1214
sitd->offs + offsetof(ehci_sitd_t, sitd_trans),
sys/dev/usb/ehci.c
1230
sitd->offs + offsetof(ehci_sitd_t, sitd_trans),
sys/dev/usb/ehci.c
1744
sqtd->offs + offsetof(ehci_qtd_t, qtd_next),
sys/dev/usb/ehci.c
1749
sqtd->offs + offsetof(ehci_qtd_t, qtd_next),
sys/dev/usb/ehci.c
1865
itd->offs + offsetof(ehci_itd_t, itd_next),
sys/dev/usb/ehci.c
1870
itd->offs + offsetof(ehci_itd_t, itd_next),
sys/dev/usb/ehci.c
2177
usb_syncmem(&head->dma, head->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2183
usb_syncmem(&sqh->dma, sqh->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2189
usb_syncmem(&head->dma, head->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2214
usb_syncmem(&sqh->dma, sqh->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2218
usb_syncmem(&p->dma, p->offs + offsetof(ehci_qh_t, qh_link),
sys/dev/usb/ehci.c
2239
sqh->offs + offsetof(ehci_qh_t, qh_qtd.qtd_status),
sys/dev/usb/ehci.c
2256
sqh->offs + offsetof(ehci_qh_t, qh_qtd.qtd_status),
sys/dev/usb/ehci.c
2345
itd->offs + offsetof(ehci_itd_t, itd_next),
sys/dev/usb/ehci.c
2393
sitd->offs + offsetof(ehci_sitd_t, sitd_next),
sys/dev/usb/ehci.c
3418
sqh->offs + offsetof(ehci_qh_t, qh_qtd.qtd_status),
sys/dev/usb/ehci.c
3424
sqh->offs + offsetof(ehci_qh_t, qh_qtd.qtd_status),
sys/dev/usb/ehci.c
3437
sqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sys/dev/usb/ehci.c
3442
sqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sys/dev/usb/ehci.c
3464
sqh->offs + offsetof(ehci_qh_t, qh_curqtd),
sys/dev/usb/ehci.c
3480
sqh->offs + offsetof(ehci_qh_t, qh_curqtd),
sys/dev/usb/ehci.c
3485
sqh->offs + offsetof(ehci_qh_t, qh_qtd.qtd_status),
sys/dev/usb/ehci.c
3491
sqh->offs + offsetof(ehci_qh_t, qh_curqtd),
sys/dev/usb/ehci.c
3562
itd->offs + offsetof(ehci_itd_t, itd_ctl),
sys/dev/usb/ehci.c
3573
itd->offs + offsetof(ehci_itd_t, itd_ctl),
sys/dev/usb/ehci.c
3581
sitd->offs + offsetof(ehci_sitd_t, sitd_buffer),
sys/dev/usb/ehci.c
3590
sitd->offs + offsetof(ehci_sitd_t, sitd_buffer),
sys/dev/usb/ehci.c
4552
usb_syncmem(&sitd->dma, sitd->offs + offsetof(ehci_sitd_t, sitd_trans),
sys/dev/usb/ehci.c
4600
sitd->offs + offsetof(ehci_sitd_t, sitd_next),
sys/dev/usb/ehci.c
4855
prev->offs + offsetof(ehci_itd_t, itd_next),
sys/dev/usb/ehci.c
4984
itd->offs + offsetof(ehci_itd_t, itd_next),
sys/dev/usb/ehci.c
973
lsqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sys/dev/usb/ehci.c
978
lsqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sys/dev/usb/ehci.c
986
sqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sys/dev/usb/ehci.c
991
sqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sys/dev/usb/if_mue.c
963
m_copydata(m, offsetof(struct ether_header, ether_type),
sys/dev/usb/if_mue.c
982
m_copyback(m, off + offsetof(struct ip, ip_len),
sys/dev/usb/if_mue.c
989
m_copyback(m, off + offsetof(struct ip6_hdr, ip6_plen),
sys/dev/usb/if_ncm.c
304
offsetof(struct ncm_dptab16, datagram))/sizeof(ptr->datagram[0]);
sys/dev/usb/if_umb.c
1995
dgentryoff = offsetof(struct ncm_pointer16, dgram);
sys/dev/usb/if_umb.c
1998
dgentryoff = offsetof(struct ncm_pointer32, dgram);
sys/dev/usb/if_umb.c
2192
off = offsetof(struct mbim_cid_pin, data);
sys/dev/usb/if_umb.c
2313
off = offsetof(struct mbim_cid_connect, data);
sys/dev/usb/if_ure.c
1086
m_copydata(m, offsetof(struct ether_header, ether_type),
sys/dev/usb/ohci.c
1266
offsetof(struct ohci_hcca, hcca_frame_number),
sys/dev/usb/ohci.c
1468
usb_syncmem(&sc->sc_hccadma, offsetof(struct ohci_hcca, hcca_done_head),
sys/dev/usb/ohci.c
1473
usb_syncmem(&sc->sc_hccadma, offsetof(struct ohci_hcca, hcca_done_head),
sys/dev/usb/ohci.c
1587
sed->offs + offsetof(ohci_ed_t, ed_headp),
sys/dev/usb/ohci.c
1843
usb_syncmem(&head->dma, head->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
1848
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
1853
usb_syncmem(&head->dma, head->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
1873
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
1878
usb_syncmem(&p->dma, p->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
2305
sed->offs + offsetof(ohci_ed_t, ed_flags),
sys/dev/usb/ohci.c
2375
usb_syncmem(&p->dma, p->offs + offsetof(ohci_td_t, td_flags),
sys/dev/usb/ohci.c
2417
sed->offs + offsetof(ohci_ed_t, ed_headp),
sys/dev/usb/ohci.c
2427
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_flags),
sys/dev/usb/ohci.c
2431
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_flags),
sys/dev/usb/ohci.c
2873
std->offs + offsetof(ohci_td_t, td_flags),
sys/dev/usb/ohci.c
2943
sed->offs + offsetof(ohci_ed_t, ed_tailp),
sys/dev/usb/ohci.c
2994
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_headp),
sys/dev/usb/ohci.c
3000
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_headp),
sys/dev/usb/ohci.c
3381
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_flags),
sys/dev/usb/ohci.c
3393
usb_syncmem(&p->dma, p->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
3453
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
3457
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
3462
usb_syncmem(&hsed->dma, hsed->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
3466
usb_syncmem(&hsed->dma, hsed->offs + offsetof(ohci_ed_t, ed_nexted),
sys/dev/usb/ohci.c
3600
offsetof(struct ohci_hcca, hcca_frame_number),
sys/dev/usb/ohci.c
3725
offsetof(struct ohci_hcca, hcca_frame_number),
sys/dev/usb/ohci.c
3770
usb_syncmem(&sed->dma, sed->offs + offsetof(ohci_ed_t, ed_flags),
sys/dev/usb/uaudio.c
248
#define TERMINAL_LIST_SIZE(N) (offsetof(struct terminal_list, terminals) \
sys/dev/usb/ugen.c
162
#define UGEN_ENDPOINT_NONZERO_CRUFT offsetof(struct ugen_endpoint, rsel)
sys/dev/usb/ugen.c
221
.rbto_node_offset = offsetof(struct ugen_softc, sc_node),
sys/dev/usb/uhci.c
1102
sc->sc_last_qh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1121
sc->sc_last_qh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1139
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1149
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1183
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1187
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1192
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1199
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1203
usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1222
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1230
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1248
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1252
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1257
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1263
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1267
usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1287
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1295
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1314
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1320
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
1326
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1330
usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
1522
lstd->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
1527
lstd->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
1547
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
1552
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
1590
std->offs + offsetof(uhci_td_t, td_token),
sys/dev/usb/uhci.c
1662
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
1951
p->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
1956
p->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
1962
p->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
2291
dataend->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
2373
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
2378
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
2520
dataend->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
2700
dataend->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
2720
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
2961
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
2966
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
2970
std->offs + offsetof(uhci_td_t, td_token),
sys/dev/usb/uhci.c
3017
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
3022
std->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
3043
std->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
3048
vstd->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
3099
vstd->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
3105
std->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
3111
vstd->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
3157
ux->ux_stdend->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
3162
ux->ux_stdend->offs + offsetof(uhci_td_t, td_status),
sys/dev/usb/uhci.c
3190
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
3267
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
3271
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
3275
usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
3293
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
3299
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
3306
usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
3311
usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
3362
sqh->offs + offsetof(uhci_qh_t, qh_elink),
sys/dev/usb/uhci.c
413
pqh->offs + offsetof(uhci_qh_t, qh_hlink),
sys/dev/usb/uhci.c
927
usb_syncmem(&td->dma, td->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uhci.c
932
usb_syncmem(&td->dma, td->offs + offsetof(uhci_td_t, td_link),
sys/dev/usb/uslsareg.h
171
CTASSERT(offsetof(struct slsa_cpr, _reserved8) == 8);
sys/dev/usb/uslsareg.h
172
CTASSERT(offsetof(struct slsa_cpr, _reserved42) == 42);
sys/dev/usb/uslsareg.h
173
CTASSERT(offsetof(struct slsa_cpr, uniProvName[0]) == 60);
sys/dev/usb/uslsareg.h
187
CTASSERT(offsetof(struct slsa_ssr, bReserved) == 18);
sys/dev/usb/uvideo.c
1312
offsetof(T, uFrameInterval) + \
sys/dev/vme/if_ie_vme.c
246
bus_space_read_2(sc->ievt, sc->ievh, offsetof(struct ievme, reg))
sys/dev/vme/if_ie_vme.c
248
bus_space_write_2(sc->ievt, sc->ievh, offsetof(struct ievme, reg), val)
sys/dist/pf/net/if_pflog.h
61
#define PFLOG_REAL_HDRLEN offsetof(struct pfloghdr, pad)
sys/dist/pf/net/pf_table.c
1937
if (!rn_inithead(&h4, offsetof(struct sockaddr_in, sin_addr) * 8))
sys/dist/pf/net/pf_table.c
1940
if (!rn_inithead(&h6, offsetof(struct sockaddr_in6, sin6_addr) * 8)) {
sys/fs/msdosfs/msdosfs_denode.c
119
.rbto_node_offset = offsetof(struct fh_node, fh_rbnode),
sys/fs/udf/udf_subr.c
3517
.rbto_node_offset = offsetof(struct udf_node, rbnode),
sys/kern/bufq_priocscan.c
193
.rbto_node_offset = offsetof(struct buf, b_u.u_rbnode),
sys/kern/kern_cpu.c
104
CTASSERT(offsetof(struct cpu_info, ci_data) == 0);
sys/kern/kern_cpu.c
106
CTASSERT(offsetof(struct cpu_info, ci_data) != 0);
sys/kern/kern_descrip.c
1661
offsetof(filedesc_t, fd_startzero));
sys/kern/kern_ksyms.c
1002
ksyms_hdr.kh_ehdr.e_shoff = offsetof(struct ksyms_hdr, kh_shdr[0]);
sys/kern/kern_ksyms.c
1020
offsetof(struct ksyms_hdr, kh_note[0]);
sys/kern/kern_ksyms.c
1048
offsetof(struct ksyms_hdr, kh_strtab);
sys/kern/kern_ksyms.c
1465
__CTASSERT(offsetof(struct ksyms_ogsymbol, kg_name) == offsetof(struct ksyms_gsymbol, kg_name));
sys/kern/kern_ksyms.c
1466
__CTASSERT(offsetof(struct ksyms_gvalue, kv_name) == offsetof(struct ksyms_gsymbol, kg_name));
sys/kern/kern_ksyms.c
999
ksyms_hdr.kh_ehdr.e_phoff = offsetof(struct ksyms_hdr, kh_phdr[0]);
sys/kern/kern_lwp.c
820
offsetof(lwp_t, l_startzero));
sys/kern/kern_lwp.c
825
offsetof(lwp_t, l_startzero));
sys/kern/kern_tc.c
938
bcopy(tho, th, offsetof(struct timehands, th_generation));
sys/kern/kern_timeout.c
947
offsetof(struct cpu_info, ci_data.cpu_callout),
sys/kern/kern_timeout.c
955
offsetof(struct cpu_info, ci_data.cpu_callout),
sys/kern/kern_uidinfo.c
65
#define _MEM(n) { # n, offsetof(struct uidinfo, ui_ ## n) }
sys/kern/subr_evcnt.c
225
const size_t copylen = offsetof(struct evcnt_sysctl, ev_strings)
sys/kern/subr_iostat.c
420
tocopy = offsetof(struct io_sysctl, busy);
sys/kern/subr_kcpuset.c
75
#define KC_BITS_OFF (offsetof(struct kcpuset_impl, kc_field))
sys/kern/subr_lockdebug.c
165
.rbto_node_offset = offsetof(lockdebug_t, ld_rb_node),
sys/kern/subr_log.c
117
new_bufs = bufsize - offsetof(struct kern_msgbuf, msg_bufc);
sys/kern/subr_pcq.c
294
pcq = kmem_zalloc(offsetof(pcq_t, pcq_items[nitems]), kmflags);
sys/kern/subr_pcq.c
305
kmem_free(pcq, offsetof(pcq_t, pcq_items[pcq->pcq_nitems]));
sys/kern/subr_physmap.c
231
const size_t mapsize = offsetof(physmap_t, pm_segs[map->pm_maxsegs]);
sys/kern/subr_physmap.c
71
const size_t mapsize = offsetof(physmap_t, pm_segs[maxsegs]);
sys/kern/subr_pool.c
317
CTASSERT(offsetof(struct pool_item_header, ph_u2) +
sys/kern/subr_pool.c
719
sz = offsetof(struct pool_item_header,
sys/kern/subr_pool.c
794
offsetof(struct pool_item_header, ph_bitmap[0]);
sys/kern/subr_thmap.c
274
const size_t alloclen = offsetof(struct thmap_gc, data[len]);
sys/kern/subr_thmap.c
288
const size_t alloclen = offsetof(struct thmap_gc, data[len]);
sys/kern/sys_futex.c
256
.rbto_node_offset = offsetof(struct futex, fx_node),
sys/kern/sys_futex.c
281
.rbto_node_offset = offsetof(struct futex, fx_node),
sys/kern/uipc_domain.c
328
socklen_t reallen = MAX(socklen, offsetof(struct sockaddr, sa_data[0]));
sys/kern/uipc_domain.c
429
KASSERT(sun->sun_len >= offsetof(struct sockaddr_un, sun_path[0]));
sys/kern/uipc_domain.c
430
plen = sun->sun_len - offsetof(struct sockaddr_un, sun_path[0]);
sys/kern/uipc_domain.c
530
un->sun_len = offsetof(struct sockaddr_un, sun_path);
sys/kern/uipc_domain.c
540
un->sun_len = offsetof(struct sockaddr_un, sun_path);
sys/kern/uipc_socket.c
1730
sizeof(*sb) - offsetof(struct sockbuf, sb_startzero));
sys/kern/uipc_syscalls.c
1528
buflen <= offsetof(struct sockaddr_big, sb_data))
sys/kern/uipc_usrreq.c
179
.sun_len = offsetof(struct sockaddr_un, sun_path),
sys/kern/vfs_acl.c
169
offsetof(struct acl, acl_maxcnt)), &am);
sys/kern/vfs_cache.c
310
.rbto_node_offset = offsetof(struct namecache, nc_tree),
sys/kern/vfs_cache.c
417
size_t sz = offsetof(struct namecache, nc_name[namelen]);
sys/kern/vfs_cache.c
949
size_t sz = offsetof(struct namecache, nc_name[namelen]);
sys/kern/vfs_mount.c
128
= offsetof(vnode_impl_t, vi_lrulist.tqe_next);
sys/kern/vfs_syscalls.c
1952
fidsize = *fh_size - offsetof(fhandle_t, fh_fid);
sys/kern/vfs_wapbl.c
2371
iph = (blocklen - offsetof(struct wapbl_wc_inodelist, wc_inodes)) /
sys/kern/vfs_wapbl.c
2720
iph = (blocklen - offsetof(struct wapbl_wc_inodelist, wc_inodes)) /
sys/kern/vfs_wapbl.c
611
- offsetof(struct wapbl_wc_blocklist, wc_blocks)) /
sys/lib/libsa/dosfs.c
624
{ offsetof(struct winentry, wePart1),
sys/lib/libsa/dosfs.c
626
{ offsetof(struct winentry, wePart2),
sys/lib/libsa/dosfs.c
628
{ offsetof(struct winentry, wePart3),
sys/lib/libsa/ffs_bswap.c
69
for (i = 0; i < offsetof(struct fs, fs_fmod) / sizeof(u_int32_t); i++)
sys/lib/libsa/minixfs3.h
109
#define SBSIZE offsetof(struct mfs_sblock, mfs_inodes_per_block)
sys/lib/libsa/nfs.c
340
cc -= offsetof(struct replv3, fattrflag);
sys/lib/libsa/nfs.c
484
alen = sizeof(*argsv3) - offsetof(struct argsv3, off);
sys/lib/libunwind/AddressSpace.hpp
61
rangeCmp, rangeCmpKey, offsetof(Range, range_link), NULL
sys/lib/libunwind/AddressSpace.hpp
64
dsoTableCmp, dsoTableCmpKey, offsetof(Range, dso_link), NULL
sys/miscfs/procfs/procfs_vnops.c
1378
UIO_MX - offsetof(struct dirent, d_name), "%ld", (long)p->p_pid);
sys/net/agr/ieee8023ad_lacp.c
565
return memcmp(a, b, offsetof(struct lacp_peerinfo, lip_state));
sys/net/bpfjit.c
1831
offsetof(struct bpf_args, wirelen));
sys/net/bpfjit.c
1877
offsetof(struct bpf_args, wirelen));
sys/net/bpfjit.c
2221
offsetof(struct bpfjit_stack, ctx),
sys/net/bpfjit.c
2229
mem_off = offsetof(struct bpfjit_stack, mem);
sys/net/bpfjit.c
2235
SLJIT_MEM1(BJ_ARGS), offsetof(struct bpf_args, mem));
sys/net/bpfjit.c
2242
offsetof(struct bpfjit_stack, extmem),
sys/net/bpfjit.c
306
offsetof(struct bpf_args, pkt));
sys/net/bpfjit.c
314
offsetof(struct bpf_args, buflen));
sys/net/bpfjit.c
541
offsetof(struct bpfjit_stack, reg),
sys/net/bpfjit.c
601
offsetof(struct bpfjit_stack, err));
sys/net/bpfjit.c
626
offsetof(struct bpfjit_stack, err),
sys/net/bpfjit.c
640
offsetof(struct bpfjit_stack, reg));
sys/net/bpfjit.c
679
offsetof(struct bpfjit_stack, reg),
sys/net/bpfjit.c
704
offsetof(struct bpfjit_stack, ctx));
sys/net/bpfjit.c
713
offsetof(struct bpf_ctx, copfuncs));
sys/net/bpfjit.c
753
offsetof(struct bpfjit_stack, ctx));
sys/net/bpfjit.c
784
offsetof(struct bpfjit_stack, reg));
sys/net/bpfjit.c
948
srcw += offsetof(struct bpfjit_stack, mem);
sys/net/bpfjit.c
955
offsetof(struct bpfjit_stack, extmem));
sys/net/bpfjit.c
976
dstw += offsetof(struct bpfjit_stack, mem);
sys/net/bpfjit.c
983
offsetof(struct bpfjit_stack, extmem));
sys/net/if_bridge.c
147
__CTASSERT(offsetof(struct ifbifconf, ifbic_len) == offsetof(struct ifbaconf, ifbac_len));
sys/net/if_bridge.c
148
__CTASSERT(offsetof(struct ifbifconf, ifbic_buf) == offsetof(struct ifbaconf, ifbac_buf));
sys/net/if_ethersubr.c
1924
offsetof(struct ether_vlan_header, evl_encap_proto));
sys/net/if_wg.c
1575
(const uint8_t *)wgmi, offsetof(struct wg_msg_init, wgmi_mac1));
sys/net/if_wg.c
1588
offsetof(struct wg_msg_init, wgmi_mac2),
sys/net/if_wg.c
1681
(const uint8_t *)wgmi, offsetof(struct wg_msg_init, wgmi_mac1));
sys/net/if_wg.c
1706
offsetof(struct wg_msg_init, wgmi_mac2),
sys/net/if_wg.c
1711
offsetof(struct wg_msg_init, wgmi_mac2),
sys/net/if_wg.c
2162
(const uint8_t *)wgmr, offsetof(struct wg_msg_resp, wgmr_mac1));
sys/net/if_wg.c
2177
offsetof(struct wg_msg_resp, wgmr_mac2),
sys/net/if_wg.c
2300
(const uint8_t *)wgmr, offsetof(struct wg_msg_resp, wgmr_mac1));
sys/net/if_wg.c
2325
offsetof(struct wg_msg_resp, wgmr_mac2),
sys/net/if_wg.c
2330
offsetof(struct wg_msg_resp, wgmr_mac2),
sys/net/if_wg.c
4322
offsetof(struct sockaddr_in, sin_addr) * NBBY);
sys/net/if_wg.c
4329
offsetof(struct sockaddr_in6, sin6_addr) * NBBY);
sys/net/lagg/if_lagg_lacp.c
1690
return memcmp(a, b, offsetof(struct lacpdu_peerinfo, lpi_state));
sys/net/lagg/if_lagg_lacp.c
246
sizeof(_st) - offsetof(_st, _name), \
sys/net/link_proto.c
456
return offsetof(struct sockaddr_dl, sdl_data[namelen + addrlen]);
sys/net/link_proto.c
521
const uint_fast8_t indexofs = offsetof(struct sockaddr_dl, sdl_index);
sys/net/link_proto.c
522
const uint_fast8_t nlenofs = offsetof(struct sockaddr_dl, sdl_nlen);
sys/net/link_proto.c
523
uint_fast8_t dataofs = offsetof(struct sockaddr_dl, sdl_data[0]);
sys/net/npf/if_npflog.h
59
#define NPFLOG_REAL_HDRLEN offsetof(struct npfloghdr, pad)
sys/net/npf/lpm.c
129
offsetof(lpm_ent_t, key[entry->len]));
sys/net/npf/lpm.c
205
const size_t entlen = offsetof(lpm_ent_t, key[len]);
sys/net/npf/lpm.c
274
kmem_free(entry, offsetof(lpm_ent_t, key[len]));
sys/net/npf/npf_alg_icmp.c
139
if (!nbuf_advance(nbuf, offsetof(struct icmp, icmp_ip), 0)) {
sys/net/npf/npf_alg_icmp.c
351
CTASSERT(offsetof(struct icmp, icmp_cksum) ==
sys/net/npf/npf_alg_icmp.c
352
offsetof(struct icmp6_hdr, icmp6_cksum));
sys/net/npf/npf_conn.c
170
offsetof(npf_conn_t, c_keys[NPF_CONNKEY_V4WORDS * 2]),
sys/net/npf/npf_conn.c
173
offsetof(npf_conn_t, c_keys[NPF_CONNKEY_V6WORDS * 2]),
sys/net/npf/npf_nat.c
124
#define NPF_NP_CMP_START offsetof(npf_natpolicy_t, n_type)
sys/net/npf/npf_params.c
124
len = offsetof(npf_paramreg_t, params[paramreg->count]);
sys/net/npf/npf_params.c
188
len = offsetof(npf_paramreg_t, params[count]);
sys/net/npf/npf_ruleset.c
146
size_t len = offsetof(npf_ruleset_t, rs_rules[slots]);
sys/net/npf/npf_ruleset.c
161
size_t len = offsetof(npf_ruleset_t, rs_rules[rlset->rs_slots]);
sys/net/npf/npf_tableset.c
121
(offsetof(npf_tableset_t, ts_map[n]) * sizeof(npf_table_t *))
sys/net/npf/npf_worker.c
127
kmem_free(winfo, offsetof(npf_workerinfo_t, worker[nworkers]));
sys/net/npf/npf_worker.c
72
const size_t len = offsetof(npf_workerinfo_t, worker[nworkers]);
sys/net/rss_config.c
128
m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport),
sys/net/rss_config.c
161
m_copydata(__UNCONST(m), hlen + offsetof(struct udphdr, uh_sport),
sys/net/rss_config.c
226
m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport),
sys/net/rss_config.c
258
m_copydata(__UNCONST(m), hlen + offsetof(struct udphdr, uh_sport),
sys/net/rtsock_shared.c
100
#define _SA_MINSIZE (offsetof(struct sockaddr, sa_family) + \
sys/net/rtsock_shared.c
1065
offsetof(struct sockaddr, sa_len) +
sys/net/rtsock_shared.c
232
offsetof(struct rt_xmsghdr, rtm_type) + sizeof(rtm.rtm_type))
sys/net/rtsock_shared.c
235
m_copydata(m, offsetof(struct rt_xmsghdr, rtm_type),
sys/net/rtsock_shared.c
254
m_copydata(m, sizeof(rtm) + offsetof(struct sockaddr, sa_len),
sys/net80211/ieee80211_input.c
1929
qosinfo = frm[offsetof(struct ieee80211_wme_param, param_qosInfo)];
sys/net80211/ieee80211_input.c
1936
frm += offsetof(struct ieee80211_wme_param, params_acParams);
sys/net80211/ieee80211_ioctl.c
1007
const size_t off = offsetof(struct ieee80211req_sta_stats, is_stats);
sys/net80211/ieee80211_ioctl.c
965
space = offsetof(struct ieee80211req_chaninfo,
sys/net80211/ieee80211_output.c
1298
frm += offsetof(struct ieee80211_wme_info, wme_info);
sys/netatalk/at_proto.c
78
.dom_sa_cmpofs = offsetof(struct sockaddr_at, sat_addr),
sys/netatalk/at_proto.c
87
const uint_fast8_t addrofs = offsetof(struct sockaddr_at, sat_addr),
sys/netcan/can.c
622
m->m_len < offsetof(struct can_frame, can_dlc)) {
sys/netcan/can_proto.c
73
.dom_sa_cmpofs = offsetof(struct sockaddr_can, can_ifindex),
sys/netinet/dccp_usrreq.c
1495
m->m_pkthdr.csum_data = offsetof(struct dccphdr, dh_sum);
sys/netinet/in4_cksum.c
89
w = (uint16_t *)(mtod(m, char *) + offsetof(struct ip, ip_src));
sys/netinet/in_offload.c
229
hdrlen + offsetof(struct ip, ip_len);
sys/netinet/in_offload.c
242
offsetof(struct ip, ip_sum);
sys/netinet/in_proto.c
491
.dom_sa_cmpofs = offsetof(struct sockaddr_in, sin_addr),
sys/netinet/in_proto.c
510
slen - MIN(slen, offsetof(struct sockaddr_in, sin_addr)));
sys/netinet/in_proto.c
537
const uint_fast8_t addrofs = offsetof(struct sockaddr_in, sin_addr),
sys/netinet/ip_output.c
996
if (m && m->m_len > offsetof(struct ipoption, ipopt_dst)) {
sys/netinet/ip_output.c
997
return (m->m_len - offsetof(struct ipoption, ipopt_dst));
sys/netinet/tcp_output.c
1427
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_output.c
1443
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_subr.c
1442
offsetof(struct icmp, icmp_ip));
sys/netinet/udp_usrreq.c
837
m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
sys/netinet6/frag6.c
214
offsetof(struct ip6_hdr, ip6_plen));
sys/netinet6/frag6.c
326
offsetof(struct ip6_frag, ip6f_offlg));
sys/netinet6/frag6.c
333
offsetof(struct ip6_frag, ip6f_offlg));
sys/netinet6/frag6.c
369
offsetof(struct ip6_frag, ip6f_offlg));
sys/netinet6/icmp6.c
1402
replylen += offsetof(struct ni_reply_fqdn, ni_fqdn_namelen);
sys/netinet6/icmp6.c
1426
replylen += offsetof(struct ni_reply_fqdn, ni_fqdn_namelen);
sys/netinet6/in6_cksum.c
91
w = (const uint16_t *)(cp + offsetof(struct ip6_hdr, ip6_src));
sys/netinet6/in6_offload.c
197
hdrlen + offsetof(struct ip6_hdr, ip6_plen);
sys/netinet6/in6_proto.c
493
.dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr) << 3,
sys/netinet6/in6_proto.c
500
.dom_sa_cmpofs = offsetof(struct sockaddr_in6, sin6_addr),
sys/netinet6/in6_proto.c
511
const uint_fast8_t addrofs = offsetof(struct sockaddr_in6, sin6_addr),
sys/netinet6/ip6_input.c
1363
return offsetof(struct ip6_hdr, ip6_nxt);
sys/netinet6/ip6_output.c
1965
const int icmp6off = offsetof(struct icmp6_hdr, icmp6_cksum);
sys/netinet6/raw_ip6.c
479
off = offsetof(struct icmp6_hdr, icmp6_cksum);
sys/netinet6/route6.c
76
off + offsetof(struct ip6_rthdr, ip6r_type));
sys/netinet6/udp6_usrreq.c
1006
m->m_pkthdr.csum_data = offsetof(struct udphdr, uh_sum);
sys/netipsec/ipsec.c
1857
off = sizeof(*ip6) + offsetof(struct udphdr, uh_sum);
sys/netipsec/ipsec.c
963
m_copydata(m, offsetof(struct ip, ip_src),
sys/netipsec/ipsec.c
965
m_copydata(m, offsetof(struct ip, ip_dst),
sys/netipsec/ipsec_input.c
267
m_copydata(m, offsetof(struct ip, ip_src),
sys/netipsec/ipsec_input.c
270
m_copydata(m, offsetof(struct ip, ip_dst),
sys/netipsec/ipsec_input.c
279
m_copydata(m, offsetof(struct ip6_hdr, ip6_src),
sys/netipsec/ipsec_input.c
282
m_copydata(m, offsetof(struct ip6_hdr, ip6_dst),
sys/netipsec/ipsec_input.c
355
(void)ipsec_common_input(m, off, offsetof(struct ip, ip_p),
sys/netipsec/ipsec_input.c
464
protoff = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_input.c
496
protoff += offsetof(struct ip6_ext, ip6e_nxt);
sys/netipsec/ipsec_netbsd.c
120
offsetof(struct icmp, icmp_ip));
sys/netipsec/ipsec_netbsd.c
163
offsetof(struct icmp, icmp_ip));
sys/netipsec/ipsec_output.c
622
off = offsetof(struct ip, ip_p);
sys/netipsec/ipsec_output.c
625
off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_output.c
652
*off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_output.c
702
*off = *i + offsetof(struct ip6_ext, ip6e_nxt);
sys/netipsec/ipsec_output.c
808
off = offsetof(struct ip, ip_p);
sys/netipsec/key.c
8219
const int sal = offsetof(struct sockaddr, sa_len) + sizeof(sa->sa_len);
sys/netipsec/xform_ah.c
835
m_copydata(m, skip + offsetof(struct newah, ah_seq),
sys/netipsec/xform_ah.c
913
ipoffs = offsetof(struct ip, ip_len);
sys/netipsec/xform_ah.c
919
ipoffs = offsetof(struct ip6_hdr, ip6_plen);
sys/netipsec/xform_esp.c
598
m_copydata(m, skip + offsetof(struct newesp, esp_seq),
sys/netipsec/xform_ipip.c
381
offsetof(struct ip, ip_tos),
sys/netipsec/xform_ipip.c
391
offsetof(struct ip, ip_off),
sys/netipsec/xform_ipip.c
401
offsetof(struct ip6_hdr, ip6_flow),
sys/netipsec/xform_ipip.c
469
offsetof(struct ip, ip_tos), sizeof(uint8_t),
sys/netipsec/xform_ipip.c
481
offsetof(struct ip6_hdr, ip6_flow),
sys/netmpls/mpls_proto.c
386
.dom_rtoffset = offsetof(struct sockaddr_mpls, smpls_addr) << 3,
sys/netmpls/mpls_proto.c
392
.dom_sa_cmpofs = offsetof(struct sockaddr_mpls, smpls_addr),
sys/netmpls/mpls_ttl.c
225
packetlen = sizeof(struct ip) + offsetof(struct icmp, icmp_ip) +
sys/nfs/nfs_bootdhcp.c
346
if (m->m_len < offsetof(struct bootp, bp_sname)) {
sys/nfs/nfs_bootdhcp.c
347
m = *mp = m_pullup(m, offsetof(struct bootp, bp_sname));
sys/nfs/nfs_syscalls.c
125
.rbto_node_offset = offsetof(struct nfsd, nfsd_node),
sys/rump/include/rump/rumpdefs.h
520
#define RUMP_KTR_SHIMLEN offsetof(struct ktr_header, ktr_pid)
sys/rump/kern/lib/libsys_cygwin/rump_cygwin_compat.c
173
#define CYGWIN_NAMEOFF(dp) offsetof(struct cygwin_dirent,d_name)
sys/rump/librump/rumpkern/lwproc.c
213
offsetof(struct proc, p_endzero)
sys/rump/librump/rumpkern/lwproc.c
214
- offsetof(struct proc, p_startzero));
sys/rump/librump/rumpkern/lwproc.c
216
offsetof(struct proc, p_endcopy)
sys/rump/librump/rumpkern/lwproc.c
217
- offsetof(struct proc, p_startcopy));
sys/rump/net/lib/libshmif/shmifvar.h
51
#define IFMEM_DATA (offsetof(struct shmif_mem, shm_data))
sys/rump/net/lib/libshmif/shmifvar.h
52
#define IFMEM_WAKEUP (offsetof(struct shmif_mem, shm_version))
sys/sys/container_of.h
62
offsetof(TYPE, FIELD)))->FIELD))
sys/sys/container_of.h
65
offsetof(TYPE, FIELD)))->FIELD))
sys/sys/container_of.h
69
((TYPE *)(((char *)(PTR)) - offsetof(TYPE, FIELD)) \
sys/sys/container_of.h
72
((const TYPE *)(((const char *)(PTR)) - offsetof(TYPE, FIELD)) \
sys/sys/fstypes.h
72
MAX(FHANDLE_SIZE_MIN, (offsetof(fhandle_t, fh_fid) + (fidsize)))
sys/sys/gcq.h
283
((type *)(void *)((uint8_t *)gcq_q(q) - offsetof(type, name)))
sys/sys/ktrace.h
102
#define KTR_SHIMLEN offsetof(struct ktr_header, ktr_pid)
sys/sys/mbuf.h
323
#define MLEN ((int)(MSIZE - offsetof(struct _mbuf_dummy, m_dat)))
sys/sys/mbuf.h
325
#define MHLEN ((int)(MSIZE - offsetof(struct _mbuf_dummy, m_pktdat)))
sys/sys/mbuf.h
521
offsetof(struct mbuf, m_pktdat) : offsetof(struct mbuf, m_dat))
sys/sys/pslist.h
298
(0 * sizeof((P) - &((T *)(((char *)(P)) - offsetof(T, F)))->F))
sys/sys/pslist.h
320
((T *)(_pslist_writer_first_container((H), offsetof(T, F))) + \
sys/sys/pslist.h
323
((T *)(_pslist_writer_next_container(&(V)->F, offsetof(T, F))) + \
sys/sys/pslist.h
331
((T *)(_pslist_reader_first_container((H), offsetof(T, F))) + \
sys/sys/pslist.h
334
((T *)(_pslist_reader_next_container(&(V)->F, offsetof(T, F))) + \
sys/sys/queue.h
392
((char *)((head)->sqh_last) - offsetof(struct type, field))))
sys/sys/queue.h
653
((char *)((head)->stqh_last) - offsetof(struct type, field))))
sys/sys/sysctl.h
1344
#define __sysc_desc_len(l) (offsetof(struct sysctldesc, descr_str) +\
sys/sys/vnode.h
525
#define VOPARG_OFFSETOF(type, member) offsetof(type, member)
sys/ufs/chfs/chfs_readinode.c
100
.rbto_node_offset = offsetof(struct chfs_tmp_dnode_info, rb_node),
sys/ufs/chfs/chfs_readinode.c
127
.rbto_node_offset = offsetof(struct chfs_node_frag, rb_node),
sys/ufs/ext2fs/ext2fs_alloc.c
808
off = offsetof(struct ext2_gd, ext2bgd_checksum);
sys/ufs/ext2fs/ext2fs_alloc.c
823
off = offsetof(struct ext2_gd, ext2bgd_checksum);
sys/ufs/ext2fs/ext2fs_dinode.h
214
&& ((EXT2_REV0_DINODE_SIZE + (dinode)->e2di_extra_isize) >= offsetof(struct ext2fs_dinode, field) + sizeof((dinode)->field)) \
sys/ufs/ffs/ffs_bswap.c
68
for (i = 0; i < offsetof(struct fs, fs_fmod) / sizeof(u_int32_t); i++)
sys/ufs/ffs/fs.h
387
((fs_)->fs_old_postbloff == offsetof(struct fs, fs_old_postbl_start))) \
sys/ufs/lfs/lfs_accessors.h
1108
return offsetof(SEGSUM64, ss_datasum);
sys/ufs/lfs/lfs_accessors.h
1110
return offsetof(SEGSUM32, ss_datasum);
sys/ufs/lfs/lfs_cksum.c
110
size = (size_t)offsetof(struct dlfs64, dlfs_cksum);
sys/ufs/lfs/lfs_cksum.c
113
size = (size_t)offsetof(struct dlfs64, dlfs_cksum);
sys/ufs/lfs/lfs_rfw.c
393
memcpy(dst, src, offsetof(struct lfs32_dinode, di_db[0]));
sys/ufs/lfs/lfs_vfsops.c
141
.rbto_node_offset = offsetof(struct segdelta, rb_entry),
sys/ufs/lfs/lfs_vnops.c
2075
offsetof(fhandle_t, fh_fid);
sys/uvm/pmap/pmap.h
271
#define PMAP_SIZE offsetof(struct pmap, pm_pai[PMAP_TLB_MAX])
sys/uvm/pmap/pmap_pvt.c
151
kmem_free(pvt, offsetof(struct pv_track, pvt_pages[npages]));
sys/uvm/pmap/pmap_pvt.c
90
pvt = kmem_zalloc(offsetof(struct pv_track, pvt_pages[npages]),
sys/uvm/pmap/pmap_tlb.h
108
- offsetof(struct pmap, pm_pai[tlbinfo_index(ti)])))
sys/uvm/uvm_map.c
314
__CTASSERT(offsetof(struct vm_map_entry, rb_node) == 0);
sys/uvm/uvm_map.c
366
.rbto_node_offset = offsetof(struct vm_map_entry, rb_node),
sys/uvm/uvm_page.c
406
bucketsize = offsetof(struct pgflbucket, pgb_colors[uvmexp.ncolors]);
sys/uvm/uvm_page.c
754
bucketsize = offsetof(struct pgflbucket, pgb_colors[newncolors]);
sys/uvm/uvm_pgflcache.c
280
sz = offsetof(struct pgflcache, color[uvmexp.ncolors]);
sys/uvm/uvm_pgflcache.c
360
sz = offsetof(struct pgflcache, color[uvmexp.ncolors]);
sys/uvm/uvm_physseg.c
404
.rbto_node_offset = offsetof(struct uvm_physseg, rb_node),
tests/dev/audio/audiotest.c
5766
offsetof(struct audio_info, play.gain));
tests/dev/audio/audiotest.c
5768
offsetof(struct audio_info, play.balance));
tests/dev/audio/audiotest.c
5772
offsetof(struct audio_info, record.gain));
tests/dev/audio/audiotest.c
5774
offsetof(struct audio_info, record.balance));
tests/include/sys/t_bootblock.c
48
ATF_CHECK_EQ(MBR_BPB_OFFSET, offsetof(struct mbr_sector, mbr_bpb));
tests/include/sys/t_bootblock.c
49
ATF_CHECK_EQ(MBR_BS_OFFSET, offsetof(struct mbr_sector, mbr_bootsel));
tests/include/sys/t_bootblock.c
51
ATF_CHECK_EQ(440, offsetof(struct mbr_sector, mbr_dsn));
tests/include/sys/t_bootblock.c
54
ATF_CHECK_EQ(MBR_PART_OFFSET, offsetof(struct mbr_sector, mbr_parts));
tests/include/sys/t_bootblock.c
57
ATF_CHECK_EQ(MBR_MAGIC_OFFSET, offsetof(struct mbr_sector, mbr_magic));
tests/include/t_stddef.c
86
ATF_CHECK_MSG((o = offsetof(struct s, y)) == 3,
tests/lib/libc/sys/t_futex_robust.c
105
d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) -
tests/lib/libc/sys/t_futex_robust.c
106
offsetof(struct futex_lock_pos, list);
tests/lib/libc/sys/t_futex_robust.c
137
d->rhead.futex_offset = offsetof(struct futex_lock_neg, fword) -
tests/lib/libc/sys/t_futex_robust.c
138
offsetof(struct futex_lock_neg, list);
tests/lib/libc/sys/t_futex_robust.c
168
d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) -
tests/lib/libc/sys/t_futex_robust.c
169
offsetof(struct futex_lock_pos, list);
tests/lib/libc/sys/t_futex_robust.c
192
d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) -
tests/lib/libc/sys/t_futex_robust.c
193
offsetof(struct futex_lock_pos, list);
tests/lib/libc/sys/t_futex_robust.c
224
d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) -
tests/lib/libc/sys/t_futex_robust.c
225
offsetof(struct futex_lock_pos, list);
tests/lib/librefuse/t_refuse_opt.c
157
#define FOOFS_OPT(t, p, v) { t, offsetof(struct foofs_config, p), v }
tests/net/bpfilter/t_bpfilter.c
81
sizeof(struct ip) + offsetof(struct icmp, icmp_type)),
tests/net/net/t_unix.c
79
#define OF offsetof(struct sockaddr_un, sun_path)
tests/usr.bin/indent/fmt_decl.c
157
MAXALIGN(offsetof(int, test)) + MAXIMUM_ALIGNOF;
tests/usr.bin/indent/fmt_expr.c
15
malloc(offsetof(struct s, f) + 1);
tests/usr.bin/indent/lsym_lparen_or_lbracket.c
137
a = offsetof(struct stat, st_mtime);
tests/usr.bin/indent/lsym_offsetof.c
21
size_t offset = offsetof (struct s, member);
tests/usr.bin/indent/lsym_offsetof.c
9
size_t offset = offsetof(struct s, member);
tests/usr.bin/indent/lsym_tag.c
147
+ offsetof(struct s, member)
tests/usr.bin/indent/lsym_tag.c
151
+ offsetof(struct s, member)
tests/usr.bin/indent/opt_bs.c
75
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_bs.c
76
int offset = offsetof (struct s, member);
tests/usr.bin/indent/opt_bs.c
86
int offset = offsetof (struct s, member);
tests/usr.bin/indent/opt_bs.c
87
int offset = offsetof (struct s, member);
tests/usr.bin/indent/opt_bs.c
97
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_bs.c
98
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_pcs.c
100
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_pcs.c
110
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_pcs.c
111
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_pcs.c
72
int offset = offsetof(struct s, member);
tests/usr.bin/indent/opt_pcs.c
73
int offset = offsetof (struct s, member);
tests/usr.bin/indent/opt_pcs.c
84
int offset = offsetof (struct s, member);
tests/usr.bin/indent/opt_pcs.c
85
int offset = offsetof (struct s, member);
tests/usr.bin/indent/opt_pcs.c
99
int offset = offsetof(struct s, member);
usr.bin/indent/args.c
56
_Generic((&opt.name), type *: offsetof(struct options, name))
usr.bin/indent/args.c
58
#define get_offset(name, type) (offsetof(struct options, name))
usr.bin/kdump/kdump.c
1067
if (len > (int)offsetof(struct ktr_sysret, ktr_retval_1) &&
usr.bin/ktruss/dump.c
654
if (kth->ktr_len > (int)offsetof(struct ktr_sysret,
usr.bin/m4/look.c
69
offsetof(struct ndblock, name),
usr.bin/make/filemon/filemon_ktrace.c
172
.rbto_node_offset = offsetof(struct filemon_state, node),
usr.bin/make/filemon/filemon_ktrace.c
594
S = calloc(1, offsetof(struct filemon_state, path[npath]));
usr.bin/pmap/pmap.c
112
A(header) = A(vm_map) + offsetof(struct vm_map, header);
usr.bin/pmap/pmap.c
82
A(vm_map) = A(vmspace) + offsetof(struct vmspace, vm_map);
usr.bin/rump_dhcpclient/net.c
452
*data = udp + offsetof(struct udp_dhcp_packet, dhcp);
usr.bin/sort/files.c
230
EWRITE(rec, 1, REC_ROUNDUP(offsetof(RECHEADER, data) + rec->length), fp,
usr.bin/sort/files.c
250
EWRITE(rec, 1, REC_ROUNDUP(offsetof(RECHEADER, data) + rec->offset), fp,
usr.bin/sort/files.c
263
(void)sizeof (char[offsetof(RECHEADER, length) == 0 ? 1 : -1]);
usr.bin/sort/files.c
271
file_len = REC_ROUNDUP(offsetof(RECHEADER, data) + rec->length);
usr.bin/sort/msort.c
380
crec = malloc(offsetof(RECHEADER, data[DEFLLEN]));
usr.bin/sort/msort.c
382
prec = malloc(offsetof(RECHEADER, data[DEFLLEN]));
usr.bin/vmstat/vmstat.c
1914
HASH_LIST, offsetof(struct buf, b_hash)
usr.bin/vmstat/vmstat.c
1918
HASH_LIST, offsetof(struct in_ifaddr, ia_hash),
usr.bin/vmstat/vmstat.c
1922
HASH_SLIST, offsetof(struct uidinfo, ui_hash),
usr.bin/vmstat/vmstat.c
1926
HASH_SLIST, offsetof(struct vnode_impl, vi_hash),
usr.sbin/acpitools/acpidump/acpi.c
1114
if (mp->Length > offsetof(ACPI_MADT_LOCAL_SAPIC, Uid))
usr.sbin/acpitools/acpidump/acpi.c
2326
datasize = node->MappingOffset - offsetof(ACPI_IORT_NODE, NodeData);
usr.sbin/cpuctl/arch/aarch64.c
1205
if (len <= offsetof(struct aarch64_sysctl_cpu_id, ac_clidr))
usr.sbin/dumpfs/dumpfs.c
259
(bswap32(fs->fs_old_postbloff) == offsetof(struct fs, fs_old_postbl_start)))) {
usr.sbin/dumpfs/dumpfs.c
266
(fs->fs_old_postbloff == offsetof(struct fs, fs_old_postbl_start)))) {
usr.sbin/dumpfs/dumpfs.c
907
ph = (blklen - offsetof(struct wapbl_wc_blocklist, wc_blocks))
usr.sbin/dumpfs/dumpfs.c
928
ph = (blklen - offsetof(struct wapbl_wc_inodelist, wc_inodes))
usr.sbin/faithd/prefix.c
152
off = offsetof(struct sockaddr_in, sin_addr);
usr.sbin/faithd/prefix.c
155
off = offsetof(struct sockaddr_in6, sin6_addr);
usr.sbin/faithd/prefix.c
43
#ifndef offsetof
usr.sbin/fstyp/hammer_disk.h
400
offsetof(struct hammer_blockmap, entry_crc)
usr.sbin/fstyp/hammer_disk.h
434
offsetof(struct hammer_blockmap_layer1, layer1_crc)
usr.sbin/fstyp/hammer_disk.h
456
offsetof(struct hammer_blockmap_layer2, entry_crc)
usr.sbin/fstyp/hammer_disk.h
589
#define HAMMER_FIFO_HEAD_CRCOFF offsetof(struct hammer_fifo_head, hdr_crc)
usr.sbin/fstyp/hammer_disk.h
802
offsetof(struct hammer_volume_ondisk, vol_crc)
usr.sbin/fstyp/hammer_disk.h
920
offsetof(struct hammer_inode_data, mtime)
usr.sbin/fstyp/hammer_disk.h
968
#define HAMMER_ENTRY_NAME_OFF offsetof(struct hammer_direntry_data, name[0])
usr.sbin/fstyp/hammer_disk.h
969
#define HAMMER_ENTRY_SIZE(nlen) offsetof(struct hammer_direntry_data, name[nlen])
usr.sbin/fstyp/hammer_disk.h
979
#define HAMMER_SYMLINK_NAME_OFF offsetof(struct hammer_symlink_data, name[0])
usr.sbin/inetd/ratelimit.c
252
node_size = offsetof(struct rl_ip_node, ipv4_addr)
usr.sbin/inetd/ratelimit.c
258
node_size = offsetof(struct rl_ip_node, ipv6_addr)
usr.sbin/inetd/ratelimit.c
265
node_size = offsetof(struct rl_ip_node, other_addr) + bufsize;
usr.sbin/installboot/arch/vax.c
188
__CTASSERT(offsetof(struct vax_boot_block,bb_magic1) == 0x19e);
usr.sbin/installboot/arch/vax.c
224
offsetof(struct vax_boot_block,bb_magic1) - VAX_LABELOFFSET);
usr.sbin/installboot/installboot.c
72
#define OFFSET(field) offsetof(ib_params, field)
usr.sbin/isibootd/isibootd.c
350
{ BPF_LD|BPF_H|BPF_ABS, 0, 0, offsetof(struct frame, type) },
usr.sbin/ldpd/label.c
53
.rbto_node_offset = offsetof(struct label, lbtree),
usr.sbin/ldpd/ldp_peer.c
67
.rbto_node_offset = offsetof(struct label_mapping, mappings_node),
usr.sbin/ldpd/mpls_routes.c
592
if (rlen <= offsetof(struct rt_msghdr, rtm_type) ||
usr.sbin/mopd/common/file.c
483
offsetof(Elf32_Ehdr, e_machine),
usr.sbin/mopd/common/file.c
486
offsetof(Elf32_Ehdr, e_entry),
usr.sbin/mopd/common/file.c
490
offsetof(Elf32_Ehdr, e_phoff),
usr.sbin/mopd/common/file.c
493
offsetof(Elf32_Ehdr, e_phentsize),
usr.sbin/mopd/common/file.c
496
offsetof(Elf32_Ehdr, e_phnum),
usr.sbin/mopd/common/file.c
502
offsetof(Elf32_Ehdr, e_machine),
usr.sbin/mopd/common/file.c
505
offsetof(Elf32_Ehdr, e_entry),
usr.sbin/mopd/common/file.c
509
offsetof(Elf32_Ehdr, e_phoff),
usr.sbin/mopd/common/file.c
512
offsetof(Elf32_Ehdr, e_phentsize),
usr.sbin/mopd/common/file.c
515
offsetof(Elf32_Ehdr, e_phnum),
usr.sbin/mopd/common/file.c
542
offsetof(Elf32_Phdr, p_offset),
usr.sbin/mopd/common/file.c
546
offsetof(Elf32_Phdr, p_vaddr),
usr.sbin/mopd/common/file.c
550
offsetof(Elf32_Phdr, p_filesz),
usr.sbin/mopd/common/file.c
554
offsetof(Elf32_Phdr, p_memsz),
usr.sbin/mopd/common/file.c
561
offsetof(Elf32_Phdr, p_offset),
usr.sbin/mopd/common/file.c
565
offsetof(Elf32_Phdr, p_vaddr),
usr.sbin/mopd/common/file.c
569
offsetof(Elf32_Phdr, p_filesz),
usr.sbin/mopd/common/file.c
573
offsetof(Elf32_Phdr, p_memsz),
usr.sbin/mrouted/rsrr.c
99
servlen = offsetof(struct sockaddr_un, sun_path) +
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
145
hdb = ng_reverse(ndb, offsetof(struct netgroup, ng_host));
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
154
udb = ng_reverse(ndb, offsetof(struct netgroup, ng_user));
usr.sbin/npf/npfctl/npf_bpf_comp.c
483
unsigned off = offsetof(struct ether_header, ether_type);
usr.sbin/npf/npfctl/npf_bpf_comp.c
581
offsetof(struct ip, ip_src) :
usr.sbin/npf/npfctl/npf_bpf_comp.c
582
offsetof(struct ip, ip_dst);
usr.sbin/npf/npfctl/npf_bpf_comp.c
588
offsetof(struct ip6_hdr, ip6_src) :
usr.sbin/npf/npfctl/npf_bpf_comp.c
589
offsetof(struct ip6_hdr, ip6_dst);
usr.sbin/npf/npfctl/npf_bpf_comp.c
696
off = (opts & MATCH_SRC) ? offsetof(struct ether_header, ether_shost) :
usr.sbin/npf/npfctl/npf_bpf_comp.c
697
offsetof(struct ether_header, ether_dhost);
usr.sbin/npf/npfctl/npf_bpf_comp.c
738
const unsigned sport_off = offsetof(struct udphdr, uh_sport);
usr.sbin/npf/npfctl/npf_bpf_comp.c
739
const unsigned dport_off = offsetof(struct udphdr, uh_dport);
usr.sbin/npf/npfctl/npf_bpf_comp.c
743
assert(sport_off == offsetof(struct tcphdr, th_sport));
usr.sbin/npf/npfctl/npf_bpf_comp.c
744
assert(dport_off == offsetof(struct tcphdr, th_dport));
usr.sbin/npf/npfctl/npf_bpf_comp.c
791
const unsigned tcpfl_off = offsetof(struct tcphdr, th_flags);
usr.sbin/npf/npfctl/npf_bpf_comp.c
846
const u_int type_off = offsetof(struct icmp, icmp_type);
usr.sbin/npf/npfctl/npf_bpf_comp.c
847
const u_int code_off = offsetof(struct icmp, icmp_code);
usr.sbin/npf/npfctl/npf_bpf_comp.c
850
assert(offsetof(struct icmp6_hdr, icmp6_type) == type_off);
usr.sbin/npf/npfctl/npf_bpf_comp.c
851
assert(offsetof(struct icmp6_hdr, icmp6_code) == code_off);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
161
size = offsetof(struct icmp, icmp_data);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
21
unsigned mlen = offsetof(struct mbuf, m_data0[space]);
usr.sbin/route6d/route6d.c
3011
sin6->sin6_len - offsetof(struct sockaddr_in6, sin6_addr));
usr.sbin/sysinst/arch/i386/md.c
865
len = offsetof(struct mbr_sector, mbr_bootsel);
usr.sbin/sysinst/arch/i386/md.c
867
len = offsetof(struct mbr_sector, mbr_parts);