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

1234567891011>>

/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/offsetof/
H A Derr.D_OFFSETOF_TYPE.notsou.d33 * Test invocation of offsetof() with a type that is not a struct or union.
43 trace(offsetof(int, x));
H A Derr.D_OFFSETOF_TYPE.badtype.d32 * Test invocation of offsetof() with an invalid type.
43 trace(offsetof(struct no_such_type, x));
H A Derr.D_UNKNOWN.badmemb.d32 * Test invocation of offsetof() with an invalid member.
43 trace(offsetof(struct vnode, v_no_such_member));
H A Dtst.OffsetofArith.d29 * ASSERTION: offsetof can be used anywhere in a D program that an integer
49 add = offsetof(record_t, c) + offsetof(record_t, x) +
50 offsetof(record_t, y);
51 sub = offsetof(record_t, y) - offsetof(record_t, x);
52 mul = offsetof(record_t, x) * offsetof(record_t, c);
53 div = offsetof(record_t, y) / offsetof(record_
[all...]
H A Dtst.OffsetofAlias.d30 * Test invocation of offsetof() with a struct type alias.
48 printf("offsetof(record_t, c) = %d\n", offsetof(record_t, c));
49 printf("offsetof(record_t, x) = %d\n", offsetof(record_t, x));
50 printf("offsetof(record_t, y) = %d\n", offsetof(record_t, y));
55 /(8 != offsetof(record_t, y)) || (4 != offsetof(record_t, x)) ||
56 (0 != offsetof(record_
[all...]
H A Dtst.OffsetofUnion.d30 * Test invocation of offsetof() with a union type alias.
48 printf("offsetof(record, x) = %d\n", offsetof(union D`record, x));
49 printf("offsetof(record, y) = %d\n", offsetof(union D`record, y));
50 printf("offsetof(record, c) = %d\n", offsetof(union D`record, c));
55 /(0 != offsetof(union D`record, y)) && (0 != offsetof(union D`record, x)) &&
56 (0 != offsetof(unio
[all...]
H A Derr.D_OFFSETOF_BITFIELD.bitfield.d32 * Test invocation of offsetof() with a member that is a bit-field.
48 trace(offsetof(struct foo, b));
H A Dtst.struct.d31 * Test invocation of offsetof() with a struct type.
48 printf("offsetof(s, y) = %d\n", offsetof(struct D`s, y));
/freebsd-current/usr.sbin/ntp/ntpdc/
H A Dnl.c3 printf("offsetof(u32) = %d\n",
4 (int) offsetof(union req_data_u_tag, u32));
5 printf("offsetof(data) = %d\n",
6 (int) offsetof(union req_data_u_tag, data));
11 printf("offsetof(rm_vn_mode) = %d\n",
12 (int) offsetof(struct req_pkt, rm_vn_mode));
13 printf("offsetof(auth_seq) = %d\n",
14 (int) offsetof(struct req_pkt, auth_seq));
15 printf("offsetof(implementation) = %d\n",
16 (int) offsetof(struc
[all...]
/freebsd-current/sys/amd64/vmm/amd/
H A Dsvm_genassym.c35 ASSYM(SCTX_RBX, offsetof(struct svm_regctx, sctx_rbx));
36 ASSYM(SCTX_RCX, offsetof(struct svm_regctx, sctx_rcx));
37 ASSYM(SCTX_RBP, offsetof(struct svm_regctx, sctx_rbp));
38 ASSYM(SCTX_RDX, offsetof(struct svm_regctx, sctx_rdx));
39 ASSYM(SCTX_RDI, offsetof(struct svm_regctx, sctx_rdi));
40 ASSYM(SCTX_RSI, offsetof(struct svm_regctx, sctx_rsi));
41 ASSYM(SCTX_R8, offsetof(struct svm_regctx, sctx_r8));
42 ASSYM(SCTX_R9, offsetof(struct svm_regctx, sctx_r9));
43 ASSYM(SCTX_R10, offsetof(struct svm_regctx, sctx_r10));
44 ASSYM(SCTX_R11, offsetof(struc
[all...]
/freebsd-current/lib/libthr/thread/
H A Dthr_symbols.c42 int _thread_off_tcb = offsetof(struct pthread, tcb);
43 int _thread_off_tid = offsetof(struct pthread, tid);
44 int _thread_off_next = offsetof(struct pthread, tle.tqe_next);
45 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags);
46 int _thread_off_linkmap = offsetof(Obj_Entry, linkmap);
47 int _thread_off_tlsindex = offsetof(Obj_Entry, tlsindex);
48 int _thread_off_report_events = offsetof(struct pthread, report_events);
49 int _thread_off_event_mask = offsetof(struct pthread, event_mask);
50 int _thread_off_event_buf = offsetof(struct pthread, event_buf);
52 int _thread_off_key_allocated = offsetof(struc
[all...]
/freebsd-current/sys/dev/qat/qat_api/common/crypto/sym/
H A Dlac_sym_compile_check.c43 COMPILE_TIME_ASSERT(offsetof(lac_sym_bulk_cookie_t, sessionCtx) ==
44 offsetof(CpaCySymDpOpData, sessionCtx));
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__stddef_offsetof.h1 /*===---- __stddef_offsetof.h - Definition of offsetof ---------------------===
14 #if !defined(offsetof) || \
16 #define offsetof(t, d) __builtin_offsetof(t, d) macro
/freebsd-current/sys/amd64/linux/
H A Dlinux_genassym.c10 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_uc));
11 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));
12 ASSYM(L_SC_R8, offsetof(struct l_sigcontext, sc_r8));
13 ASSYM(L_SC_R9, offsetof(struct l_sigcontext, sc_r9));
14 ASSYM(L_SC_R10, offsetof(struct l_sigcontext, sc_r10));
15 ASSYM(L_SC_R11, offsetof(struct l_sigcontext, sc_r11));
16 ASSYM(L_SC_R12, offsetof(struct l_sigcontext, sc_r12));
17 ASSYM(L_SC_R13, offsetof(struct l_sigcontext, sc_r13));
18 ASSYM(L_SC_R14, offsetof(struct l_sigcontext, sc_r14));
19 ASSYM(L_SC_R15, offsetof(struc
[all...]
/freebsd-current/sys/amd64/amd64/
H A Dgenassym.c69 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
70 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
71 ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active));
73 ASSYM(P_MD, offsetof(struct proc, p_md));
74 ASSYM(MD_LDT, offsetof(struct mdproc, md_ldt));
75 ASSYM(MD_LDT_SD, offsetof(struct mdproc, md_ldt_sd));
77 ASSYM(MD_EFIRT_TMP, offsetof(struct mdthread, md_efirt_tmp));
79 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
80 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
81 ASSYM(TD_AST, offsetof(struc
[all...]
/freebsd-current/sys/i386/linux/
H A Dlinux_genassym.c10 ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
11 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_uc));
12 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));
13 ASSYM(L_SC_GS, offsetof(struct l_sigcontext, sc_gs));
14 ASSYM(L_SC_FS, offsetof(struct l_sigcontext, sc_fs));
15 ASSYM(L_SC_ES, offsetof(struct l_sigcontext, sc_es));
16 ASSYM(L_SC_DS, offsetof(struct l_sigcontext, sc_ds));
17 ASSYM(L_SC_CS, offsetof(struct l_sigcontext, sc_cs));
18 ASSYM(L_SC_SS, offsetof(struct l_sigcontext, sc_ss));
19 ASSYM(L_SC_EFLAGS, offsetof(struc
[all...]
/freebsd-current/sys/amd64/linux32/
H A Dlinux32_genassym.c11 ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
12 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_uc));
13 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));
14 ASSYM(L_SC_GS, offsetof(struct l_sigcontext, sc_gs));
15 ASSYM(L_SC_FS, offsetof(struct l_sigcontext, sc_fs));
16 ASSYM(L_SC_ES, offsetof(struct l_sigcontext, sc_es));
17 ASSYM(L_SC_DS, offsetof(struct l_sigcontext, sc_ds));
18 ASSYM(L_SC_CS, offsetof(struct l_sigcontext, sc_cs));
19 ASSYM(L_SC_SS, offsetof(struct l_sigcontext, sc_ss));
20 ASSYM(L_SC_EFLAGS, offsetof(struc
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/bitfields/
H A Derr.D_OFFSETOF_BITFIELD.d30 * ASSERTION: Cannot apply offsetof operator to a bit-field member.
45 printf("offsetof(struct bitRecord, a): %d\n",
46 offsetof(struct bitRecord, a));
47 printf("offsetof(struct bitRecord, b): %d\n",
48 offsetof(struct bitRecord, b));
49 printf("offsetof(struct bitRecord, c): %d\n",
50 offsetof(struct bitRecord, c));
/freebsd-current/sys/amd64/vmm/intel/
H A Dvmx_genassym.c42 ASSYM(VMXCTX_GUEST_RDI, offsetof(struct vmxctx, guest_rdi));
43 ASSYM(VMXCTX_GUEST_RSI, offsetof(struct vmxctx, guest_rsi));
44 ASSYM(VMXCTX_GUEST_RDX, offsetof(struct vmxctx, guest_rdx));
45 ASSYM(VMXCTX_GUEST_RCX, offsetof(struct vmxctx, guest_rcx));
46 ASSYM(VMXCTX_GUEST_R8, offsetof(struct vmxctx, guest_r8));
47 ASSYM(VMXCTX_GUEST_R9, offsetof(struct vmxctx, guest_r9));
48 ASSYM(VMXCTX_GUEST_RAX, offsetof(struct vmxctx, guest_rax));
49 ASSYM(VMXCTX_GUEST_RBX, offsetof(struct vmxctx, guest_rbx));
50 ASSYM(VMXCTX_GUEST_RBP, offsetof(struct vmxctx, guest_rbp));
51 ASSYM(VMXCTX_GUEST_R10, offsetof(struc
[all...]
/freebsd-current/sys/arm64/arm64/
H A Dgenassym.c41 ASSYM(BP_MODULEP, offsetof(struct arm64_bootparams, modulep));
42 ASSYM(BP_KERN_STACK, offsetof(struct arm64_bootparams, kern_stack));
43 ASSYM(BP_KERN_TTBR0, offsetof(struct arm64_bootparams, kern_ttbr0));
44 ASSYM(BP_BOOT_EL, offsetof(struct arm64_bootparams, boot_el));
45 ASSYM(BP_HCR_EL2, offsetof(struct arm64_bootparams, hcr_el2));
48 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
49 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
50 ASSYM(PC_SSBD, offsetof(struct pcpu, pc_ssbd));
55 ASSYM(PCB_REGS, offsetof(struct pcb, pcb_x));
57 ASSYM(PCB_SP, offsetof(struc
[all...]
/freebsd-current/sys/riscv/riscv/
H A Dgenassym.c64 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
66 ASSYM(PCB_RA, offsetof(struct pcb, pcb_ra));
67 ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp));
68 ASSYM(PCB_GP, offsetof(struct pcb, pcb_gp));
69 ASSYM(PCB_TP, offsetof(struct pcb, pcb_tp));
70 ASSYM(PCB_S, offsetof(struct pcb, pcb_s));
71 ASSYM(PCB_X, offsetof(struct pcb, pcb_x));
72 ASSYM(PCB_FCSR, offsetof(struct pcb, pcb_fcsr));
74 ASSYM(SF_UC, offsetof(struct sigframe, sf_uc));
76 ASSYM(PC_CURPCB, offsetof(struc
[all...]
/freebsd-current/sys/compat/ia32/
H A Dia32_genassym.c10 ASSYM(IA32_SIGF_HANDLER, offsetof(struct ia32_sigframe, sf_ah));
11 ASSYM(IA32_SIGF_UC, offsetof(struct ia32_sigframe, sf_uc));
12 ASSYM(IA32_UC_GS, offsetof(struct ia32_ucontext, uc_mcontext.mc_gs));
13 ASSYM(IA32_UC_FS, offsetof(struct ia32_ucontext, uc_mcontext.mc_fs));
14 ASSYM(IA32_UC_ES, offsetof(struct ia32_ucontext, uc_mcontext.mc_es));
15 ASSYM(IA32_UC_DS, offsetof(struct ia32_ucontext, uc_mcontext.mc_ds));
16 ASSYM(IA32_UC_EDI, offsetof(struct ia32_ucontext, uc_mcontext.mc_edi));
17 ASSYM(IA32_UC_ESI, offsetof(struct ia32_ucontext, uc_mcontext.mc_esi));
18 ASSYM(IA32_UC_EBP, offsetof(struct ia32_ucontext, uc_mcontext.mc_ebp));
19 ASSYM(IA32_UC_EBX, offsetof(struc
[all...]
/freebsd-current/sys/arm/arm/
H A Dgenassym.c64 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
65 ASSYM(PCB_PAGEDIR, offsetof(struct pcb, pcb_pagedir));
66 ASSYM(PCB_R4, offsetof(struct pcb, pcb_regs.sf_r4));
67 ASSYM(PCB_R5, offsetof(struct pcb, pcb_regs.sf_r5));
68 ASSYM(PCB_R6, offsetof(struct pcb, pcb_regs.sf_r6));
69 ASSYM(PCB_R7, offsetof(struct pcb, pcb_regs.sf_r7));
70 ASSYM(PCB_R8, offsetof(struct pcb, pcb_regs.sf_r8));
71 ASSYM(PCB_R9, offsetof(struct pcb, pcb_regs.sf_r9));
72 ASSYM(PCB_R10, offsetof(struct pcb, pcb_regs.sf_r10));
73 ASSYM(PCB_R11, offsetof(struc
[all...]
/freebsd-current/sys/powerpc/powerpc/
H A Dgenassym.c57 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
58 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
59 ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap));
60 ASSYM(PC_TEMPSAVE, offsetof(struct pcpu, pc_tempsave));
61 ASSYM(PC_DISISAVE, offsetof(struct pcpu, pc_disisave));
62 ASSYM(PC_DBSAVE, offsetof(struct pcpu, pc_dbsave));
63 ASSYM(PC_RESTORE, offsetof(struct pcpu, pc_restore));
64 ASSYM(PC_FLAGS, offsetof(struct pcpu, pc_flags));
67 ASSYM(PC_BOOKE_CRITSAVE, offsetof(struct pcpu, pc_booke.critsave));
68 ASSYM(PC_BOOKE_MCHKSAVE, offsetof(struc
[all...]
/freebsd-current/sys/i386/i386/
H A Dgenassym.c79 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
80 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
81 ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active));
83 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
84 ASSYM(TD_AST, offsetof(struct thread, td_ast));
85 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
86 ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
87 ASSYM(TD_PFLAGS, offsetof(struct thread, td_pflags));
88 ASSYM(TD_PROC, offsetof(struct thread, td_proc));
89 ASSYM(TD_MD, offsetof(struc
[all...]

Completed in 396 milliseconds

1234567891011>>