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

/linux-4.4.14/arch/ia64/kernel/
H A Dasm-offsets.c24 DEFINE(IA64_TASK_SIZE, sizeof (struct task_struct)); foo()
25 DEFINE(IA64_THREAD_INFO_SIZE, sizeof (struct thread_info)); foo()
26 DEFINE(IA64_PT_REGS_SIZE, sizeof (struct pt_regs)); foo()
27 DEFINE(IA64_SWITCH_STACK_SIZE, sizeof (struct switch_stack)); foo()
28 DEFINE(IA64_SIGINFO_SIZE, sizeof (struct siginfo)); foo()
29 DEFINE(IA64_CPU_SIZE, sizeof (struct cpuinfo_ia64)); foo()
30 DEFINE(SIGFRAME_SIZE, sizeof (struct sigframe)); foo()
31 DEFINE(UNW_FRAME_INFO_SIZE, sizeof (struct unw_frame_info)); foo()
34 DEFINE(IA64_UPID_SHIFT, 5); foo()
38 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); foo()
39 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); foo()
40 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); foo()
42 DEFINE(TI_AC_STAMP, offsetof(struct thread_info, ac_stamp)); foo()
43 DEFINE(TI_AC_LEAVE, offsetof(struct thread_info, ac_leave)); foo()
44 DEFINE(TI_AC_STIME, offsetof(struct thread_info, ac_stime)); foo()
45 DEFINE(TI_AC_UTIME, offsetof(struct thread_info, ac_utime)); foo()
50 DEFINE(IA64_TASK_BLOCKED_OFFSET,offsetof (struct task_struct, blocked)); foo()
51 DEFINE(IA64_TASK_CLEAR_CHILD_TID_OFFSET,offsetof (struct task_struct, clear_child_tid)); foo()
52 DEFINE(IA64_TASK_GROUP_LEADER_OFFSET, offsetof (struct task_struct, group_leader)); foo()
53 DEFINE(IA64_TASK_TGIDLINK_OFFSET, offsetof (struct task_struct, pids[PIDTYPE_PID].pid)); foo()
54 DEFINE(IA64_PID_LEVEL_OFFSET, offsetof (struct pid, level)); foo()
55 DEFINE(IA64_PID_UPID_OFFSET, offsetof (struct pid, numbers[0])); foo()
56 DEFINE(IA64_TASK_PENDING_OFFSET,offsetof (struct task_struct, pending)); foo()
57 DEFINE(IA64_TASK_PID_OFFSET, offsetof (struct task_struct, pid)); foo()
58 DEFINE(IA64_TASK_REAL_PARENT_OFFSET, offsetof (struct task_struct, real_parent)); foo()
59 DEFINE(IA64_TASK_SIGHAND_OFFSET,offsetof (struct task_struct, sighand)); foo()
60 DEFINE(IA64_TASK_SIGNAL_OFFSET,offsetof (struct task_struct, signal)); foo()
61 DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid)); foo()
62 DEFINE(IA64_TASK_THREAD_KSP_OFFSET, offsetof (struct task_struct, thread.ksp)); foo()
63 DEFINE(IA64_TASK_THREAD_ON_USTACK_OFFSET, offsetof (struct task_struct, thread.on_ustack)); foo()
67 DEFINE(IA64_SIGHAND_SIGLOCK_OFFSET,offsetof (struct sighand_struct, siglock)); foo()
71 DEFINE(IA64_SIGNAL_GROUP_STOP_COUNT_OFFSET,offsetof (struct signal_struct, foo()
73 DEFINE(IA64_SIGNAL_SHARED_PENDING_OFFSET,offsetof (struct signal_struct, shared_pending)); foo()
77 DEFINE(IA64_PT_REGS_B6_OFFSET, offsetof (struct pt_regs, b6)); foo()
78 DEFINE(IA64_PT_REGS_B7_OFFSET, offsetof (struct pt_regs, b7)); foo()
79 DEFINE(IA64_PT_REGS_AR_CSD_OFFSET, offsetof (struct pt_regs, ar_csd)); foo()
80 DEFINE(IA64_PT_REGS_AR_SSD_OFFSET, offsetof (struct pt_regs, ar_ssd)); foo()
81 DEFINE(IA64_PT_REGS_R8_OFFSET, offsetof (struct pt_regs, r8)); foo()
82 DEFINE(IA64_PT_REGS_R9_OFFSET, offsetof (struct pt_regs, r9)); foo()
83 DEFINE(IA64_PT_REGS_R10_OFFSET, offsetof (struct pt_regs, r10)); foo()
84 DEFINE(IA64_PT_REGS_R11_OFFSET, offsetof (struct pt_regs, r11)); foo()
85 DEFINE(IA64_PT_REGS_CR_IPSR_OFFSET, offsetof (struct pt_regs, cr_ipsr)); foo()
86 DEFINE(IA64_PT_REGS_CR_IIP_OFFSET, offsetof (struct pt_regs, cr_iip)); foo()
87 DEFINE(IA64_PT_REGS_CR_IFS_OFFSET, offsetof (struct pt_regs, cr_ifs)); foo()
88 DEFINE(IA64_PT_REGS_AR_UNAT_OFFSET, offsetof (struct pt_regs, ar_unat)); foo()
89 DEFINE(IA64_PT_REGS_AR_PFS_OFFSET, offsetof (struct pt_regs, ar_pfs)); foo()
90 DEFINE(IA64_PT_REGS_AR_RSC_OFFSET, offsetof (struct pt_regs, ar_rsc)); foo()
91 DEFINE(IA64_PT_REGS_AR_RNAT_OFFSET, offsetof (struct pt_regs, ar_rnat)); foo()
93 DEFINE(IA64_PT_REGS_AR_BSPSTORE_OFFSET, offsetof (struct pt_regs, ar_bspstore)); foo()
94 DEFINE(IA64_PT_REGS_PR_OFFSET, offsetof (struct pt_regs, pr)); foo()
95 DEFINE(IA64_PT_REGS_B0_OFFSET, offsetof (struct pt_regs, b0)); foo()
96 DEFINE(IA64_PT_REGS_LOADRS_OFFSET, offsetof (struct pt_regs, loadrs)); foo()
97 DEFINE(IA64_PT_REGS_R1_OFFSET, offsetof (struct pt_regs, r1)); foo()
98 DEFINE(IA64_PT_REGS_R12_OFFSET, offsetof (struct pt_regs, r12)); foo()
99 DEFINE(IA64_PT_REGS_R13_OFFSET, offsetof (struct pt_regs, r13)); foo()
100 DEFINE(IA64_PT_REGS_AR_FPSR_OFFSET, offsetof (struct pt_regs, ar_fpsr)); foo()
101 DEFINE(IA64_PT_REGS_R15_OFFSET, offsetof (struct pt_regs, r15)); foo()
102 DEFINE(IA64_PT_REGS_R14_OFFSET, offsetof (struct pt_regs, r14)); foo()
103 DEFINE(IA64_PT_REGS_R2_OFFSET, offsetof (struct pt_regs, r2)); foo()
104 DEFINE(IA64_PT_REGS_R3_OFFSET, offsetof (struct pt_regs, r3)); foo()
105 DEFINE(IA64_PT_REGS_R16_OFFSET, offsetof (struct pt_regs, r16)); foo()
106 DEFINE(IA64_PT_REGS_R17_OFFSET, offsetof (struct pt_regs, r17)); foo()
107 DEFINE(IA64_PT_REGS_R18_OFFSET, offsetof (struct pt_regs, r18)); foo()
108 DEFINE(IA64_PT_REGS_R19_OFFSET, offsetof (struct pt_regs, r19)); foo()
109 DEFINE(IA64_PT_REGS_R20_OFFSET, offsetof (struct pt_regs, r20)); foo()
110 DEFINE(IA64_PT_REGS_R21_OFFSET, offsetof (struct pt_regs, r21)); foo()
111 DEFINE(IA64_PT_REGS_R22_OFFSET, offsetof (struct pt_regs, r22)); foo()
112 DEFINE(IA64_PT_REGS_R23_OFFSET, offsetof (struct pt_regs, r23)); foo()
113 DEFINE(IA64_PT_REGS_R24_OFFSET, offsetof (struct pt_regs, r24)); foo()
114 DEFINE(IA64_PT_REGS_R25_OFFSET, offsetof (struct pt_regs, r25)); foo()
115 DEFINE(IA64_PT_REGS_R26_OFFSET, offsetof (struct pt_regs, r26)); foo()
116 DEFINE(IA64_PT_REGS_R27_OFFSET, offsetof (struct pt_regs, r27)); foo()
117 DEFINE(IA64_PT_REGS_R28_OFFSET, offsetof (struct pt_regs, r28)); foo()
118 DEFINE(IA64_PT_REGS_R29_OFFSET, offsetof (struct pt_regs, r29)); foo()
119 DEFINE(IA64_PT_REGS_R30_OFFSET, offsetof (struct pt_regs, r30)); foo()
120 DEFINE(IA64_PT_REGS_R31_OFFSET, offsetof (struct pt_regs, r31)); foo()
121 DEFINE(IA64_PT_REGS_AR_CCV_OFFSET, offsetof (struct pt_regs, ar_ccv)); foo()
122 DEFINE(IA64_PT_REGS_F6_OFFSET, offsetof (struct pt_regs, f6)); foo()
123 DEFINE(IA64_PT_REGS_F7_OFFSET, offsetof (struct pt_regs, f7)); foo()
124 DEFINE(IA64_PT_REGS_F8_OFFSET, offsetof (struct pt_regs, f8)); foo()
125 DEFINE(IA64_PT_REGS_F9_OFFSET, offsetof (struct pt_regs, f9)); foo()
126 DEFINE(IA64_PT_REGS_F10_OFFSET, offsetof (struct pt_regs, f10)); foo()
127 DEFINE(IA64_PT_REGS_F11_OFFSET, offsetof (struct pt_regs, f11)); foo()
131 DEFINE(IA64_SWITCH_STACK_CALLER_UNAT_OFFSET, offsetof (struct switch_stack, caller_unat)); foo()
132 DEFINE(IA64_SWITCH_STACK_AR_FPSR_OFFSET, offsetof (struct switch_stack, ar_fpsr)); foo()
133 DEFINE(IA64_SWITCH_STACK_F2_OFFSET, offsetof (struct switch_stack, f2)); foo()
134 DEFINE(IA64_SWITCH_STACK_F3_OFFSET, offsetof (struct switch_stack, f3)); foo()
135 DEFINE(IA64_SWITCH_STACK_F4_OFFSET, offsetof (struct switch_stack, f4)); foo()
136 DEFINE(IA64_SWITCH_STACK_F5_OFFSET, offsetof (struct switch_stack, f5)); foo()
137 DEFINE(IA64_SWITCH_STACK_F12_OFFSET, offsetof (struct switch_stack, f12)); foo()
138 DEFINE(IA64_SWITCH_STACK_F13_OFFSET, offsetof (struct switch_stack, f13)); foo()
139 DEFINE(IA64_SWITCH_STACK_F14_OFFSET, offsetof (struct switch_stack, f14)); foo()
140 DEFINE(IA64_SWITCH_STACK_F15_OFFSET, offsetof (struct switch_stack, f15)); foo()
141 DEFINE(IA64_SWITCH_STACK_F16_OFFSET, offsetof (struct switch_stack, f16)); foo()
142 DEFINE(IA64_SWITCH_STACK_F17_OFFSET, offsetof (struct switch_stack, f17)); foo()
143 DEFINE(IA64_SWITCH_STACK_F18_OFFSET, offsetof (struct switch_stack, f18)); foo()
144 DEFINE(IA64_SWITCH_STACK_F19_OFFSET, offsetof (struct switch_stack, f19)); foo()
145 DEFINE(IA64_SWITCH_STACK_F20_OFFSET, offsetof (struct switch_stack, f20)); foo()
146 DEFINE(IA64_SWITCH_STACK_F21_OFFSET, offsetof (struct switch_stack, f21)); foo()
147 DEFINE(IA64_SWITCH_STACK_F22_OFFSET, offsetof (struct switch_stack, f22)); foo()
148 DEFINE(IA64_SWITCH_STACK_F23_OFFSET, offsetof (struct switch_stack, f23)); foo()
149 DEFINE(IA64_SWITCH_STACK_F24_OFFSET, offsetof (struct switch_stack, f24)); foo()
150 DEFINE(IA64_SWITCH_STACK_F25_OFFSET, offsetof (struct switch_stack, f25)); foo()
151 DEFINE(IA64_SWITCH_STACK_F26_OFFSET, offsetof (struct switch_stack, f26)); foo()
152 DEFINE(IA64_SWITCH_STACK_F27_OFFSET, offsetof (struct switch_stack, f27)); foo()
153 DEFINE(IA64_SWITCH_STACK_F28_OFFSET, offsetof (struct switch_stack, f28)); foo()
154 DEFINE(IA64_SWITCH_STACK_F29_OFFSET, offsetof (struct switch_stack, f29)); foo()
155 DEFINE(IA64_SWITCH_STACK_F30_OFFSET, offsetof (struct switch_stack, f30)); foo()
156 DEFINE(IA64_SWITCH_STACK_F31_OFFSET, offsetof (struct switch_stack, f31)); foo()
157 DEFINE(IA64_SWITCH_STACK_R4_OFFSET, offsetof (struct switch_stack, r4)); foo()
158 DEFINE(IA64_SWITCH_STACK_R5_OFFSET, offsetof (struct switch_stack, r5)); foo()
159 DEFINE(IA64_SWITCH_STACK_R6_OFFSET, offsetof (struct switch_stack, r6)); foo()
160 DEFINE(IA64_SWITCH_STACK_R7_OFFSET, offsetof (struct switch_stack, r7)); foo()
161 DEFINE(IA64_SWITCH_STACK_B0_OFFSET, offsetof (struct switch_stack, b0)); foo()
162 DEFINE(IA64_SWITCH_STACK_B1_OFFSET, offsetof (struct switch_stack, b1)); foo()
163 DEFINE(IA64_SWITCH_STACK_B2_OFFSET, offsetof (struct switch_stack, b2)); foo()
164 DEFINE(IA64_SWITCH_STACK_B3_OFFSET, offsetof (struct switch_stack, b3)); foo()
165 DEFINE(IA64_SWITCH_STACK_B4_OFFSET, offsetof (struct switch_stack, b4)); foo()
166 DEFINE(IA64_SWITCH_STACK_B5_OFFSET, offsetof (struct switch_stack, b5)); foo()
167 DEFINE(IA64_SWITCH_STACK_AR_PFS_OFFSET, offsetof (struct switch_stack, ar_pfs)); foo()
168 DEFINE(IA64_SWITCH_STACK_AR_LC_OFFSET, offsetof (struct switch_stack, ar_lc)); foo()
169 DEFINE(IA64_SWITCH_STACK_AR_UNAT_OFFSET, offsetof (struct switch_stack, ar_unat)); foo()
170 DEFINE(IA64_SWITCH_STACK_AR_RNAT_OFFSET, offsetof (struct switch_stack, ar_rnat)); foo()
171 DEFINE(IA64_SWITCH_STACK_AR_BSPSTORE_OFFSET, offsetof (struct switch_stack, ar_bspstore)); foo()
172 DEFINE(IA64_SWITCH_STACK_PR_OFFSET, offsetof (struct switch_stack, pr)); foo()
176 DEFINE(IA64_SIGCONTEXT_IP_OFFSET, offsetof (struct sigcontext, sc_ip)); foo()
177 DEFINE(IA64_SIGCONTEXT_AR_BSP_OFFSET, offsetof (struct sigcontext, sc_ar_bsp)); foo()
178 DEFINE(IA64_SIGCONTEXT_AR_FPSR_OFFSET, offsetof (struct sigcontext, sc_ar_fpsr)); foo()
179 DEFINE(IA64_SIGCONTEXT_AR_RNAT_OFFSET, offsetof (struct sigcontext, sc_ar_rnat)); foo()
180 DEFINE(IA64_SIGCONTEXT_AR_UNAT_OFFSET, offsetof (struct sigcontext, sc_ar_unat)); foo()
181 DEFINE(IA64_SIGCONTEXT_B0_OFFSET, offsetof (struct sigcontext, sc_br[0])); foo()
182 DEFINE(IA64_SIGCONTEXT_CFM_OFFSET, offsetof (struct sigcontext, sc_cfm)); foo()
183 DEFINE(IA64_SIGCONTEXT_FLAGS_OFFSET, offsetof (struct sigcontext, sc_flags)); foo()
184 DEFINE(IA64_SIGCONTEXT_FR6_OFFSET, offsetof (struct sigcontext, sc_fr[6])); foo()
185 DEFINE(IA64_SIGCONTEXT_PR_OFFSET, offsetof (struct sigcontext, sc_pr)); foo()
186 DEFINE(IA64_SIGCONTEXT_R12_OFFSET, offsetof (struct sigcontext, sc_gr[12])); foo()
187 DEFINE(IA64_SIGCONTEXT_RBS_BASE_OFFSET,offsetof (struct sigcontext, sc_rbs_base)); foo()
188 DEFINE(IA64_SIGCONTEXT_LOADRS_OFFSET, offsetof (struct sigcontext, sc_loadrs)); foo()
192 DEFINE(IA64_SIGPENDING_SIGNAL_OFFSET, offsetof (struct sigpending, signal)); foo()
196 DEFINE(IA64_SIGFRAME_ARG0_OFFSET, offsetof (struct sigframe, arg0)); foo()
197 DEFINE(IA64_SIGFRAME_ARG1_OFFSET, offsetof (struct sigframe, arg1)); foo()
198 DEFINE(IA64_SIGFRAME_ARG2_OFFSET, offsetof (struct sigframe, arg2)); foo()
199 DEFINE(IA64_SIGFRAME_HANDLER_OFFSET, offsetof (struct sigframe, handler)); foo()
200 DEFINE(IA64_SIGFRAME_SIGCONTEXT_OFFSET, offsetof (struct sigframe, sc)); foo()
203 DEFINE(IA64_CLONE_VFORK, CLONE_VFORK); foo()
204 DEFINE(IA64_CLONE_VM, CLONE_VM); foo()
207 DEFINE(IA64_CPUINFO_NSEC_PER_CYC_OFFSET, foo()
209 DEFINE(IA64_CPUINFO_PTCE_BASE_OFFSET, foo()
211 DEFINE(IA64_CPUINFO_PTCE_COUNT_OFFSET, foo()
213 DEFINE(IA64_CPUINFO_PTCE_STRIDE_OFFSET, foo()
216 DEFINE(IA64_TIMESPEC_TV_NSEC_OFFSET, foo()
219 DEFINE(CLONE_SETTLS_BIT, 19); foo()
225 DEFINE(IA64_MCA_CPU_MCA_STACK_OFFSET, foo()
227 DEFINE(IA64_MCA_CPU_INIT_STACK_OFFSET, foo()
230 DEFINE(IA64_SAL_OS_STATE_OS_GP_OFFSET, foo()
232 DEFINE(IA64_SAL_OS_STATE_PROC_STATE_PARAM_OFFSET, foo()
234 DEFINE(IA64_SAL_OS_STATE_SAL_RA_OFFSET, foo()
236 DEFINE(IA64_SAL_OS_STATE_SAL_GP_OFFSET, foo()
238 DEFINE(IA64_SAL_OS_STATE_PAL_MIN_STATE_OFFSET, foo()
240 DEFINE(IA64_SAL_OS_STATE_OS_STATUS_OFFSET, foo()
242 DEFINE(IA64_SAL_OS_STATE_CONTEXT_OFFSET, foo()
244 DEFINE(IA64_SAL_OS_STATE_SIZE, foo()
248 DEFINE(IA64_PMSA_GR_OFFSET, foo()
250 DEFINE(IA64_PMSA_BANK1_GR_OFFSET, foo()
252 DEFINE(IA64_PMSA_PR_OFFSET, foo()
254 DEFINE(IA64_PMSA_BR0_OFFSET, foo()
256 DEFINE(IA64_PMSA_RSC_OFFSET, foo()
258 DEFINE(IA64_PMSA_IIP_OFFSET, foo()
260 DEFINE(IA64_PMSA_IPSR_OFFSET, foo()
262 DEFINE(IA64_PMSA_IFS_OFFSET, foo()
264 DEFINE(IA64_PMSA_XIP_OFFSET, foo()
269 DEFINE(IA64_GTOD_SEQ_OFFSET, foo()
271 DEFINE(IA64_GTOD_WALL_TIME_OFFSET, foo()
273 DEFINE(IA64_GTOD_MONO_TIME_OFFSET, foo()
275 DEFINE(IA64_CLKSRC_MASK_OFFSET, foo()
277 DEFINE(IA64_CLKSRC_MULT_OFFSET, foo()
279 DEFINE(IA64_CLKSRC_SHIFT_OFFSET, foo()
281 DEFINE(IA64_CLKSRC_MMIO_OFFSET, foo()
283 DEFINE(IA64_CLKSRC_CYCLE_LAST_OFFSET, foo()
285 DEFINE(IA64_ITC_JITTER_OFFSET, foo()
287 DEFINE(IA64_ITC_LASTCYCLE_OFFSET, foo()
H A Dnr-irqs.c20 DEFINE(NR_IRQS, sizeof (union paravirt_nr_irqs_max)); foo()
/linux-4.4.14/arch/microblaze/kernel/
H A Dasm-offsets.c24 DEFINE(PT_SIZE, sizeof(struct pt_regs)); main()
25 DEFINE(PT_MSR, offsetof(struct pt_regs, msr)); main()
26 DEFINE(PT_EAR, offsetof(struct pt_regs, ear)); main()
27 DEFINE(PT_ESR, offsetof(struct pt_regs, esr)); main()
28 DEFINE(PT_FSR, offsetof(struct pt_regs, fsr)); main()
29 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); main()
30 DEFINE(PT_R0, offsetof(struct pt_regs, r0)); main()
31 DEFINE(PT_R1, offsetof(struct pt_regs, r1)); main()
32 DEFINE(PT_R2, offsetof(struct pt_regs, r2)); main()
33 DEFINE(PT_R3, offsetof(struct pt_regs, r3)); main()
34 DEFINE(PT_R4, offsetof(struct pt_regs, r4)); main()
35 DEFINE(PT_R5, offsetof(struct pt_regs, r5)); main()
36 DEFINE(PT_R6, offsetof(struct pt_regs, r6)); main()
37 DEFINE(PT_R7, offsetof(struct pt_regs, r7)); main()
38 DEFINE(PT_R8, offsetof(struct pt_regs, r8)); main()
39 DEFINE(PT_R9, offsetof(struct pt_regs, r9)); main()
40 DEFINE(PT_R10, offsetof(struct pt_regs, r10)); main()
41 DEFINE(PT_R11, offsetof(struct pt_regs, r11)); main()
42 DEFINE(PT_R12, offsetof(struct pt_regs, r12)); main()
43 DEFINE(PT_R13, offsetof(struct pt_regs, r13)); main()
44 DEFINE(PT_R14, offsetof(struct pt_regs, r14)); main()
45 DEFINE(PT_R15, offsetof(struct pt_regs, r15)); main()
46 DEFINE(PT_R16, offsetof(struct pt_regs, r16)); main()
47 DEFINE(PT_R17, offsetof(struct pt_regs, r17)); main()
48 DEFINE(PT_R18, offsetof(struct pt_regs, r18)); main()
49 DEFINE(PT_R19, offsetof(struct pt_regs, r19)); main()
50 DEFINE(PT_R20, offsetof(struct pt_regs, r20)); main()
51 DEFINE(PT_R21, offsetof(struct pt_regs, r21)); main()
52 DEFINE(PT_R22, offsetof(struct pt_regs, r22)); main()
53 DEFINE(PT_R23, offsetof(struct pt_regs, r23)); main()
54 DEFINE(PT_R24, offsetof(struct pt_regs, r24)); main()
55 DEFINE(PT_R25, offsetof(struct pt_regs, r25)); main()
56 DEFINE(PT_R26, offsetof(struct pt_regs, r26)); main()
57 DEFINE(PT_R27, offsetof(struct pt_regs, r27)); main()
58 DEFINE(PT_R28, offsetof(struct pt_regs, r28)); main()
59 DEFINE(PT_R29, offsetof(struct pt_regs, r29)); main()
60 DEFINE(PT_R30, offsetof(struct pt_regs, r30)); main()
61 DEFINE(PT_R31, offsetof(struct pt_regs, r31)); main()
62 DEFINE(PT_MODE, offsetof(struct pt_regs, pt_mode)); main()
66 DEFINE(PT_TEXT_ADDR, sizeof(struct pt_regs) + 1); main()
67 DEFINE(PT_TEXT_LEN, sizeof(struct pt_regs) + 2); main()
68 DEFINE(PT_DATA_ADDR, sizeof(struct pt_regs) + 3); main()
72 DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack)); main()
74 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
75 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
76 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
77 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); main()
78 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
79 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
80 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); main()
81 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
82 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); main()
85 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); main()
90 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
91 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
92 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main()
93 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); main()
94 DEFINE(TI_PREEMPT_COUNT, offsetof(struct thread_info, preempt_count)); main()
98 DEFINE(CC_R1, offsetof(struct cpu_context, r1)); /* r1 */ main()
99 DEFINE(CC_R2, offsetof(struct cpu_context, r2)); main()
101 DEFINE(CC_R13, offsetof(struct cpu_context, r13)); main()
102 DEFINE(CC_R14, offsetof(struct cpu_context, r14)); main()
103 DEFINE(CC_R15, offsetof(struct cpu_context, r15)); main()
104 DEFINE(CC_R16, offsetof(struct cpu_context, r16)); main()
105 DEFINE(CC_R17, offsetof(struct cpu_context, r17)); main()
106 DEFINE(CC_R18, offsetof(struct cpu_context, r18)); main()
108 DEFINE(CC_R19, offsetof(struct cpu_context, r19)); main()
109 DEFINE(CC_R20, offsetof(struct cpu_context, r20)); main()
110 DEFINE(CC_R21, offsetof(struct cpu_context, r21)); main()
111 DEFINE(CC_R22, offsetof(struct cpu_context, r22)); main()
112 DEFINE(CC_R23, offsetof(struct cpu_context, r23)); main()
113 DEFINE(CC_R24, offsetof(struct cpu_context, r24)); main()
114 DEFINE(CC_R25, offsetof(struct cpu_context, r25)); main()
115 DEFINE(CC_R26, offsetof(struct cpu_context, r26)); main()
116 DEFINE(CC_R27, offsetof(struct cpu_context, r27)); main()
117 DEFINE(CC_R28, offsetof(struct cpu_context, r28)); main()
118 DEFINE(CC_R29, offsetof(struct cpu_context, r29)); main()
119 DEFINE(CC_R30, offsetof(struct cpu_context, r30)); main()
121 DEFINE(CC_MSR, offsetof(struct cpu_context, msr)); main()
122 DEFINE(CC_EAR, offsetof(struct cpu_context, ear)); main()
123 DEFINE(CC_ESR, offsetof(struct cpu_context, esr)); main()
124 DEFINE(CC_FSR, offsetof(struct cpu_context, fsr)); main()
/linux-4.4.14/arch/m68k/kernel/
H A Dasm-offsets.c25 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
26 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
27 DEFINE(TASK_STACK, offsetof(struct task_struct, stack)); main()
30 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); main()
31 DEFINE(THREAD_USP, offsetof(struct thread_struct, usp)); main()
32 DEFINE(THREAD_SR, offsetof(struct thread_struct, sr)); main()
33 DEFINE(THREAD_FS, offsetof(struct thread_struct, fs)); main()
34 DEFINE(THREAD_CRP, offsetof(struct thread_struct, crp)); main()
35 DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0)); main()
36 DEFINE(THREAD_FPREG, offsetof(struct thread_struct, fp)); main()
37 DEFINE(THREAD_FPCNTL, offsetof(struct thread_struct, fpcntl)); main()
38 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate)); main()
41 DEFINE(TINFO_PREEMPT, offsetof(struct thread_info, preempt_count)); main()
42 DEFINE(TINFO_FLAGS, offsetof(struct thread_info, flags)); main()
45 DEFINE(PT_OFF_D0, offsetof(struct pt_regs, d0)); main()
46 DEFINE(PT_OFF_ORIG_D0, offsetof(struct pt_regs, orig_d0)); main()
47 DEFINE(PT_OFF_D1, offsetof(struct pt_regs, d1)); main()
48 DEFINE(PT_OFF_D2, offsetof(struct pt_regs, d2)); main()
49 DEFINE(PT_OFF_D3, offsetof(struct pt_regs, d3)); main()
50 DEFINE(PT_OFF_D4, offsetof(struct pt_regs, d4)); main()
51 DEFINE(PT_OFF_D5, offsetof(struct pt_regs, d5)); main()
52 DEFINE(PT_OFF_A0, offsetof(struct pt_regs, a0)); main()
53 DEFINE(PT_OFF_A1, offsetof(struct pt_regs, a1)); main()
54 DEFINE(PT_OFF_A2, offsetof(struct pt_regs, a2)); main()
55 DEFINE(PT_OFF_PC, offsetof(struct pt_regs, pc)); main()
56 DEFINE(PT_OFF_SR, offsetof(struct pt_regs, sr)); main()
60 DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, sr) - 2); main()
62 DEFINE(PT_OFF_FORMATVEC, offsetof(struct pt_regs, pc) + 4); main()
66 DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, __softirq_pending)); main()
69 DEFINE(LSIGSEGV, SIGSEGV); main()
70 DEFINE(LSEGV_MAPERR, SEGV_MAPERR); main()
71 DEFINE(LSIGTRAP, SIGTRAP); main()
72 DEFINE(LTRAP_TRACE, TRAP_TRACE); main()
76 DEFINE(BIR_TAG, offsetof(struct bi_record, tag)); main()
77 DEFINE(BIR_SIZE, offsetof(struct bi_record, size)); main()
78 DEFINE(BIR_DATA, offsetof(struct bi_record, data)); main()
81 DEFINE(FONT_DESC_IDX, offsetof(struct font_desc, idx)); main()
82 DEFINE(FONT_DESC_NAME, offsetof(struct font_desc, name)); main()
83 DEFINE(FONT_DESC_WIDTH, offsetof(struct font_desc, width)); main()
84 DEFINE(FONT_DESC_HEIGHT, offsetof(struct font_desc, height)); main()
85 DEFINE(FONT_DESC_DATA, offsetof(struct font_desc, data)); main()
86 DEFINE(FONT_DESC_PREF, offsetof(struct font_desc, pref)); main()
89 DEFINE(CUSTOMBASE, &amiga_custom); main()
90 DEFINE(C_INTENAR, offsetof(struct CUSTOM, intenar)); main()
91 DEFINE(C_INTREQR, offsetof(struct CUSTOM, intreqr)); main()
92 DEFINE(C_INTENA, offsetof(struct CUSTOM, intena)); main()
93 DEFINE(C_INTREQ, offsetof(struct CUSTOM, intreq)); main()
94 DEFINE(C_SERDATR, offsetof(struct CUSTOM, serdatr)); main()
95 DEFINE(C_SERDAT, offsetof(struct CUSTOM, serdat)); main()
96 DEFINE(C_SERPER, offsetof(struct CUSTOM, serper)); main()
97 DEFINE(CIAABASE, &ciaa); main()
98 DEFINE(CIABBASE, &ciab); main()
99 DEFINE(C_PRA, offsetof(struct CIA, pra)); main()
100 DEFINE(ZTWOBASE, zTwoBase); main()
103 DEFINE(M68K_FIXUP_MEMOFFSET, m68k_fixup_memoffset); main()
/linux-4.4.14/arch/alpha/kernel/
H A Dasm-offsets.c16 DEFINE(TI_TASK, offsetof(struct thread_info, task)); foo()
17 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); foo()
18 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); foo()
21 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); foo()
22 DEFINE(TASK_CRED, offsetof(struct task_struct, cred)); foo()
23 DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent)); foo()
24 DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader)); foo()
25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); foo()
28 DEFINE(CRED_UID, offsetof(struct cred, uid)); foo()
29 DEFINE(CRED_EUID, offsetof(struct cred, euid)); foo()
30 DEFINE(CRED_GID, offsetof(struct cred, gid)); foo()
31 DEFINE(CRED_EGID, offsetof(struct cred, egid)); foo()
34 DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs)); foo()
35 DEFINE(PT_PTRACED, PT_PTRACED); foo()
36 DEFINE(CLONE_VM, CLONE_VM); foo()
37 DEFINE(CLONE_UNTRACED, CLONE_UNTRACED); foo()
38 DEFINE(SIGCHLD, SIGCHLD); foo()
41 DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache)); foo()
42 DEFINE(HAE_REG, offsetof(struct alpha_machine_vector, hae_register)); foo()
/linux-4.4.14/arch/arc/kernel/
H A Dasm-offsets.c20 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
21 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); main()
25 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); main()
26 DEFINE(THREAD_CALLEE_REG, offsetof(struct thread_struct, callee_reg)); main()
27 DEFINE(THREAD_FAULT_ADDR, main()
32 DEFINE(THREAD_INFO_FLAGS, offsetof(struct thread_info, flags)); main()
33 DEFINE(THREAD_INFO_PREEMPT_COUNT, main()
38 DEFINE(TASK_ACT_MM, offsetof(struct task_struct, active_mm)); main()
39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); main()
40 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); main()
41 DEFINE(TASK_COMM, offsetof(struct task_struct, comm)); main()
43 DEFINE(MM_CTXT, offsetof(struct mm_struct, context)); main()
44 DEFINE(MM_PGD, offsetof(struct mm_struct, pgd)); main()
46 DEFINE(MM_CTXT_ASID, offsetof(mm_context_t, asid)); main()
50 DEFINE(PT_status32, offsetof(struct pt_regs, status32)); main()
51 DEFINE(PT_event, offsetof(struct pt_regs, event)); main()
52 DEFINE(PT_sp, offsetof(struct pt_regs, sp)); main()
53 DEFINE(PT_r0, offsetof(struct pt_regs, r0)); main()
54 DEFINE(PT_r1, offsetof(struct pt_regs, r1)); main()
55 DEFINE(PT_r2, offsetof(struct pt_regs, r2)); main()
56 DEFINE(PT_r3, offsetof(struct pt_regs, r3)); main()
57 DEFINE(PT_r4, offsetof(struct pt_regs, r4)); main()
58 DEFINE(PT_r5, offsetof(struct pt_regs, r5)); main()
59 DEFINE(PT_r6, offsetof(struct pt_regs, r6)); main()
60 DEFINE(PT_r7, offsetof(struct pt_regs, r7)); main()
61 DEFINE(PT_ret, offsetof(struct pt_regs, ret)); main()
63 DEFINE(SZ_CALLEE_REGS, sizeof(struct callee_regs)); main()
64 DEFINE(SZ_PT_REGS, sizeof(struct pt_regs)); main()
65 DEFINE(PT_user_r25, offsetof(struct pt_regs, user_r25)); main()
/linux-4.4.14/arch/arm64/kernel/
H A Dasm-offsets.c34 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
36 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
37 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main()
38 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main()
39 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
40 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
42 DEFINE(THREAD_CPU_CONTEXT, offsetof(struct task_struct, thread.cpu_context)); main()
44 DEFINE(S_X0, offsetof(struct pt_regs, regs[0])); main()
45 DEFINE(S_X1, offsetof(struct pt_regs, regs[1])); main()
46 DEFINE(S_X2, offsetof(struct pt_regs, regs[2])); main()
47 DEFINE(S_X3, offsetof(struct pt_regs, regs[3])); main()
48 DEFINE(S_X4, offsetof(struct pt_regs, regs[4])); main()
49 DEFINE(S_X5, offsetof(struct pt_regs, regs[5])); main()
50 DEFINE(S_X6, offsetof(struct pt_regs, regs[6])); main()
51 DEFINE(S_X7, offsetof(struct pt_regs, regs[7])); main()
52 DEFINE(S_LR, offsetof(struct pt_regs, regs[30])); main()
53 DEFINE(S_SP, offsetof(struct pt_regs, sp)); main()
55 DEFINE(S_COMPAT_SP, offsetof(struct pt_regs, compat_sp)); main()
57 DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate)); main()
58 DEFINE(S_PC, offsetof(struct pt_regs, pc)); main()
59 DEFINE(S_ORIG_X0, offsetof(struct pt_regs, orig_x0)); main()
60 DEFINE(S_SYSCALLNO, offsetof(struct pt_regs, syscallno)); main()
61 DEFINE(S_FRAME_SIZE, sizeof(struct pt_regs)); main()
63 DEFINE(MM_CONTEXT_ID, offsetof(struct mm_struct, context.id.counter)); main()
65 DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm)); main()
66 DEFINE(VMA_VM_FLAGS, offsetof(struct vm_area_struct, vm_flags)); main()
68 DEFINE(VM_EXEC, VM_EXEC); main()
70 DEFINE(PAGE_SZ, PAGE_SIZE); main()
72 DEFINE(DMA_BIDIRECTIONAL, DMA_BIDIRECTIONAL); main()
73 DEFINE(DMA_TO_DEVICE, DMA_TO_DEVICE); main()
74 DEFINE(DMA_FROM_DEVICE, DMA_FROM_DEVICE); main()
76 DEFINE(CLOCK_REALTIME, CLOCK_REALTIME); main()
77 DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); main()
78 DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC); main()
79 DEFINE(CLOCK_REALTIME_COARSE, CLOCK_REALTIME_COARSE); main()
80 DEFINE(CLOCK_MONOTONIC_COARSE,CLOCK_MONOTONIC_COARSE); main()
81 DEFINE(CLOCK_COARSE_RES, LOW_RES_NSEC); main()
82 DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); main()
84 DEFINE(VDSO_CS_CYCLE_LAST, offsetof(struct vdso_data, cs_cycle_last)); main()
85 DEFINE(VDSO_XTIME_CLK_SEC, offsetof(struct vdso_data, xtime_clock_sec)); main()
86 DEFINE(VDSO_XTIME_CLK_NSEC, offsetof(struct vdso_data, xtime_clock_nsec)); main()
87 DEFINE(VDSO_XTIME_CRS_SEC, offsetof(struct vdso_data, xtime_coarse_sec)); main()
88 DEFINE(VDSO_XTIME_CRS_NSEC, offsetof(struct vdso_data, xtime_coarse_nsec)); main()
89 DEFINE(VDSO_WTM_CLK_SEC, offsetof(struct vdso_data, wtm_clock_sec)); main()
90 DEFINE(VDSO_WTM_CLK_NSEC, offsetof(struct vdso_data, wtm_clock_nsec)); main()
91 DEFINE(VDSO_TB_SEQ_COUNT, offsetof(struct vdso_data, tb_seq_count)); main()
92 DEFINE(VDSO_CS_MULT, offsetof(struct vdso_data, cs_mult)); main()
93 DEFINE(VDSO_CS_SHIFT, offsetof(struct vdso_data, cs_shift)); main()
94 DEFINE(VDSO_TZ_MINWEST, offsetof(struct vdso_data, tz_minuteswest)); main()
95 DEFINE(VDSO_TZ_DSTTIME, offsetof(struct vdso_data, tz_dsttime)); main()
96 DEFINE(VDSO_USE_SYSCALL, offsetof(struct vdso_data, use_syscall)); main()
98 DEFINE(TVAL_TV_SEC, offsetof(struct timeval, tv_sec)); main()
99 DEFINE(TVAL_TV_USEC, offsetof(struct timeval, tv_usec)); main()
100 DEFINE(TSPEC_TV_SEC, offsetof(struct timespec, tv_sec)); main()
101 DEFINE(TSPEC_TV_NSEC, offsetof(struct timespec, tv_nsec)); main()
103 DEFINE(TZ_MINWEST, offsetof(struct timezone, tz_minuteswest)); main()
104 DEFINE(TZ_DSTTIME, offsetof(struct timezone, tz_dsttime)); main()
107 DEFINE(VCPU_CONTEXT, offsetof(struct kvm_vcpu, arch.ctxt)); main()
108 DEFINE(CPU_GP_REGS, offsetof(struct kvm_cpu_context, gp_regs)); main()
109 DEFINE(CPU_USER_PT_REGS, offsetof(struct kvm_regs, regs)); main()
110 DEFINE(CPU_FP_REGS, offsetof(struct kvm_regs, fp_regs)); main()
111 DEFINE(CPU_SP_EL1, offsetof(struct kvm_regs, sp_el1)); main()
112 DEFINE(CPU_ELR_EL1, offsetof(struct kvm_regs, elr_el1)); main()
113 DEFINE(CPU_SPSR, offsetof(struct kvm_regs, spsr)); main()
114 DEFINE(CPU_SYSREGS, offsetof(struct kvm_cpu_context, sys_regs)); main()
115 DEFINE(VCPU_ESR_EL2, offsetof(struct kvm_vcpu, arch.fault.esr_el2)); main()
116 DEFINE(VCPU_FAR_EL2, offsetof(struct kvm_vcpu, arch.fault.far_el2)); main()
117 DEFINE(VCPU_HPFAR_EL2, offsetof(struct kvm_vcpu, arch.fault.hpfar_el2)); main()
118 DEFINE(VCPU_DEBUG_FLAGS, offsetof(struct kvm_vcpu, arch.debug_flags)); main()
119 DEFINE(VCPU_DEBUG_PTR, offsetof(struct kvm_vcpu, arch.debug_ptr)); main()
120 DEFINE(DEBUG_BCR, offsetof(struct kvm_guest_debug_arch, dbg_bcr)); main()
121 DEFINE(DEBUG_BVR, offsetof(struct kvm_guest_debug_arch, dbg_bvr)); main()
122 DEFINE(DEBUG_WCR, offsetof(struct kvm_guest_debug_arch, dbg_wcr)); main()
123 DEFINE(DEBUG_WVR, offsetof(struct kvm_guest_debug_arch, dbg_wvr)); main()
124 DEFINE(VCPU_HCR_EL2, offsetof(struct kvm_vcpu, arch.hcr_el2)); main()
125 DEFINE(VCPU_MDCR_EL2, offsetof(struct kvm_vcpu, arch.mdcr_el2)); main()
126 DEFINE(VCPU_IRQ_LINES, offsetof(struct kvm_vcpu, arch.irq_lines)); main()
127 DEFINE(VCPU_HOST_CONTEXT, offsetof(struct kvm_vcpu, arch.host_cpu_context)); main()
128 DEFINE(VCPU_HOST_DEBUG_STATE, offsetof(struct kvm_vcpu, arch.host_debug_state)); main()
129 DEFINE(VCPU_TIMER_CNTV_CTL, offsetof(struct kvm_vcpu, arch.timer_cpu.cntv_ctl)); main()
130 DEFINE(VCPU_TIMER_CNTV_CVAL, offsetof(struct kvm_vcpu, arch.timer_cpu.cntv_cval)); main()
131 DEFINE(KVM_TIMER_CNTVOFF, offsetof(struct kvm, arch.timer.cntvoff)); main()
132 DEFINE(KVM_TIMER_ENABLED, offsetof(struct kvm, arch.timer.enabled)); main()
133 DEFINE(VCPU_KVM, offsetof(struct kvm_vcpu, kvm)); main()
134 DEFINE(VCPU_VGIC_CPU, offsetof(struct kvm_vcpu, arch.vgic_cpu)); main()
135 DEFINE(VGIC_V2_CPU_HCR, offsetof(struct vgic_cpu, vgic_v2.vgic_hcr)); main()
136 DEFINE(VGIC_V2_CPU_VMCR, offsetof(struct vgic_cpu, vgic_v2.vgic_vmcr)); main()
137 DEFINE(VGIC_V2_CPU_MISR, offsetof(struct vgic_cpu, vgic_v2.vgic_misr)); main()
138 DEFINE(VGIC_V2_CPU_EISR, offsetof(struct vgic_cpu, vgic_v2.vgic_eisr)); main()
139 DEFINE(VGIC_V2_CPU_ELRSR, offsetof(struct vgic_cpu, vgic_v2.vgic_elrsr)); main()
140 DEFINE(VGIC_V2_CPU_APR, offsetof(struct vgic_cpu, vgic_v2.vgic_apr)); main()
141 DEFINE(VGIC_V2_CPU_LR, offsetof(struct vgic_cpu, vgic_v2.vgic_lr)); main()
142 DEFINE(VGIC_V3_CPU_SRE, offsetof(struct vgic_cpu, vgic_v3.vgic_sre)); main()
143 DEFINE(VGIC_V3_CPU_HCR, offsetof(struct vgic_cpu, vgic_v3.vgic_hcr)); main()
144 DEFINE(VGIC_V3_CPU_VMCR, offsetof(struct vgic_cpu, vgic_v3.vgic_vmcr)); main()
145 DEFINE(VGIC_V3_CPU_MISR, offsetof(struct vgic_cpu, vgic_v3.vgic_misr)); main()
146 DEFINE(VGIC_V3_CPU_EISR, offsetof(struct vgic_cpu, vgic_v3.vgic_eisr)); main()
147 DEFINE(VGIC_V3_CPU_ELRSR, offsetof(struct vgic_cpu, vgic_v3.vgic_elrsr)); main()
148 DEFINE(VGIC_V3_CPU_AP0R, offsetof(struct vgic_cpu, vgic_v3.vgic_ap0r)); main()
149 DEFINE(VGIC_V3_CPU_AP1R, offsetof(struct vgic_cpu, vgic_v3.vgic_ap1r)); main()
150 DEFINE(VGIC_V3_CPU_LR, offsetof(struct vgic_cpu, vgic_v3.vgic_lr)); main()
151 DEFINE(VGIC_CPU_NR_LR, offsetof(struct vgic_cpu, nr_lr)); main()
152 DEFINE(KVM_VTTBR, offsetof(struct kvm, arch.vttbr)); main()
153 DEFINE(KVM_VGIC_VCTRL, offsetof(struct kvm, arch.vgic.vctrl_base)); main()
156 DEFINE(CPU_SUSPEND_SZ, sizeof(struct cpu_suspend_ctx)); main()
157 DEFINE(CPU_CTX_SP, offsetof(struct cpu_suspend_ctx, sp)); main()
158 DEFINE(MPIDR_HASH_MASK, offsetof(struct mpidr_hash, mask)); main()
159 DEFINE(MPIDR_HASH_SHIFTS, offsetof(struct mpidr_hash, shift_aff)); main()
160 DEFINE(SLEEP_SAVE_SP_SZ, sizeof(struct sleep_save_sp)); main()
161 DEFINE(SLEEP_SAVE_SP_PHYS, offsetof(struct sleep_save_sp, save_ptr_stash_phys)); main()
162 DEFINE(SLEEP_SAVE_SP_VIRT, offsetof(struct sleep_save_sp, save_ptr_stash)); main()
/linux-4.4.14/arch/powerpc/kernel/
H A Dasm-offsets.c73 DEFINE(THREAD, offsetof(struct task_struct, thread)); main()
74 DEFINE(MM, offsetof(struct task_struct, mm)); main()
75 DEFINE(MMCONTEXTID, offsetof(struct mm_struct, context.id)); main()
77 DEFINE(AUDITCONTEXT, offsetof(struct task_struct, audit_context)); main()
78 DEFINE(SIGSEGV, SIGSEGV); main()
79 DEFINE(NMI_MASK, NMI_MASK); main()
80 DEFINE(THREAD_DSCR, offsetof(struct thread_struct, dscr)); main()
81 DEFINE(THREAD_DSCR_INHERIT, offsetof(struct thread_struct, dscr_inherit)); main()
82 DEFINE(TASKTHREADPPR, offsetof(struct task_struct, thread.ppr)); main()
84 DEFINE(THREAD_INFO, offsetof(struct task_struct, stack)); main()
85 DEFINE(THREAD_INFO_GAP, _ALIGN_UP(sizeof(struct thread_info), 16)); main()
86 DEFINE(KSP_LIMIT, offsetof(struct thread_struct, ksp_limit)); main()
89 DEFINE(KSP, offsetof(struct thread_struct, ksp)); main()
90 DEFINE(PT_REGS, offsetof(struct thread_struct, regs)); main()
92 DEFINE(THREAD_NORMSAVES, offsetof(struct thread_struct, normsave[0])); main()
94 DEFINE(THREAD_FPEXC_MODE, offsetof(struct thread_struct, fpexc_mode)); main()
95 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fp_state)); main()
96 DEFINE(THREAD_FPSAVEAREA, offsetof(struct thread_struct, fp_save_area)); main()
97 DEFINE(FPSTATE_FPSCR, offsetof(struct thread_fp_state, fpscr)); main()
99 DEFINE(THREAD_VRSTATE, offsetof(struct thread_struct, vr_state)); main()
100 DEFINE(THREAD_VRSAVEAREA, offsetof(struct thread_struct, vr_save_area)); main()
101 DEFINE(THREAD_VRSAVE, offsetof(struct thread_struct, vrsave)); main()
102 DEFINE(THREAD_USED_VR, offsetof(struct thread_struct, used_vr)); main()
103 DEFINE(VRSTATE_VSCR, offsetof(struct thread_vr_state, vscr)); main()
106 DEFINE(THREAD_USED_VSR, offsetof(struct thread_struct, used_vsr)); main()
109 DEFINE(KSP_VSID, offsetof(struct thread_struct, ksp_vsid)); main()
111 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); main()
113 DEFINE(THREAD_EVR0, offsetof(struct thread_struct, evr[0])); main()
114 DEFINE(THREAD_ACC, offsetof(struct thread_struct, acc)); main()
115 DEFINE(THREAD_SPEFSCR, offsetof(struct thread_struct, spefscr)); main()
116 DEFINE(THREAD_USED_SPE, offsetof(struct thread_struct, used_spe)); main()
120 DEFINE(THREAD_DBCR0, offsetof(struct thread_struct, debug.dbcr0)); main()
123 DEFINE(THREAD_KVM_SVCPU, offsetof(struct thread_struct, kvm_shadow_vcpu)); main()
126 DEFINE(THREAD_KVM_VCPU, offsetof(struct thread_struct, kvm_vcpu)); main()
130 DEFINE(THREAD_TAR, offsetof(struct thread_struct, tar)); main()
131 DEFINE(THREAD_BESCR, offsetof(struct thread_struct, bescr)); main()
132 DEFINE(THREAD_EBBHR, offsetof(struct thread_struct, ebbhr)); main()
133 DEFINE(THREAD_EBBRR, offsetof(struct thread_struct, ebbrr)); main()
134 DEFINE(THREAD_SIAR, offsetof(struct thread_struct, siar)); main()
135 DEFINE(THREAD_SDAR, offsetof(struct thread_struct, sdar)); main()
136 DEFINE(THREAD_SIER, offsetof(struct thread_struct, sier)); main()
137 DEFINE(THREAD_MMCR0, offsetof(struct thread_struct, mmcr0)); main()
138 DEFINE(THREAD_MMCR2, offsetof(struct thread_struct, mmcr2)); main()
141 DEFINE(PACATMSCRATCH, offsetof(struct paca_struct, tm_scratch)); main()
142 DEFINE(THREAD_TM_TFHAR, offsetof(struct thread_struct, tm_tfhar)); main()
143 DEFINE(THREAD_TM_TEXASR, offsetof(struct thread_struct, tm_texasr)); main()
144 DEFINE(THREAD_TM_TFIAR, offsetof(struct thread_struct, tm_tfiar)); main()
145 DEFINE(THREAD_TM_TAR, offsetof(struct thread_struct, tm_tar)); main()
146 DEFINE(THREAD_TM_PPR, offsetof(struct thread_struct, tm_ppr)); main()
147 DEFINE(THREAD_TM_DSCR, offsetof(struct thread_struct, tm_dscr)); main()
148 DEFINE(PT_CKPT_REGS, offsetof(struct thread_struct, ckpt_regs)); main()
149 DEFINE(THREAD_TRANSACT_VRSTATE, offsetof(struct thread_struct, main()
151 DEFINE(THREAD_TRANSACT_VRSAVE, offsetof(struct thread_struct, main()
153 DEFINE(THREAD_TRANSACT_FPSTATE, offsetof(struct thread_struct, main()
156 DEFINE(TM_FRAME_SIZE, STACK_FRAME_OVERHEAD + main()
160 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
161 DEFINE(TI_LOCAL_FLAGS, offsetof(struct thread_info, local_flags)); main()
162 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main()
163 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
164 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
167 DEFINE(DCACHEL1LINESIZE, offsetof(struct ppc64_caches, dline_size)); main()
168 DEFINE(DCACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_dline_size)); main()
169 DEFINE(DCACHEL1LINESPERPAGE, offsetof(struct ppc64_caches, dlines_per_page)); main()
170 DEFINE(ICACHEL1LINESIZE, offsetof(struct ppc64_caches, iline_size)); main()
171 DEFINE(ICACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_iline_size)); main()
172 DEFINE(ICACHEL1LINESPERPAGE, offsetof(struct ppc64_caches, ilines_per_page)); main()
174 DEFINE(PACA_SIZE, sizeof(struct paca_struct)); main()
175 DEFINE(PACA_LOCK_TOKEN, offsetof(struct paca_struct, lock_token)); main()
176 DEFINE(PACAPACAINDEX, offsetof(struct paca_struct, paca_index)); main()
177 DEFINE(PACAPROCSTART, offsetof(struct paca_struct, cpu_start)); main()
178 DEFINE(PACAKSAVE, offsetof(struct paca_struct, kstack)); main()
179 DEFINE(PACACURRENT, offsetof(struct paca_struct, __current)); main()
180 DEFINE(PACASAVEDMSR, offsetof(struct paca_struct, saved_msr)); main()
181 DEFINE(PACASTABRR, offsetof(struct paca_struct, stab_rr)); main()
182 DEFINE(PACAR1, offsetof(struct paca_struct, saved_r1)); main()
183 DEFINE(PACATOC, offsetof(struct paca_struct, kernel_toc)); main()
184 DEFINE(PACAKBASE, offsetof(struct paca_struct, kernelbase)); main()
185 DEFINE(PACAKMSR, offsetof(struct paca_struct, kernel_msr)); main()
186 DEFINE(PACASOFTIRQEN, offsetof(struct paca_struct, soft_enabled)); main()
187 DEFINE(PACAIRQHAPPENED, offsetof(struct paca_struct, irq_happened)); main()
188 DEFINE(PACACONTEXTID, offsetof(struct paca_struct, context.id)); main()
190 DEFINE(PACALOWSLICESPSIZE, offsetof(struct paca_struct, main()
192 DEFINE(PACAHIGHSLICEPSIZE, offsetof(struct paca_struct, main()
194 DEFINE(MMUPSIZEDEFSIZE, sizeof(struct mmu_psize_def)); main()
198 DEFINE(PACAPGD, offsetof(struct paca_struct, pgd)); main()
199 DEFINE(PACA_KERNELPGD, offsetof(struct paca_struct, kernel_pgd)); main()
200 DEFINE(PACA_EXGEN, offsetof(struct paca_struct, exgen)); main()
201 DEFINE(PACA_EXTLB, offsetof(struct paca_struct, extlb)); main()
202 DEFINE(PACA_EXMC, offsetof(struct paca_struct, exmc)); main()
203 DEFINE(PACA_EXCRIT, offsetof(struct paca_struct, excrit)); main()
204 DEFINE(PACA_EXDBG, offsetof(struct paca_struct, exdbg)); main()
205 DEFINE(PACA_MC_STACK, offsetof(struct paca_struct, mc_kstack)); main()
206 DEFINE(PACA_CRIT_STACK, offsetof(struct paca_struct, crit_kstack)); main()
207 DEFINE(PACA_DBG_STACK, offsetof(struct paca_struct, dbg_kstack)); main()
208 DEFINE(PACA_TCD_PTR, offsetof(struct paca_struct, tcd_ptr)); main()
210 DEFINE(TCD_ESEL_NEXT, main()
212 DEFINE(TCD_ESEL_MAX, main()
214 DEFINE(TCD_ESEL_FIRST, main()
219 DEFINE(PACASLBCACHE, offsetof(struct paca_struct, slb_cache)); main()
220 DEFINE(PACASLBCACHEPTR, offsetof(struct paca_struct, slb_cache_ptr)); main()
221 DEFINE(PACAVMALLOCSLLP, offsetof(struct paca_struct, vmalloc_sllp)); main()
223 DEFINE(MMUPSIZESLLP, offsetof(struct mmu_psize_def, sllp)); main()
225 DEFINE(PACACONTEXTSLLP, offsetof(struct paca_struct, context.sllp)); main()
227 DEFINE(PACA_EXGEN, offsetof(struct paca_struct, exgen)); main()
228 DEFINE(PACA_EXMC, offsetof(struct paca_struct, exmc)); main()
229 DEFINE(PACA_EXSLB, offsetof(struct paca_struct, exslb)); main()
230 DEFINE(PACALPPACAPTR, offsetof(struct paca_struct, lppaca_ptr)); main()
231 DEFINE(PACA_SLBSHADOWPTR, offsetof(struct paca_struct, slb_shadow_ptr)); main()
232 DEFINE(SLBSHADOW_STACKVSID, main()
234 DEFINE(SLBSHADOW_STACKESID, main()
236 DEFINE(SLBSHADOW_SAVEAREA, offsetof(struct slb_shadow, save_area)); main()
237 DEFINE(LPPACA_PMCINUSE, offsetof(struct lppaca, pmcregs_in_use)); main()
238 DEFINE(LPPACA_DTLIDX, offsetof(struct lppaca, dtl_idx)); main()
239 DEFINE(LPPACA_YIELDCOUNT, offsetof(struct lppaca, yield_count)); main()
240 DEFINE(PACA_DTL_RIDX, offsetof(struct paca_struct, dtl_ridx)); main()
242 DEFINE(PACAEMERGSP, offsetof(struct paca_struct, emergency_sp)); main()
244 DEFINE(PACAMCEMERGSP, offsetof(struct paca_struct, mc_emergency_sp)); main()
245 DEFINE(PACA_IN_MCE, offsetof(struct paca_struct, in_mce)); main()
247 DEFINE(PACAHWCPUID, offsetof(struct paca_struct, hw_cpu_id)); main()
248 DEFINE(PACAKEXECSTATE, offsetof(struct paca_struct, kexec_state)); main()
249 DEFINE(PACA_DSCR_DEFAULT, offsetof(struct paca_struct, dscr_default)); main()
250 DEFINE(PACA_STARTTIME, offsetof(struct paca_struct, starttime)); main()
251 DEFINE(PACA_STARTTIME_USER, offsetof(struct paca_struct, starttime_user)); main()
252 DEFINE(PACA_USER_TIME, offsetof(struct paca_struct, user_time)); main()
253 DEFINE(PACA_SYSTEM_TIME, offsetof(struct paca_struct, system_time)); main()
254 DEFINE(PACA_TRAP_SAVE, offsetof(struct paca_struct, trap_save)); main()
255 DEFINE(PACA_NAPSTATELOST, offsetof(struct paca_struct, nap_state_lost)); main()
256 DEFINE(PACA_SPRG_VDSO, offsetof(struct paca_struct, sprg_vdso)); main()
260 DEFINE(RTASBASE, offsetof(struct rtas_t, base)); main()
261 DEFINE(RTASENTRY, offsetof(struct rtas_t, entry)); main()
264 DEFINE(INT_FRAME_SIZE, STACK_INT_FRAME_SIZE); main()
265 DEFINE(SWITCH_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs)); main()
268 DEFINE(PROM_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs) + 16); main()
269 DEFINE(RTAS_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs) + 16); main()
272 DEFINE(HCALL_STAT_SIZE, sizeof(struct hcall_stats)); main()
273 DEFINE(HCALL_STAT_CALLS, offsetof(struct hcall_stats, num_calls)); main()
274 DEFINE(HCALL_STAT_TB, offsetof(struct hcall_stats, tb_total)); main()
275 DEFINE(HCALL_STAT_PURR, offsetof(struct hcall_stats, purr_total)); main()
277 DEFINE(GPR0, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[0])); main()
278 DEFINE(GPR1, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[1])); main()
279 DEFINE(GPR2, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[2])); main()
280 DEFINE(GPR3, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[3])); main()
281 DEFINE(GPR4, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[4])); main()
282 DEFINE(GPR5, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[5])); main()
283 DEFINE(GPR6, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[6])); main()
284 DEFINE(GPR7, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[7])); main()
285 DEFINE(GPR8, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[8])); main()
286 DEFINE(GPR9, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[9])); main()
287 DEFINE(GPR10, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[10])); main()
288 DEFINE(GPR11, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[11])); main()
289 DEFINE(GPR12, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[12])); main()
290 DEFINE(GPR13, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[13])); main()
292 DEFINE(GPR14, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[14])); main()
293 DEFINE(GPR15, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[15])); main()
294 DEFINE(GPR16, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[16])); main()
295 DEFINE(GPR17, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[17])); main()
296 DEFINE(GPR18, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[18])); main()
297 DEFINE(GPR19, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[19])); main()
298 DEFINE(GPR20, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[20])); main()
299 DEFINE(GPR21, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[21])); main()
300 DEFINE(GPR22, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[22])); main()
301 DEFINE(GPR23, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[23])); main()
302 DEFINE(GPR24, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[24])); main()
303 DEFINE(GPR25, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[25])); main()
304 DEFINE(GPR26, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[26])); main()
305 DEFINE(GPR27, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[27])); main()
306 DEFINE(GPR28, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[28])); main()
307 DEFINE(GPR29, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[29])); main()
308 DEFINE(GPR30, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[30])); main()
309 DEFINE(GPR31, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, gpr[31])); main()
315 DEFINE(_NIP, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, nip)); main()
316 DEFINE(_MSR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, msr)); main()
317 DEFINE(_CTR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, ctr)); main()
318 DEFINE(_LINK, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, link)); main()
319 DEFINE(_CCR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, ccr)); main()
320 DEFINE(_XER, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, xer)); main()
321 DEFINE(_DAR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, dar)); main()
322 DEFINE(_DSISR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, dsisr)); main()
323 DEFINE(ORIG_GPR3, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, orig_gpr3)); main()
324 DEFINE(RESULT, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, result)); main()
325 DEFINE(_TRAP, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, trap)); main()
327 DEFINE(_MQ, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, mq)); main()
334 DEFINE(_DEAR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, dar)); main()
335 DEFINE(_ESR, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, dsisr)); main()
337 DEFINE(SOFTE, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, softe)); main()
340 DEFINE(_SRR0, STACK_FRAME_OVERHEAD+sizeof(struct pt_regs)); main()
341 DEFINE(_SRR1, STACK_FRAME_OVERHEAD+sizeof(struct pt_regs)+8); main()
346 DEFINE(EXC_LVL_SIZE, STACK_EXC_LVL_FRAME_SIZE); main()
347 DEFINE(MAS0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas0)); main()
349 DEFINE(MMUCR, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas0)); main()
350 DEFINE(MAS1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas1)); main()
351 DEFINE(MAS2, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas2)); main()
352 DEFINE(MAS3, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas3)); main()
353 DEFINE(MAS6, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas6)); main()
354 DEFINE(MAS7, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, mas7)); main()
355 DEFINE(_SRR0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, srr0)); main()
356 DEFINE(_SRR1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, srr1)); main()
357 DEFINE(_CSRR0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, csrr0)); main()
358 DEFINE(_CSRR1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, csrr1)); main()
359 DEFINE(_DSRR0, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, dsrr0)); main()
360 DEFINE(_DSRR1, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, dsrr1)); main()
361 DEFINE(SAVED_KSP_LIMIT, STACK_INT_FRAME_SIZE+offsetof(struct exception_regs, saved_ksp_limit)); main()
364 DEFINE(CLONE_VM, CLONE_VM); main()
365 DEFINE(CLONE_UNTRACED, CLONE_UNTRACED); main()
368 DEFINE(MM_PGD, offsetof(struct mm_struct, pgd)); main()
372 DEFINE(CPU_SPEC_FEATURES, offsetof(struct cpu_spec, cpu_features)); main()
373 DEFINE(CPU_SPEC_SETUP, offsetof(struct cpu_spec, cpu_setup)); main()
374 DEFINE(CPU_SPEC_RESTORE, offsetof(struct cpu_spec, cpu_restore)); main()
376 DEFINE(pbe_address, offsetof(struct pbe, address)); main()
377 DEFINE(pbe_orig_address, offsetof(struct pbe, orig_address)); main()
378 DEFINE(pbe_next, offsetof(struct pbe, next)); main()
381 DEFINE(TASK_SIZE, TASK_SIZE); main()
382 DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); main()
386 DEFINE(CFG_TB_ORIG_STAMP, offsetof(struct vdso_data, tb_orig_stamp)); main()
387 DEFINE(CFG_TB_TICKS_PER_SEC, offsetof(struct vdso_data, tb_ticks_per_sec)); main()
388 DEFINE(CFG_TB_TO_XS, offsetof(struct vdso_data, tb_to_xs)); main()
389 DEFINE(CFG_STAMP_XSEC, offsetof(struct vdso_data, stamp_xsec)); main()
390 DEFINE(CFG_TB_UPDATE_COUNT, offsetof(struct vdso_data, tb_update_count)); main()
391 DEFINE(CFG_TZ_MINUTEWEST, offsetof(struct vdso_data, tz_minuteswest)); main()
392 DEFINE(CFG_TZ_DSTTIME, offsetof(struct vdso_data, tz_dsttime)); main()
393 DEFINE(CFG_SYSCALL_MAP32, offsetof(struct vdso_data, syscall_map_32)); main()
394 DEFINE(WTOM_CLOCK_SEC, offsetof(struct vdso_data, wtom_clock_sec)); main()
395 DEFINE(WTOM_CLOCK_NSEC, offsetof(struct vdso_data, wtom_clock_nsec)); main()
396 DEFINE(STAMP_XTIME, offsetof(struct vdso_data, stamp_xtime)); main()
397 DEFINE(STAMP_SEC_FRAC, offsetof(struct vdso_data, stamp_sec_fraction)); main()
398 DEFINE(CFG_ICACHE_BLOCKSZ, offsetof(struct vdso_data, icache_block_size)); main()
399 DEFINE(CFG_DCACHE_BLOCKSZ, offsetof(struct vdso_data, dcache_block_size)); main()
400 DEFINE(CFG_ICACHE_LOGBLOCKSZ, offsetof(struct vdso_data, icache_log_block_size)); main()
401 DEFINE(CFG_DCACHE_LOGBLOCKSZ, offsetof(struct vdso_data, dcache_log_block_size)); main()
403 DEFINE(CFG_SYSCALL_MAP64, offsetof(struct vdso_data, syscall_map_64)); main()
404 DEFINE(TVAL64_TV_SEC, offsetof(struct timeval, tv_sec)); main()
405 DEFINE(TVAL64_TV_USEC, offsetof(struct timeval, tv_usec)); main()
406 DEFINE(TVAL32_TV_SEC, offsetof(struct compat_timeval, tv_sec)); main()
407 DEFINE(TVAL32_TV_USEC, offsetof(struct compat_timeval, tv_usec)); main()
408 DEFINE(TSPC64_TV_SEC, offsetof(struct timespec, tv_sec)); main()
409 DEFINE(TSPC64_TV_NSEC, offsetof(struct timespec, tv_nsec)); main()
410 DEFINE(TSPC32_TV_SEC, offsetof(struct compat_timespec, tv_sec)); main()
411 DEFINE(TSPC32_TV_NSEC, offsetof(struct compat_timespec, tv_nsec)); main()
413 DEFINE(TVAL32_TV_SEC, offsetof(struct timeval, tv_sec)); main()
414 DEFINE(TVAL32_TV_USEC, offsetof(struct timeval, tv_usec)); main()
415 DEFINE(TSPC32_TV_SEC, offsetof(struct timespec, tv_sec)); main()
416 DEFINE(TSPC32_TV_NSEC, offsetof(struct timespec, tv_nsec)); main()
419 DEFINE(TZONE_TZ_MINWEST, offsetof(struct timezone, tz_minuteswest)); main()
420 DEFINE(TZONE_TZ_DSTTIME, offsetof(struct timezone, tz_dsttime)); main()
423 DEFINE(CLOCK_REALTIME, CLOCK_REALTIME); main()
424 DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); main()
425 DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); main()
426 DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC); main()
429 DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); main()
432 DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE); main()
433 DEFINE(PTE_SIZE, sizeof(pte_t)); main()
436 DEFINE(VCPU_HOST_STACK, offsetof(struct kvm_vcpu, arch.host_stack)); main()
437 DEFINE(VCPU_HOST_PID, offsetof(struct kvm_vcpu, arch.host_pid)); main()
438 DEFINE(VCPU_GUEST_PID, offsetof(struct kvm_vcpu, arch.pid)); main()
439 DEFINE(VCPU_GPRS, offsetof(struct kvm_vcpu, arch.gpr)); main()
440 DEFINE(VCPU_VRSAVE, offsetof(struct kvm_vcpu, arch.vrsave)); main()
441 DEFINE(VCPU_FPRS, offsetof(struct kvm_vcpu, arch.fp.fpr)); main()
443 DEFINE(VCPU_VRS, offsetof(struct kvm_vcpu, arch.vr.vr)); main()
445 DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer)); main()
446 DEFINE(VCPU_CTR, offsetof(struct kvm_vcpu, arch.ctr)); main()
447 DEFINE(VCPU_LR, offsetof(struct kvm_vcpu, arch.lr)); main()
449 DEFINE(VCPU_TAR, offsetof(struct kvm_vcpu, arch.tar)); main()
451 DEFINE(VCPU_CR, offsetof(struct kvm_vcpu, arch.cr)); main()
452 DEFINE(VCPU_PC, offsetof(struct kvm_vcpu, arch.pc)); main()
454 DEFINE(VCPU_MSR, offsetof(struct kvm_vcpu, arch.shregs.msr)); main()
455 DEFINE(VCPU_SRR0, offsetof(struct kvm_vcpu, arch.shregs.srr0)); main()
456 DEFINE(VCPU_SRR1, offsetof(struct kvm_vcpu, arch.shregs.srr1)); main()
457 DEFINE(VCPU_SPRG0, offsetof(struct kvm_vcpu, arch.shregs.sprg0)); main()
458 DEFINE(VCPU_SPRG1, offsetof(struct kvm_vcpu, arch.shregs.sprg1)); main()
459 DEFINE(VCPU_SPRG2, offsetof(struct kvm_vcpu, arch.shregs.sprg2)); main()
460 DEFINE(VCPU_SPRG3, offsetof(struct kvm_vcpu, arch.shregs.sprg3)); main()
463 DEFINE(VCPU_TB_RMENTRY, offsetof(struct kvm_vcpu, arch.rm_entry)); main()
464 DEFINE(VCPU_TB_RMINTR, offsetof(struct kvm_vcpu, arch.rm_intr)); main()
465 DEFINE(VCPU_TB_RMEXIT, offsetof(struct kvm_vcpu, arch.rm_exit)); main()
466 DEFINE(VCPU_TB_GUEST, offsetof(struct kvm_vcpu, arch.guest_time)); main()
467 DEFINE(VCPU_TB_CEDE, offsetof(struct kvm_vcpu, arch.cede_time)); main()
468 DEFINE(VCPU_CUR_ACTIVITY, offsetof(struct kvm_vcpu, arch.cur_activity)); main()
469 DEFINE(VCPU_ACTIVITY_START, offsetof(struct kvm_vcpu, arch.cur_tb_start)); main()
470 DEFINE(TAS_SEQCOUNT, offsetof(struct kvmhv_tb_accumulator, seqcount)); main()
471 DEFINE(TAS_TOTAL, offsetof(struct kvmhv_tb_accumulator, tb_total)); main()
472 DEFINE(TAS_MIN, offsetof(struct kvmhv_tb_accumulator, tb_min)); main()
473 DEFINE(TAS_MAX, offsetof(struct kvmhv_tb_accumulator, tb_max)); main()
475 DEFINE(VCPU_SHARED_SPRG3, offsetof(struct kvm_vcpu_arch_shared, sprg3)); main()
476 DEFINE(VCPU_SHARED_SPRG4, offsetof(struct kvm_vcpu_arch_shared, sprg4)); main()
477 DEFINE(VCPU_SHARED_SPRG5, offsetof(struct kvm_vcpu_arch_shared, sprg5)); main()
478 DEFINE(VCPU_SHARED_SPRG6, offsetof(struct kvm_vcpu_arch_shared, sprg6)); main()
479 DEFINE(VCPU_SHARED_SPRG7, offsetof(struct kvm_vcpu_arch_shared, sprg7)); main()
480 DEFINE(VCPU_SHADOW_PID, offsetof(struct kvm_vcpu, arch.shadow_pid)); main()
481 DEFINE(VCPU_SHADOW_PID1, offsetof(struct kvm_vcpu, arch.shadow_pid1)); main()
482 DEFINE(VCPU_SHARED, offsetof(struct kvm_vcpu, arch.shared)); main()
483 DEFINE(VCPU_SHARED_MSR, offsetof(struct kvm_vcpu_arch_shared, msr)); main()
484 DEFINE(VCPU_SHADOW_MSR, offsetof(struct kvm_vcpu, arch.shadow_msr)); main()
486 DEFINE(VCPU_SHAREDBE, offsetof(struct kvm_vcpu, arch.shared_big_endian)); main()
489 DEFINE(VCPU_SHARED_MAS0, offsetof(struct kvm_vcpu_arch_shared, mas0)); main()
490 DEFINE(VCPU_SHARED_MAS1, offsetof(struct kvm_vcpu_arch_shared, mas1)); main()
491 DEFINE(VCPU_SHARED_MAS2, offsetof(struct kvm_vcpu_arch_shared, mas2)); main()
492 DEFINE(VCPU_SHARED_MAS7_3, offsetof(struct kvm_vcpu_arch_shared, mas7_3)); main()
493 DEFINE(VCPU_SHARED_MAS4, offsetof(struct kvm_vcpu_arch_shared, mas4)); main()
494 DEFINE(VCPU_SHARED_MAS6, offsetof(struct kvm_vcpu_arch_shared, mas6)); main()
496 DEFINE(VCPU_KVM, offsetof(struct kvm_vcpu, kvm)); main()
497 DEFINE(KVM_LPID, offsetof(struct kvm, arch.lpid)); main()
501 DEFINE(KVM_SDR1, offsetof(struct kvm, arch.sdr1)); main()
502 DEFINE(KVM_HOST_LPID, offsetof(struct kvm, arch.host_lpid)); main()
503 DEFINE(KVM_HOST_LPCR, offsetof(struct kvm, arch.host_lpcr)); main()
504 DEFINE(KVM_HOST_SDR1, offsetof(struct kvm, arch.host_sdr1)); main()
505 DEFINE(KVM_NEED_FLUSH, offsetof(struct kvm, arch.need_tlb_flush.bits)); main()
506 DEFINE(KVM_ENABLED_HCALLS, offsetof(struct kvm, arch.enabled_hcalls)); main()
507 DEFINE(KVM_LPCR, offsetof(struct kvm, arch.lpcr)); main()
508 DEFINE(KVM_VRMA_SLB_V, offsetof(struct kvm, arch.vrma_slb_v)); main()
509 DEFINE(VCPU_DSISR, offsetof(struct kvm_vcpu, arch.shregs.dsisr)); main()
510 DEFINE(VCPU_DAR, offsetof(struct kvm_vcpu, arch.shregs.dar)); main()
511 DEFINE(VCPU_VPA, offsetof(struct kvm_vcpu, arch.vpa.pinned_addr)); main()
512 DEFINE(VCPU_VPA_DIRTY, offsetof(struct kvm_vcpu, arch.vpa.dirty)); main()
513 DEFINE(VCPU_HEIR, offsetof(struct kvm_vcpu, arch.emul_inst)); main()
514 DEFINE(VCPU_CPU, offsetof(struct kvm_vcpu, cpu)); main()
515 DEFINE(VCPU_THREAD_CPU, offsetof(struct kvm_vcpu, arch.thread_cpu)); main()
518 DEFINE(VCPU_VCPUID, offsetof(struct kvm_vcpu, vcpu_id)); main()
519 DEFINE(VCPU_PURR, offsetof(struct kvm_vcpu, arch.purr)); main()
520 DEFINE(VCPU_SPURR, offsetof(struct kvm_vcpu, arch.spurr)); main()
521 DEFINE(VCPU_IC, offsetof(struct kvm_vcpu, arch.ic)); main()
522 DEFINE(VCPU_VTB, offsetof(struct kvm_vcpu, arch.vtb)); main()
523 DEFINE(VCPU_DSCR, offsetof(struct kvm_vcpu, arch.dscr)); main()
524 DEFINE(VCPU_AMR, offsetof(struct kvm_vcpu, arch.amr)); main()
525 DEFINE(VCPU_UAMOR, offsetof(struct kvm_vcpu, arch.uamor)); main()
526 DEFINE(VCPU_IAMR, offsetof(struct kvm_vcpu, arch.iamr)); main()
527 DEFINE(VCPU_CTRL, offsetof(struct kvm_vcpu, arch.ctrl)); main()
528 DEFINE(VCPU_DABR, offsetof(struct kvm_vcpu, arch.dabr)); main()
529 DEFINE(VCPU_DABRX, offsetof(struct kvm_vcpu, arch.dabrx)); main()
530 DEFINE(VCPU_DAWR, offsetof(struct kvm_vcpu, arch.dawr)); main()
531 DEFINE(VCPU_DAWRX, offsetof(struct kvm_vcpu, arch.dawrx)); main()
532 DEFINE(VCPU_CIABR, offsetof(struct kvm_vcpu, arch.ciabr)); main()
533 DEFINE(VCPU_HFLAGS, offsetof(struct kvm_vcpu, arch.hflags)); main()
534 DEFINE(VCPU_DEC, offsetof(struct kvm_vcpu, arch.dec)); main()
535 DEFINE(VCPU_DEC_EXPIRES, offsetof(struct kvm_vcpu, arch.dec_expires)); main()
536 DEFINE(VCPU_PENDING_EXC, offsetof(struct kvm_vcpu, arch.pending_exceptions)); main()
537 DEFINE(VCPU_CEDED, offsetof(struct kvm_vcpu, arch.ceded)); main()
538 DEFINE(VCPU_PRODDED, offsetof(struct kvm_vcpu, arch.prodded)); main()
539 DEFINE(VCPU_MMCR, offsetof(struct kvm_vcpu, arch.mmcr)); main()
540 DEFINE(VCPU_PMC, offsetof(struct kvm_vcpu, arch.pmc)); main()
541 DEFINE(VCPU_SPMC, offsetof(struct kvm_vcpu, arch.spmc)); main()
542 DEFINE(VCPU_SIAR, offsetof(struct kvm_vcpu, arch.siar)); main()
543 DEFINE(VCPU_SDAR, offsetof(struct kvm_vcpu, arch.sdar)); main()
544 DEFINE(VCPU_SIER, offsetof(struct kvm_vcpu, arch.sier)); main()
545 DEFINE(VCPU_SLB, offsetof(struct kvm_vcpu, arch.slb)); main()
546 DEFINE(VCPU_SLB_MAX, offsetof(struct kvm_vcpu, arch.slb_max)); main()
547 DEFINE(VCPU_SLB_NR, offsetof(struct kvm_vcpu, arch.slb_nr)); main()
548 DEFINE(VCPU_FAULT_DSISR, offsetof(struct kvm_vcpu, arch.fault_dsisr)); main()
549 DEFINE(VCPU_FAULT_DAR, offsetof(struct kvm_vcpu, arch.fault_dar)); main()
550 DEFINE(VCPU_INTR_MSR, offsetof(struct kvm_vcpu, arch.intr_msr)); main()
551 DEFINE(VCPU_LAST_INST, offsetof(struct kvm_vcpu, arch.last_inst)); main()
552 DEFINE(VCPU_TRAP, offsetof(struct kvm_vcpu, arch.trap)); main()
553 DEFINE(VCPU_CFAR, offsetof(struct kvm_vcpu, arch.cfar)); main()
554 DEFINE(VCPU_PPR, offsetof(struct kvm_vcpu, arch.ppr)); main()
555 DEFINE(VCPU_FSCR, offsetof(struct kvm_vcpu, arch.fscr)); main()
556 DEFINE(VCPU_SHADOW_FSCR, offsetof(struct kvm_vcpu, arch.shadow_fscr)); main()
557 DEFINE(VCPU_PSPB, offsetof(struct kvm_vcpu, arch.pspb)); main()
558 DEFINE(VCPU_EBBHR, offsetof(struct kvm_vcpu, arch.ebbhr)); main()
559 DEFINE(VCPU_EBBRR, offsetof(struct kvm_vcpu, arch.ebbrr)); main()
560 DEFINE(VCPU_BESCR, offsetof(struct kvm_vcpu, arch.bescr)); main()
561 DEFINE(VCPU_CSIGR, offsetof(struct kvm_vcpu, arch.csigr)); main()
562 DEFINE(VCPU_TACR, offsetof(struct kvm_vcpu, arch.tacr)); main()
563 DEFINE(VCPU_TCSCR, offsetof(struct kvm_vcpu, arch.tcscr)); main()
564 DEFINE(VCPU_ACOP, offsetof(struct kvm_vcpu, arch.acop)); main()
565 DEFINE(VCPU_WORT, offsetof(struct kvm_vcpu, arch.wort)); main()
566 DEFINE(VCPU_SHADOW_SRR1, offsetof(struct kvm_vcpu, arch.shadow_srr1)); main()
567 DEFINE(VCORE_ENTRY_EXIT, offsetof(struct kvmppc_vcore, entry_exit_map)); main()
568 DEFINE(VCORE_IN_GUEST, offsetof(struct kvmppc_vcore, in_guest)); main()
569 DEFINE(VCORE_NAPPING_THREADS, offsetof(struct kvmppc_vcore, napping_threads)); main()
570 DEFINE(VCORE_KVM, offsetof(struct kvmppc_vcore, kvm)); main()
571 DEFINE(VCORE_TB_OFFSET, offsetof(struct kvmppc_vcore, tb_offset)); main()
572 DEFINE(VCORE_LPCR, offsetof(struct kvmppc_vcore, lpcr)); main()
573 DEFINE(VCORE_PCR, offsetof(struct kvmppc_vcore, pcr)); main()
574 DEFINE(VCORE_DPDES, offsetof(struct kvmppc_vcore, dpdes)); main()
575 DEFINE(VCPU_SLB_E, offsetof(struct kvmppc_slb, orige)); main()
576 DEFINE(VCPU_SLB_V, offsetof(struct kvmppc_slb, origv)); main()
577 DEFINE(VCPU_SLB_SIZE, sizeof(struct kvmppc_slb)); main()
579 DEFINE(VCPU_TFHAR, offsetof(struct kvm_vcpu, arch.tfhar)); main()
580 DEFINE(VCPU_TFIAR, offsetof(struct kvm_vcpu, arch.tfiar)); main()
581 DEFINE(VCPU_TEXASR, offsetof(struct kvm_vcpu, arch.texasr)); main()
582 DEFINE(VCPU_GPR_TM, offsetof(struct kvm_vcpu, arch.gpr_tm)); main()
583 DEFINE(VCPU_FPRS_TM, offsetof(struct kvm_vcpu, arch.fp_tm.fpr)); main()
584 DEFINE(VCPU_VRS_TM, offsetof(struct kvm_vcpu, arch.vr_tm.vr)); main()
585 DEFINE(VCPU_VRSAVE_TM, offsetof(struct kvm_vcpu, arch.vrsave_tm)); main()
586 DEFINE(VCPU_CR_TM, offsetof(struct kvm_vcpu, arch.cr_tm)); main()
587 DEFINE(VCPU_LR_TM, offsetof(struct kvm_vcpu, arch.lr_tm)); main()
588 DEFINE(VCPU_CTR_TM, offsetof(struct kvm_vcpu, arch.ctr_tm)); main()
589 DEFINE(VCPU_AMR_TM, offsetof(struct kvm_vcpu, arch.amr_tm)); main()
590 DEFINE(VCPU_PPR_TM, offsetof(struct kvm_vcpu, arch.ppr_tm)); main()
591 DEFINE(VCPU_DSCR_TM, offsetof(struct kvm_vcpu, arch.dscr_tm)); main()
592 DEFINE(VCPU_TAR_TM, offsetof(struct kvm_vcpu, arch.tar_tm)); main()
597 DEFINE(PACA_SVCPU, offsetof(struct paca_struct, shadow_vcpu)); main()
598 # define SVCPU_FIELD(x, f) DEFINE(x, offsetof(struct paca_struct, shadow_vcpu.f)) main()
602 # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct paca_struct, kvm_hstate.f)) main()
604 # define SVCPU_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, f)) main()
605 # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, hstate.f)) main()
679 DEFINE(IPI_PRIORITY, IPI_PRIORITY); main()
680 DEFINE(KVM_SPLIT_RPR, offsetof(struct kvm_split_mode, rpr)); main()
681 DEFINE(KVM_SPLIT_PMMAR, offsetof(struct kvm_split_mode, pmmar)); main()
682 DEFINE(KVM_SPLIT_LDBAR, offsetof(struct kvm_split_mode, ldbar)); main()
683 DEFINE(KVM_SPLIT_SIZE, offsetof(struct kvm_split_mode, subcore_size)); main()
684 DEFINE(KVM_SPLIT_DO_NAP, offsetof(struct kvm_split_mode, do_nap)); main()
685 DEFINE(KVM_SPLIT_NAPPED, offsetof(struct kvm_split_mode, napped)); main()
695 DEFINE(VCPU_CR, offsetof(struct kvm_vcpu, arch.cr)); main()
696 DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer)); main()
697 DEFINE(VCPU_LR, offsetof(struct kvm_vcpu, arch.lr)); main()
698 DEFINE(VCPU_CTR, offsetof(struct kvm_vcpu, arch.ctr)); main()
699 DEFINE(VCPU_PC, offsetof(struct kvm_vcpu, arch.pc)); main()
700 DEFINE(VCPU_SPRG9, offsetof(struct kvm_vcpu, arch.sprg9)); main()
701 DEFINE(VCPU_LAST_INST, offsetof(struct kvm_vcpu, arch.last_inst)); main()
702 DEFINE(VCPU_FAULT_DEAR, offsetof(struct kvm_vcpu, arch.fault_dear)); main()
703 DEFINE(VCPU_FAULT_ESR, offsetof(struct kvm_vcpu, arch.fault_esr)); main()
704 DEFINE(VCPU_CRIT_SAVE, offsetof(struct kvm_vcpu, arch.crit_save)); main()
709 DEFINE(KVM_MAGIC_SCRATCH1, offsetof(struct kvm_vcpu_arch_shared, main()
711 DEFINE(KVM_MAGIC_SCRATCH2, offsetof(struct kvm_vcpu_arch_shared, main()
713 DEFINE(KVM_MAGIC_SCRATCH3, offsetof(struct kvm_vcpu_arch_shared, main()
715 DEFINE(KVM_MAGIC_INT, offsetof(struct kvm_vcpu_arch_shared, main()
717 DEFINE(KVM_MAGIC_MSR, offsetof(struct kvm_vcpu_arch_shared, msr)); main()
718 DEFINE(KVM_MAGIC_CRITICAL, offsetof(struct kvm_vcpu_arch_shared, main()
720 DEFINE(KVM_MAGIC_SR, offsetof(struct kvm_vcpu_arch_shared, sr)); main()
724 DEFINE(PGD_T_LOG2, PGD_T_LOG2); main()
725 DEFINE(PTE_T_LOG2, PTE_T_LOG2); main()
728 DEFINE(TLBCAM_SIZE, sizeof(struct tlbcam)); main()
729 DEFINE(TLBCAM_MAS0, offsetof(struct tlbcam, MAS0)); main()
730 DEFINE(TLBCAM_MAS1, offsetof(struct tlbcam, MAS1)); main()
731 DEFINE(TLBCAM_MAS2, offsetof(struct tlbcam, MAS2)); main()
732 DEFINE(TLBCAM_MAS3, offsetof(struct tlbcam, MAS3)); main()
733 DEFINE(TLBCAM_MAS7, offsetof(struct tlbcam, MAS7)); main()
737 DEFINE(VCPU_EVR, offsetof(struct kvm_vcpu, arch.evr[0])); main()
738 DEFINE(VCPU_ACC, offsetof(struct kvm_vcpu, arch.acc)); main()
739 DEFINE(VCPU_SPEFSCR, offsetof(struct kvm_vcpu, arch.spefscr)); main()
740 DEFINE(VCPU_HOST_SPEFSCR, offsetof(struct kvm_vcpu, arch.host_spefscr)); main()
744 DEFINE(VCPU_HOST_MAS4, offsetof(struct kvm_vcpu, arch.host_mas4)); main()
745 DEFINE(VCPU_HOST_MAS6, offsetof(struct kvm_vcpu, arch.host_mas6)); main()
746 DEFINE(VCPU_EPLC, offsetof(struct kvm_vcpu, arch.eplc)); main()
750 DEFINE(VCPU_TIMING_EXIT_TBU, offsetof(struct kvm_vcpu, main()
752 DEFINE(VCPU_TIMING_EXIT_TBL, offsetof(struct kvm_vcpu, main()
754 DEFINE(VCPU_TIMING_LAST_ENTER_TBU, offsetof(struct kvm_vcpu, main()
756 DEFINE(VCPU_TIMING_LAST_ENTER_TBL, offsetof(struct kvm_vcpu, main()
761 DEFINE(PACA_CORE_IDLE_STATE_PTR, main()
763 DEFINE(PACA_THREAD_IDLE_STATE, main()
765 DEFINE(PACA_THREAD_MASK, main()
767 DEFINE(PACA_SUBCORE_SIBLING_MASK, main()
771 DEFINE(PPC_DBELL_SERVER, PPC_DBELL_SERVER); main()
/linux-4.4.14/arch/blackfin/kernel/
H A Dasm-offsets.c22 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
23 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
24 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
25 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); main()
26 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
27 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); main()
28 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
29 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
30 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); main()
33 DEFINE(CPUSTAT_SOFTIRQ_PENDING, main()
37 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); main()
38 DEFINE(THREAD_USP, offsetof(struct thread_struct, usp)); main()
39 DEFINE(THREAD_SR, offsetof(struct thread_struct, seqstat)); main()
40 DEFINE(PT_SR, offsetof(struct thread_struct, seqstat)); main()
41 DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0)); main()
42 DEFINE(THREAD_PC, offsetof(struct thread_struct, pc)); main()
43 DEFINE(KERNEL_STACK_SIZE, THREAD_SIZE); main()
52 DEFINE(PT_ORIG_R0, offsetof(struct pt_regs, orig_r0)); main()
53 DEFINE(PT_ORIG_P0, offsetof(struct pt_regs, orig_p0)); main()
54 DEFINE(PT_ORIG_PC, offsetof(struct pt_regs, orig_pc)); main()
55 DEFINE(PT_R0, offsetof(struct pt_regs, r0)); main()
56 DEFINE(PT_R1, offsetof(struct pt_regs, r1)); main()
57 DEFINE(PT_R2, offsetof(struct pt_regs, r2)); main()
58 DEFINE(PT_R3, offsetof(struct pt_regs, r3)); main()
59 DEFINE(PT_R4, offsetof(struct pt_regs, r4)); main()
60 DEFINE(PT_R5, offsetof(struct pt_regs, r5)); main()
61 DEFINE(PT_R6, offsetof(struct pt_regs, r6)); main()
62 DEFINE(PT_R7, offsetof(struct pt_regs, r7)); main()
64 DEFINE(PT_P0, offsetof(struct pt_regs, p0)); main()
65 DEFINE(PT_P1, offsetof(struct pt_regs, p1)); main()
66 DEFINE(PT_P2, offsetof(struct pt_regs, p2)); main()
67 DEFINE(PT_P3, offsetof(struct pt_regs, p3)); main()
68 DEFINE(PT_P4, offsetof(struct pt_regs, p4)); main()
69 DEFINE(PT_P5, offsetof(struct pt_regs, p5)); main()
71 DEFINE(PT_FP, offsetof(struct pt_regs, fp)); main()
72 DEFINE(PT_USP, offsetof(struct pt_regs, usp)); main()
73 DEFINE(PT_I0, offsetof(struct pt_regs, i0)); main()
74 DEFINE(PT_I1, offsetof(struct pt_regs, i1)); main()
75 DEFINE(PT_I2, offsetof(struct pt_regs, i2)); main()
76 DEFINE(PT_I3, offsetof(struct pt_regs, i3)); main()
77 DEFINE(PT_M0, offsetof(struct pt_regs, m0)); main()
78 DEFINE(PT_M1, offsetof(struct pt_regs, m1)); main()
79 DEFINE(PT_M2, offsetof(struct pt_regs, m2)); main()
80 DEFINE(PT_M3, offsetof(struct pt_regs, m3)); main()
81 DEFINE(PT_L0, offsetof(struct pt_regs, l0)); main()
82 DEFINE(PT_L1, offsetof(struct pt_regs, l1)); main()
83 DEFINE(PT_L2, offsetof(struct pt_regs, l2)); main()
84 DEFINE(PT_L3, offsetof(struct pt_regs, l3)); main()
85 DEFINE(PT_B0, offsetof(struct pt_regs, b0)); main()
86 DEFINE(PT_B1, offsetof(struct pt_regs, b1)); main()
87 DEFINE(PT_B2, offsetof(struct pt_regs, b2)); main()
88 DEFINE(PT_B3, offsetof(struct pt_regs, b3)); main()
89 DEFINE(PT_A0X, offsetof(struct pt_regs, a0x)); main()
90 DEFINE(PT_A0W, offsetof(struct pt_regs, a0w)); main()
91 DEFINE(PT_A1X, offsetof(struct pt_regs, a1x)); main()
92 DEFINE(PT_A1W, offsetof(struct pt_regs, a1w)); main()
93 DEFINE(PT_LC0, offsetof(struct pt_regs, lc0)); main()
94 DEFINE(PT_LC1, offsetof(struct pt_regs, lc1)); main()
95 DEFINE(PT_LT0, offsetof(struct pt_regs, lt0)); main()
96 DEFINE(PT_LT1, offsetof(struct pt_regs, lt1)); main()
97 DEFINE(PT_LB0, offsetof(struct pt_regs, lb0)); main()
98 DEFINE(PT_LB1, offsetof(struct pt_regs, lb1)); main()
99 DEFINE(PT_ASTAT, offsetof(struct pt_regs, astat)); main()
100 DEFINE(PT_RESERVED, offsetof(struct pt_regs, reserved)); main()
101 DEFINE(PT_RETS, offsetof(struct pt_regs, rets)); main()
102 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); main()
103 DEFINE(PT_RETX, offsetof(struct pt_regs, retx)); main()
104 DEFINE(PT_RETN, offsetof(struct pt_regs, retn)); main()
105 DEFINE(PT_RETE, offsetof(struct pt_regs, rete)); main()
106 DEFINE(PT_SEQSTAT, offsetof(struct pt_regs, seqstat)); main()
107 DEFINE(PT_SYSCFG, offsetof(struct pt_regs, syscfg)); main()
108 DEFINE(PT_IPEND, offsetof(struct pt_regs, ipend)); main()
109 DEFINE(SIZEOF_PTREGS, sizeof(struct pt_regs)); main()
110 DEFINE(PT_TEXT_ADDR, sizeof(struct pt_regs)); /* Needed by gdb */ main()
111 DEFINE(PT_TEXT_END_ADDR, 4 + sizeof(struct pt_regs));/* Needed by gdb */ main()
112 DEFINE(PT_DATA_ADDR, 8 + sizeof(struct pt_regs)); /* Needed by gdb */ main()
113 DEFINE(PT_FDPIC_EXEC, 12 + sizeof(struct pt_regs)); /* Needed by gdb */ main()
114 DEFINE(PT_FDPIC_INTERP, 16 + sizeof(struct pt_regs));/* Needed by gdb */ main()
117 DEFINE(SIGSEGV, SIGSEGV); main()
118 DEFINE(SIGTRAP, SIGTRAP); main()
121 DEFINE(PDA_SYSCFG, offsetof(struct blackfin_pda, syscfg)); main()
123 DEFINE(PDA_IRQFLAGS, offsetof(struct blackfin_pda, imask)); main()
125 DEFINE(PDA_IPDT, offsetof(struct blackfin_pda, ipdt)); main()
126 DEFINE(PDA_IPDT_SWAPCOUNT, offsetof(struct blackfin_pda, ipdt_swapcount)); main()
127 DEFINE(PDA_DPDT, offsetof(struct blackfin_pda, dpdt)); main()
128 DEFINE(PDA_DPDT_SWAPCOUNT, offsetof(struct blackfin_pda, dpdt_swapcount)); main()
129 DEFINE(PDA_EXIPTR, offsetof(struct blackfin_pda, ex_iptr)); main()
130 DEFINE(PDA_EXOPTR, offsetof(struct blackfin_pda, ex_optr)); main()
131 DEFINE(PDA_EXBUF, offsetof(struct blackfin_pda, ex_buf)); main()
132 DEFINE(PDA_EXIMASK, offsetof(struct blackfin_pda, ex_imask)); main()
133 DEFINE(PDA_EXSTACK, offsetof(struct blackfin_pda, ex_stack)); main()
134 DEFINE(PDA_EXIPEND, offsetof(struct blackfin_pda, ex_ipend)); main()
136 DEFINE(PDA_LFRETX, offsetof(struct blackfin_pda, last_cplb_fault_retx)); main()
138 DEFINE(PDA_DCPLB, offsetof(struct blackfin_pda, dcplb_fault_addr)); main()
139 DEFINE(PDA_ICPLB, offsetof(struct blackfin_pda, icplb_fault_addr)); main()
140 DEFINE(PDA_RETX, offsetof(struct blackfin_pda, retx)); main()
141 DEFINE(PDA_SEQSTAT, offsetof(struct blackfin_pda, seqstat)); main()
143 DEFINE(PDA_DF_DCPLB, offsetof(struct blackfin_pda, dcplb_doublefault_addr)); main()
144 DEFINE(PDA_DF_ICPLB, offsetof(struct blackfin_pda, icplb_doublefault_addr)); main()
145 DEFINE(PDA_DF_SEQSTAT, offsetof(struct blackfin_pda, seqstat_doublefault)); main()
146 DEFINE(PDA_DF_RETX, offsetof(struct blackfin_pda, retx_doublefault)); main()
150 DEFINE(PDA_INIT_RETX, offsetof(struct blackfin_initial_pda, retx)); main()
152 DEFINE(PDA_INIT_DF_DCPLB, offsetof(struct blackfin_initial_pda, dcplb_doublefault_addr)); main()
153 DEFINE(PDA_INIT_DF_ICPLB, offsetof(struct blackfin_initial_pda, icplb_doublefault_addr)); main()
154 DEFINE(PDA_INIT_DF_SEQSTAT, offsetof(struct blackfin_initial_pda, seqstat_doublefault)); main()
155 DEFINE(PDA_INIT_DF_RETX, offsetof(struct blackfin_initial_pda, retx_doublefault)); main()
160 DEFINE(SIZEOF_CORELOCK, sizeof(struct corelock_slot)); main()
/linux-4.4.14/arch/arm/kernel/
H A Dasm-offsets.c61 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
63 DEFINE(TSK_STACK_CANARY, offsetof(struct task_struct, stack_canary)); main()
66 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
67 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main()
68 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main()
69 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
70 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
71 DEFINE(TI_CPU_DOMAIN, offsetof(struct thread_info, cpu_domain)); main()
72 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); main()
73 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); main()
74 DEFINE(TI_TP_VALUE, offsetof(struct thread_info, tp_value)); main()
75 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); main()
77 DEFINE(TI_VFPSTATE, offsetof(struct thread_info, vfpstate)); main()
79 DEFINE(VFP_CPU, offsetof(union vfp_state, hard.cpu)); main()
83 DEFINE(TI_THUMBEE_STATE, offsetof(struct thread_info, thumbee_state)); main()
86 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); main()
89 DEFINE(TI_CRUNCH_STATE, offsetof(struct thread_info, crunchstate)); main()
92 DEFINE(S_R0, offsetof(struct pt_regs, ARM_r0)); main()
93 DEFINE(S_R1, offsetof(struct pt_regs, ARM_r1)); main()
94 DEFINE(S_R2, offsetof(struct pt_regs, ARM_r2)); main()
95 DEFINE(S_R3, offsetof(struct pt_regs, ARM_r3)); main()
96 DEFINE(S_R4, offsetof(struct pt_regs, ARM_r4)); main()
97 DEFINE(S_R5, offsetof(struct pt_regs, ARM_r5)); main()
98 DEFINE(S_R6, offsetof(struct pt_regs, ARM_r6)); main()
99 DEFINE(S_R7, offsetof(struct pt_regs, ARM_r7)); main()
100 DEFINE(S_R8, offsetof(struct pt_regs, ARM_r8)); main()
101 DEFINE(S_R9, offsetof(struct pt_regs, ARM_r9)); main()
102 DEFINE(S_R10, offsetof(struct pt_regs, ARM_r10)); main()
103 DEFINE(S_FP, offsetof(struct pt_regs, ARM_fp)); main()
104 DEFINE(S_IP, offsetof(struct pt_regs, ARM_ip)); main()
105 DEFINE(S_SP, offsetof(struct pt_regs, ARM_sp)); main()
106 DEFINE(S_LR, offsetof(struct pt_regs, ARM_lr)); main()
107 DEFINE(S_PC, offsetof(struct pt_regs, ARM_pc)); main()
108 DEFINE(S_PSR, offsetof(struct pt_regs, ARM_cpsr)); main()
109 DEFINE(S_OLD_R0, offsetof(struct pt_regs, ARM_ORIG_r0)); main()
110 DEFINE(S_FRAME_SIZE, sizeof(struct pt_regs)); main()
113 DEFINE(L2X0_R_PHY_BASE, offsetof(struct l2x0_regs, phy_base)); main()
114 DEFINE(L2X0_R_AUX_CTRL, offsetof(struct l2x0_regs, aux_ctrl)); main()
115 DEFINE(L2X0_R_TAG_LATENCY, offsetof(struct l2x0_regs, tag_latency)); main()
116 DEFINE(L2X0_R_DATA_LATENCY, offsetof(struct l2x0_regs, data_latency)); main()
117 DEFINE(L2X0_R_FILTER_START, offsetof(struct l2x0_regs, filter_start)); main()
118 DEFINE(L2X0_R_FILTER_END, offsetof(struct l2x0_regs, filter_end)); main()
119 DEFINE(L2X0_R_PREFETCH_CTRL, offsetof(struct l2x0_regs, prefetch_ctrl)); main()
120 DEFINE(L2X0_R_PWR_CTRL, offsetof(struct l2x0_regs, pwr_ctrl)); main()
124 DEFINE(MM_CONTEXT_ID, offsetof(struct mm_struct, context.id.counter)); main()
127 DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm)); main()
128 DEFINE(VMA_VM_FLAGS, offsetof(struct vm_area_struct, vm_flags)); main()
130 DEFINE(VM_EXEC, VM_EXEC); main()
132 DEFINE(PAGE_SZ, PAGE_SIZE); main()
134 DEFINE(SYS_ERROR0, 0x9f0000); main()
136 DEFINE(SIZEOF_MACHINE_DESC, sizeof(struct machine_desc)); main()
137 DEFINE(MACHINFO_TYPE, offsetof(struct machine_desc, nr)); main()
138 DEFINE(MACHINFO_NAME, offsetof(struct machine_desc, name)); main()
140 DEFINE(PROC_INFO_SZ, sizeof(struct proc_info_list)); main()
141 DEFINE(PROCINFO_INITFUNC, offsetof(struct proc_info_list, __cpu_flush)); main()
142 DEFINE(PROCINFO_MM_MMUFLAGS, offsetof(struct proc_info_list, __cpu_mm_mmu_flags)); main()
143 DEFINE(PROCINFO_IO_MMUFLAGS, offsetof(struct proc_info_list, __cpu_io_mmu_flags)); main()
146 DEFINE(PROCESSOR_DABT_FUNC, offsetof(struct processor, _data_abort)); main()
149 DEFINE(PROCESSOR_PABT_FUNC, offsetof(struct processor, _prefetch_abort)); main()
152 DEFINE(CPU_SLEEP_SIZE, offsetof(struct processor, suspend_size)); main()
153 DEFINE(CPU_DO_SUSPEND, offsetof(struct processor, do_suspend)); main()
154 DEFINE(CPU_DO_RESUME, offsetof(struct processor, do_resume)); main()
157 DEFINE(CACHE_FLUSH_KERN_ALL, offsetof(struct cpu_cache_fns, flush_kern_all)); main()
160 DEFINE(SLEEP_SAVE_SP_SZ, sizeof(struct sleep_save_sp)); main()
161 DEFINE(SLEEP_SAVE_SP_PHYS, offsetof(struct sleep_save_sp, save_ptr_stash_phys)); main()
162 DEFINE(SLEEP_SAVE_SP_VIRT, offsetof(struct sleep_save_sp, save_ptr_stash)); main()
165 DEFINE(DMA_BIDIRECTIONAL, DMA_BIDIRECTIONAL); main()
166 DEFINE(DMA_TO_DEVICE, DMA_TO_DEVICE); main()
167 DEFINE(DMA_FROM_DEVICE, DMA_FROM_DEVICE); main()
169 DEFINE(CACHE_WRITEBACK_ORDER, __CACHE_WRITEBACK_ORDER); main()
170 DEFINE(CACHE_WRITEBACK_GRANULE, __CACHE_WRITEBACK_GRANULE); main()
173 DEFINE(VCPU_KVM, offsetof(struct kvm_vcpu, kvm)); main()
174 DEFINE(VCPU_MIDR, offsetof(struct kvm_vcpu, arch.midr)); main()
175 DEFINE(VCPU_CP15, offsetof(struct kvm_vcpu, arch.cp15)); main()
176 DEFINE(VCPU_VFP_GUEST, offsetof(struct kvm_vcpu, arch.vfp_guest)); main()
177 DEFINE(VCPU_VFP_HOST, offsetof(struct kvm_vcpu, arch.host_cpu_context)); main()
178 DEFINE(VCPU_REGS, offsetof(struct kvm_vcpu, arch.regs)); main()
179 DEFINE(VCPU_USR_REGS, offsetof(struct kvm_vcpu, arch.regs.usr_regs)); main()
180 DEFINE(VCPU_SVC_REGS, offsetof(struct kvm_vcpu, arch.regs.svc_regs)); main()
181 DEFINE(VCPU_ABT_REGS, offsetof(struct kvm_vcpu, arch.regs.abt_regs)); main()
182 DEFINE(VCPU_UND_REGS, offsetof(struct kvm_vcpu, arch.regs.und_regs)); main()
183 DEFINE(VCPU_IRQ_REGS, offsetof(struct kvm_vcpu, arch.regs.irq_regs)); main()
184 DEFINE(VCPU_FIQ_REGS, offsetof(struct kvm_vcpu, arch.regs.fiq_regs)); main()
185 DEFINE(VCPU_PC, offsetof(struct kvm_vcpu, arch.regs.usr_regs.ARM_pc)); main()
186 DEFINE(VCPU_CPSR, offsetof(struct kvm_vcpu, arch.regs.usr_regs.ARM_cpsr)); main()
187 DEFINE(VCPU_HCR, offsetof(struct kvm_vcpu, arch.hcr)); main()
188 DEFINE(VCPU_IRQ_LINES, offsetof(struct kvm_vcpu, arch.irq_lines)); main()
189 DEFINE(VCPU_HSR, offsetof(struct kvm_vcpu, arch.fault.hsr)); main()
190 DEFINE(VCPU_HxFAR, offsetof(struct kvm_vcpu, arch.fault.hxfar)); main()
191 DEFINE(VCPU_HPFAR, offsetof(struct kvm_vcpu, arch.fault.hpfar)); main()
192 DEFINE(VCPU_HYP_PC, offsetof(struct kvm_vcpu, arch.fault.hyp_pc)); main()
193 DEFINE(VCPU_VGIC_CPU, offsetof(struct kvm_vcpu, arch.vgic_cpu)); main()
194 DEFINE(VGIC_V2_CPU_HCR, offsetof(struct vgic_cpu, vgic_v2.vgic_hcr)); main()
195 DEFINE(VGIC_V2_CPU_VMCR, offsetof(struct vgic_cpu, vgic_v2.vgic_vmcr)); main()
196 DEFINE(VGIC_V2_CPU_MISR, offsetof(struct vgic_cpu, vgic_v2.vgic_misr)); main()
197 DEFINE(VGIC_V2_CPU_EISR, offsetof(struct vgic_cpu, vgic_v2.vgic_eisr)); main()
198 DEFINE(VGIC_V2_CPU_ELRSR, offsetof(struct vgic_cpu, vgic_v2.vgic_elrsr)); main()
199 DEFINE(VGIC_V2_CPU_APR, offsetof(struct vgic_cpu, vgic_v2.vgic_apr)); main()
200 DEFINE(VGIC_V2_CPU_LR, offsetof(struct vgic_cpu, vgic_v2.vgic_lr)); main()
201 DEFINE(VGIC_CPU_NR_LR, offsetof(struct vgic_cpu, nr_lr)); main()
202 DEFINE(VCPU_TIMER_CNTV_CTL, offsetof(struct kvm_vcpu, arch.timer_cpu.cntv_ctl)); main()
203 DEFINE(VCPU_TIMER_CNTV_CVAL, offsetof(struct kvm_vcpu, arch.timer_cpu.cntv_cval)); main()
204 DEFINE(KVM_TIMER_CNTVOFF, offsetof(struct kvm, arch.timer.cntvoff)); main()
205 DEFINE(KVM_TIMER_ENABLED, offsetof(struct kvm, arch.timer.enabled)); main()
206 DEFINE(KVM_VGIC_VCTRL, offsetof(struct kvm, arch.vgic.vctrl_base)); main()
207 DEFINE(KVM_VTTBR, offsetof(struct kvm, arch.vttbr)); main()
211 DEFINE(VDSO_DATA_SIZE, sizeof(union vdso_data_store)); main()
/linux-4.4.14/arch/xtensa/kernel/
H A Dasm-offsets.c31 DEFINE(PT_PC, offsetof (struct pt_regs, pc)); main()
32 DEFINE(PT_PS, offsetof (struct pt_regs, ps)); main()
33 DEFINE(PT_DEPC, offsetof (struct pt_regs, depc)); main()
34 DEFINE(PT_EXCCAUSE, offsetof (struct pt_regs, exccause)); main()
35 DEFINE(PT_EXCVADDR, offsetof (struct pt_regs, excvaddr)); main()
36 DEFINE(PT_DEBUGCAUSE, offsetof (struct pt_regs, debugcause)); main()
37 DEFINE(PT_WMASK, offsetof (struct pt_regs, wmask)); main()
38 DEFINE(PT_LBEG, offsetof (struct pt_regs, lbeg)); main()
39 DEFINE(PT_LEND, offsetof (struct pt_regs, lend)); main()
40 DEFINE(PT_LCOUNT, offsetof (struct pt_regs, lcount)); main()
41 DEFINE(PT_SAR, offsetof (struct pt_regs, sar)); main()
42 DEFINE(PT_ICOUNTLEVEL, offsetof (struct pt_regs, icountlevel)); main()
43 DEFINE(PT_SYSCALL, offsetof (struct pt_regs, syscall)); main()
44 DEFINE(PT_SCOMPARE1, offsetof(struct pt_regs, scompare1)); main()
45 DEFINE(PT_THREADPTR, offsetof(struct pt_regs, threadptr)); main()
46 DEFINE(PT_AREG, offsetof (struct pt_regs, areg[0])); main()
47 DEFINE(PT_AREG0, offsetof (struct pt_regs, areg[0])); main()
48 DEFINE(PT_AREG1, offsetof (struct pt_regs, areg[1])); main()
49 DEFINE(PT_AREG2, offsetof (struct pt_regs, areg[2])); main()
50 DEFINE(PT_AREG3, offsetof (struct pt_regs, areg[3])); main()
51 DEFINE(PT_AREG4, offsetof (struct pt_regs, areg[4])); main()
52 DEFINE(PT_AREG5, offsetof (struct pt_regs, areg[5])); main()
53 DEFINE(PT_AREG6, offsetof (struct pt_regs, areg[6])); main()
54 DEFINE(PT_AREG7, offsetof (struct pt_regs, areg[7])); main()
55 DEFINE(PT_AREG8, offsetof (struct pt_regs, areg[8])); main()
56 DEFINE(PT_AREG9, offsetof (struct pt_regs, areg[9])); main()
57 DEFINE(PT_AREG10, offsetof (struct pt_regs, areg[10])); main()
58 DEFINE(PT_AREG11, offsetof (struct pt_regs, areg[11])); main()
59 DEFINE(PT_AREG12, offsetof (struct pt_regs, areg[12])); main()
60 DEFINE(PT_AREG13, offsetof (struct pt_regs, areg[13])); main()
61 DEFINE(PT_AREG14, offsetof (struct pt_regs, areg[14])); main()
62 DEFINE(PT_AREG15, offsetof (struct pt_regs, areg[15])); main()
63 DEFINE(PT_WINDOWBASE, offsetof (struct pt_regs, windowbase)); main()
64 DEFINE(PT_WINDOWSTART, offsetof(struct pt_regs, windowstart)); main()
65 DEFINE(PT_SIZE, sizeof(struct pt_regs)); main()
66 DEFINE(PT_AREG_END, offsetof (struct pt_regs, areg[XCHAL_NUM_AREGS])); main()
67 DEFINE(PT_USER_SIZE, offsetof(struct pt_regs, areg[XCHAL_NUM_AREGS])); main()
68 DEFINE(PT_XTREGS_OPT, offsetof(struct pt_regs, xtregs_opt)); main()
69 DEFINE(XTREGS_OPT_SIZE, sizeof(xtregs_opt_t)); main()
72 DEFINE(TASK_PTRACE, offsetof (struct task_struct, ptrace)); main()
73 DEFINE(TASK_MM, offsetof (struct task_struct, mm)); main()
74 DEFINE(TASK_ACTIVE_MM, offsetof (struct task_struct, active_mm)); main()
75 DEFINE(TASK_PID, offsetof (struct task_struct, pid)); main()
76 DEFINE(TASK_THREAD, offsetof (struct task_struct, thread)); main()
77 DEFINE(TASK_THREAD_INFO, offsetof (struct task_struct, stack)); main()
78 DEFINE(TASK_STRUCT_SIZE, sizeof (struct task_struct)); main()
89 DEFINE(THREAD_RA, offsetof (struct task_struct, thread.ra)); main()
90 DEFINE(THREAD_SP, offsetof (struct task_struct, thread.sp)); main()
91 DEFINE(THREAD_CPENABLE, offsetof (struct thread_info, cpenable)); main()
93 DEFINE(THREAD_XTREGS_CP0, offsetof (struct thread_info, xtregs_cp)); main()
94 DEFINE(THREAD_XTREGS_CP1, offsetof (struct thread_info, xtregs_cp)); main()
95 DEFINE(THREAD_XTREGS_CP2, offsetof (struct thread_info, xtregs_cp)); main()
96 DEFINE(THREAD_XTREGS_CP3, offsetof (struct thread_info, xtregs_cp)); main()
97 DEFINE(THREAD_XTREGS_CP4, offsetof (struct thread_info, xtregs_cp)); main()
98 DEFINE(THREAD_XTREGS_CP5, offsetof (struct thread_info, xtregs_cp)); main()
99 DEFINE(THREAD_XTREGS_CP6, offsetof (struct thread_info, xtregs_cp)); main()
100 DEFINE(THREAD_XTREGS_CP7, offsetof (struct thread_info, xtregs_cp)); main()
102 DEFINE(THREAD_XTREGS_USER, offsetof (struct thread_info, xtregs_user)); main()
103 DEFINE(XTREGS_USER_SIZE, sizeof(xtregs_user_t)); main()
104 DEFINE(THREAD_CURRENT_DS, offsetof (struct task_struct, \ main()
108 DEFINE(MM_USERS, offsetof(struct mm_struct, mm_users)); main()
109 DEFINE(MM_PGD, offsetof (struct mm_struct, pgd)); main()
110 DEFINE(MM_CONTEXT, offsetof (struct mm_struct, context)); main()
113 DEFINE(PAGE_FLAGS, offsetof(struct page, flags)); main()
116 DEFINE(_CLONE_VM, CLONE_VM); main()
117 DEFINE(_CLONE_UNTRACED, CLONE_UNTRACED); main()
118 DEFINE(PG_ARCH_1, PG_arch_1); main()
/linux-4.4.14/arch/sh/kernel/
H A Dasm-offsets.c23 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
24 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
25 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
26 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); main()
27 DEFINE(TI_SIZE, sizeof(struct thread_info)); main()
30 DEFINE(PBE_ADDRESS, offsetof(struct pbe, address)); main()
31 DEFINE(PBE_ORIG_ADDRESS, offsetof(struct pbe, orig_address)); main()
32 DEFINE(PBE_NEXT, offsetof(struct pbe, next)); main()
33 DEFINE(SWSUSP_ARCH_REGS_SIZE, sizeof(struct swsusp_arch_regs)); main()
36 DEFINE(SH_SLEEP_MODE, offsetof(struct sh_sleep_data, mode)); main()
37 DEFINE(SH_SLEEP_SF_PRE, offsetof(struct sh_sleep_data, sf_pre)); main()
38 DEFINE(SH_SLEEP_SF_POST, offsetof(struct sh_sleep_data, sf_post)); main()
39 DEFINE(SH_SLEEP_RESUME, offsetof(struct sh_sleep_data, resume)); main()
40 DEFINE(SH_SLEEP_VBR, offsetof(struct sh_sleep_data, vbr)); main()
41 DEFINE(SH_SLEEP_SPC, offsetof(struct sh_sleep_data, spc)); main()
42 DEFINE(SH_SLEEP_SR, offsetof(struct sh_sleep_data, sr)); main()
43 DEFINE(SH_SLEEP_SP, offsetof(struct sh_sleep_data, sp)); main()
44 DEFINE(SH_SLEEP_BASE_ADDR, offsetof(struct sh_sleep_data, addr)); main()
45 DEFINE(SH_SLEEP_BASE_DATA, offsetof(struct sh_sleep_data, data)); main()
46 DEFINE(SH_SLEEP_REG_STBCR, offsetof(struct sh_sleep_regs, stbcr)); main()
47 DEFINE(SH_SLEEP_REG_BAR, offsetof(struct sh_sleep_regs, bar)); main()
48 DEFINE(SH_SLEEP_REG_PTEH, offsetof(struct sh_sleep_regs, pteh)); main()
49 DEFINE(SH_SLEEP_REG_PTEL, offsetof(struct sh_sleep_regs, ptel)); main()
50 DEFINE(SH_SLEEP_REG_TTB, offsetof(struct sh_sleep_regs, ttb)); main()
51 DEFINE(SH_SLEEP_REG_TEA, offsetof(struct sh_sleep_regs, tea)); main()
52 DEFINE(SH_SLEEP_REG_MMUCR, offsetof(struct sh_sleep_regs, mmucr)); main()
53 DEFINE(SH_SLEEP_REG_PTEA, offsetof(struct sh_sleep_regs, ptea)); main()
54 DEFINE(SH_SLEEP_REG_PASCR, offsetof(struct sh_sleep_regs, pascr)); main()
55 DEFINE(SH_SLEEP_REG_IRMCR, offsetof(struct sh_sleep_regs, irmcr)); main()
56 DEFINE(SH_SLEEP_REG_CCR, offsetof(struct sh_sleep_regs, ccr)); main()
57 DEFINE(SH_SLEEP_REG_RAMCR, offsetof(struct sh_sleep_regs, ramcr)); main()
/linux-4.4.14/arch/parisc/kernel/
H A Dasm-offsets.c57 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); main()
58 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
59 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
60 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); main()
61 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
62 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
63 DEFINE(TASK_PERSONALITY, offsetof(struct task_struct, personality)); main()
64 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); main()
66 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); main()
67 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); main()
68 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); main()
69 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); main()
70 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); main()
71 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); main()
72 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); main()
73 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); main()
74 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); main()
75 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread.regs.gr[ 8])); main()
76 DEFINE(TASK_PT_GR9, offsetof(struct task_struct, thread.regs.gr[ 9])); main()
77 DEFINE(TASK_PT_GR10, offsetof(struct task_struct, thread.regs.gr[10])); main()
78 DEFINE(TASK_PT_GR11, offsetof(struct task_struct, thread.regs.gr[11])); main()
79 DEFINE(TASK_PT_GR12, offsetof(struct task_struct, thread.regs.gr[12])); main()
80 DEFINE(TASK_PT_GR13, offsetof(struct task_struct, thread.regs.gr[13])); main()
81 DEFINE(TASK_PT_GR14, offsetof(struct task_struct, thread.regs.gr[14])); main()
82 DEFINE(TASK_PT_GR15, offsetof(struct task_struct, thread.regs.gr[15])); main()
83 DEFINE(TASK_PT_GR16, offsetof(struct task_struct, thread.regs.gr[16])); main()
84 DEFINE(TASK_PT_GR17, offsetof(struct task_struct, thread.regs.gr[17])); main()
85 DEFINE(TASK_PT_GR18, offsetof(struct task_struct, thread.regs.gr[18])); main()
86 DEFINE(TASK_PT_GR19, offsetof(struct task_struct, thread.regs.gr[19])); main()
87 DEFINE(TASK_PT_GR20, offsetof(struct task_struct, thread.regs.gr[20])); main()
88 DEFINE(TASK_PT_GR21, offsetof(struct task_struct, thread.regs.gr[21])); main()
89 DEFINE(TASK_PT_GR22, offsetof(struct task_struct, thread.regs.gr[22])); main()
90 DEFINE(TASK_PT_GR23, offsetof(struct task_struct, thread.regs.gr[23])); main()
91 DEFINE(TASK_PT_GR24, offsetof(struct task_struct, thread.regs.gr[24])); main()
92 DEFINE(TASK_PT_GR25, offsetof(struct task_struct, thread.regs.gr[25])); main()
93 DEFINE(TASK_PT_GR26, offsetof(struct task_struct, thread.regs.gr[26])); main()
94 DEFINE(TASK_PT_GR27, offsetof(struct task_struct, thread.regs.gr[27])); main()
95 DEFINE(TASK_PT_GR28, offsetof(struct task_struct, thread.regs.gr[28])); main()
96 DEFINE(TASK_PT_GR29, offsetof(struct task_struct, thread.regs.gr[29])); main()
97 DEFINE(TASK_PT_GR30, offsetof(struct task_struct, thread.regs.gr[30])); main()
98 DEFINE(TASK_PT_GR31, offsetof(struct task_struct, thread.regs.gr[31])); main()
99 DEFINE(TASK_PT_FR0, offsetof(struct task_struct, thread.regs.fr[ 0])); main()
100 DEFINE(TASK_PT_FR1, offsetof(struct task_struct, thread.regs.fr[ 1])); main()
101 DEFINE(TASK_PT_FR2, offsetof(struct task_struct, thread.regs.fr[ 2])); main()
102 DEFINE(TASK_PT_FR3, offsetof(struct task_struct, thread.regs.fr[ 3])); main()
103 DEFINE(TASK_PT_FR4, offsetof(struct task_struct, thread.regs.fr[ 4])); main()
104 DEFINE(TASK_PT_FR5, offsetof(struct task_struct, thread.regs.fr[ 5])); main()
105 DEFINE(TASK_PT_FR6, offsetof(struct task_struct, thread.regs.fr[ 6])); main()
106 DEFINE(TASK_PT_FR7, offsetof(struct task_struct, thread.regs.fr[ 7])); main()
107 DEFINE(TASK_PT_FR8, offsetof(struct task_struct, thread.regs.fr[ 8])); main()
108 DEFINE(TASK_PT_FR9, offsetof(struct task_struct, thread.regs.fr[ 9])); main()
109 DEFINE(TASK_PT_FR10, offsetof(struct task_struct, thread.regs.fr[10])); main()
110 DEFINE(TASK_PT_FR11, offsetof(struct task_struct, thread.regs.fr[11])); main()
111 DEFINE(TASK_PT_FR12, offsetof(struct task_struct, thread.regs.fr[12])); main()
112 DEFINE(TASK_PT_FR13, offsetof(struct task_struct, thread.regs.fr[13])); main()
113 DEFINE(TASK_PT_FR14, offsetof(struct task_struct, thread.regs.fr[14])); main()
114 DEFINE(TASK_PT_FR15, offsetof(struct task_struct, thread.regs.fr[15])); main()
115 DEFINE(TASK_PT_FR16, offsetof(struct task_struct, thread.regs.fr[16])); main()
116 DEFINE(TASK_PT_FR17, offsetof(struct task_struct, thread.regs.fr[17])); main()
117 DEFINE(TASK_PT_FR18, offsetof(struct task_struct, thread.regs.fr[18])); main()
118 DEFINE(TASK_PT_FR19, offsetof(struct task_struct, thread.regs.fr[19])); main()
119 DEFINE(TASK_PT_FR20, offsetof(struct task_struct, thread.regs.fr[20])); main()
120 DEFINE(TASK_PT_FR21, offsetof(struct task_struct, thread.regs.fr[21])); main()
121 DEFINE(TASK_PT_FR22, offsetof(struct task_struct, thread.regs.fr[22])); main()
122 DEFINE(TASK_PT_FR23, offsetof(struct task_struct, thread.regs.fr[23])); main()
123 DEFINE(TASK_PT_FR24, offsetof(struct task_struct, thread.regs.fr[24])); main()
124 DEFINE(TASK_PT_FR25, offsetof(struct task_struct, thread.regs.fr[25])); main()
125 DEFINE(TASK_PT_FR26, offsetof(struct task_struct, thread.regs.fr[26])); main()
126 DEFINE(TASK_PT_FR27, offsetof(struct task_struct, thread.regs.fr[27])); main()
127 DEFINE(TASK_PT_FR28, offsetof(struct task_struct, thread.regs.fr[28])); main()
128 DEFINE(TASK_PT_FR29, offsetof(struct task_struct, thread.regs.fr[29])); main()
129 DEFINE(TASK_PT_FR30, offsetof(struct task_struct, thread.regs.fr[30])); main()
130 DEFINE(TASK_PT_FR31, offsetof(struct task_struct, thread.regs.fr[31])); main()
131 DEFINE(TASK_PT_SR0, offsetof(struct task_struct, thread.regs.sr[ 0])); main()
132 DEFINE(TASK_PT_SR1, offsetof(struct task_struct, thread.regs.sr[ 1])); main()
133 DEFINE(TASK_PT_SR2, offsetof(struct task_struct, thread.regs.sr[ 2])); main()
134 DEFINE(TASK_PT_SR3, offsetof(struct task_struct, thread.regs.sr[ 3])); main()
135 DEFINE(TASK_PT_SR4, offsetof(struct task_struct, thread.regs.sr[ 4])); main()
136 DEFINE(TASK_PT_SR5, offsetof(struct task_struct, thread.regs.sr[ 5])); main()
137 DEFINE(TASK_PT_SR6, offsetof(struct task_struct, thread.regs.sr[ 6])); main()
138 DEFINE(TASK_PT_SR7, offsetof(struct task_struct, thread.regs.sr[ 7])); main()
139 DEFINE(TASK_PT_IASQ0, offsetof(struct task_struct, thread.regs.iasq[0])); main()
140 DEFINE(TASK_PT_IASQ1, offsetof(struct task_struct, thread.regs.iasq[1])); main()
141 DEFINE(TASK_PT_IAOQ0, offsetof(struct task_struct, thread.regs.iaoq[0])); main()
142 DEFINE(TASK_PT_IAOQ1, offsetof(struct task_struct, thread.regs.iaoq[1])); main()
143 DEFINE(TASK_PT_CR27, offsetof(struct task_struct, thread.regs.cr27)); main()
144 DEFINE(TASK_PT_ORIG_R28, offsetof(struct task_struct, thread.regs.orig_r28)); main()
145 DEFINE(TASK_PT_KSP, offsetof(struct task_struct, thread.regs.ksp)); main()
146 DEFINE(TASK_PT_KPC, offsetof(struct task_struct, thread.regs.kpc)); main()
147 DEFINE(TASK_PT_SAR, offsetof(struct task_struct, thread.regs.sar)); main()
148 DEFINE(TASK_PT_IIR, offsetof(struct task_struct, thread.regs.iir)); main()
149 DEFINE(TASK_PT_ISR, offsetof(struct task_struct, thread.regs.isr)); main()
150 DEFINE(TASK_PT_IOR, offsetof(struct task_struct, thread.regs.ior)); main()
152 DEFINE(TASK_SZ, sizeof(struct task_struct)); main()
154 DEFINE(TASK_SZ_ALGN, align_frame(sizeof(struct task_struct), FRAME_ALIGN)); main()
156 DEFINE(PT_PSW, offsetof(struct pt_regs, gr[ 0])); main()
157 DEFINE(PT_GR1, offsetof(struct pt_regs, gr[ 1])); main()
158 DEFINE(PT_GR2, offsetof(struct pt_regs, gr[ 2])); main()
159 DEFINE(PT_GR3, offsetof(struct pt_regs, gr[ 3])); main()
160 DEFINE(PT_GR4, offsetof(struct pt_regs, gr[ 4])); main()
161 DEFINE(PT_GR5, offsetof(struct pt_regs, gr[ 5])); main()
162 DEFINE(PT_GR6, offsetof(struct pt_regs, gr[ 6])); main()
163 DEFINE(PT_GR7, offsetof(struct pt_regs, gr[ 7])); main()
164 DEFINE(PT_GR8, offsetof(struct pt_regs, gr[ 8])); main()
165 DEFINE(PT_GR9, offsetof(struct pt_regs, gr[ 9])); main()
166 DEFINE(PT_GR10, offsetof(struct pt_regs, gr[10])); main()
167 DEFINE(PT_GR11, offsetof(struct pt_regs, gr[11])); main()
168 DEFINE(PT_GR12, offsetof(struct pt_regs, gr[12])); main()
169 DEFINE(PT_GR13, offsetof(struct pt_regs, gr[13])); main()
170 DEFINE(PT_GR14, offsetof(struct pt_regs, gr[14])); main()
171 DEFINE(PT_GR15, offsetof(struct pt_regs, gr[15])); main()
172 DEFINE(PT_GR16, offsetof(struct pt_regs, gr[16])); main()
173 DEFINE(PT_GR17, offsetof(struct pt_regs, gr[17])); main()
174 DEFINE(PT_GR18, offsetof(struct pt_regs, gr[18])); main()
175 DEFINE(PT_GR19, offsetof(struct pt_regs, gr[19])); main()
176 DEFINE(PT_GR20, offsetof(struct pt_regs, gr[20])); main()
177 DEFINE(PT_GR21, offsetof(struct pt_regs, gr[21])); main()
178 DEFINE(PT_GR22, offsetof(struct pt_regs, gr[22])); main()
179 DEFINE(PT_GR23, offsetof(struct pt_regs, gr[23])); main()
180 DEFINE(PT_GR24, offsetof(struct pt_regs, gr[24])); main()
181 DEFINE(PT_GR25, offsetof(struct pt_regs, gr[25])); main()
182 DEFINE(PT_GR26, offsetof(struct pt_regs, gr[26])); main()
183 DEFINE(PT_GR27, offsetof(struct pt_regs, gr[27])); main()
184 DEFINE(PT_GR28, offsetof(struct pt_regs, gr[28])); main()
185 DEFINE(PT_GR29, offsetof(struct pt_regs, gr[29])); main()
186 DEFINE(PT_GR30, offsetof(struct pt_regs, gr[30])); main()
187 DEFINE(PT_GR31, offsetof(struct pt_regs, gr[31])); main()
188 DEFINE(PT_FR0, offsetof(struct pt_regs, fr[ 0])); main()
189 DEFINE(PT_FR1, offsetof(struct pt_regs, fr[ 1])); main()
190 DEFINE(PT_FR2, offsetof(struct pt_regs, fr[ 2])); main()
191 DEFINE(PT_FR3, offsetof(struct pt_regs, fr[ 3])); main()
192 DEFINE(PT_FR4, offsetof(struct pt_regs, fr[ 4])); main()
193 DEFINE(PT_FR5, offsetof(struct pt_regs, fr[ 5])); main()
194 DEFINE(PT_FR6, offsetof(struct pt_regs, fr[ 6])); main()
195 DEFINE(PT_FR7, offsetof(struct pt_regs, fr[ 7])); main()
196 DEFINE(PT_FR8, offsetof(struct pt_regs, fr[ 8])); main()
197 DEFINE(PT_FR9, offsetof(struct pt_regs, fr[ 9])); main()
198 DEFINE(PT_FR10, offsetof(struct pt_regs, fr[10])); main()
199 DEFINE(PT_FR11, offsetof(struct pt_regs, fr[11])); main()
200 DEFINE(PT_FR12, offsetof(struct pt_regs, fr[12])); main()
201 DEFINE(PT_FR13, offsetof(struct pt_regs, fr[13])); main()
202 DEFINE(PT_FR14, offsetof(struct pt_regs, fr[14])); main()
203 DEFINE(PT_FR15, offsetof(struct pt_regs, fr[15])); main()
204 DEFINE(PT_FR16, offsetof(struct pt_regs, fr[16])); main()
205 DEFINE(PT_FR17, offsetof(struct pt_regs, fr[17])); main()
206 DEFINE(PT_FR18, offsetof(struct pt_regs, fr[18])); main()
207 DEFINE(PT_FR19, offsetof(struct pt_regs, fr[19])); main()
208 DEFINE(PT_FR20, offsetof(struct pt_regs, fr[20])); main()
209 DEFINE(PT_FR21, offsetof(struct pt_regs, fr[21])); main()
210 DEFINE(PT_FR22, offsetof(struct pt_regs, fr[22])); main()
211 DEFINE(PT_FR23, offsetof(struct pt_regs, fr[23])); main()
212 DEFINE(PT_FR24, offsetof(struct pt_regs, fr[24])); main()
213 DEFINE(PT_FR25, offsetof(struct pt_regs, fr[25])); main()
214 DEFINE(PT_FR26, offsetof(struct pt_regs, fr[26])); main()
215 DEFINE(PT_FR27, offsetof(struct pt_regs, fr[27])); main()
216 DEFINE(PT_FR28, offsetof(struct pt_regs, fr[28])); main()
217 DEFINE(PT_FR29, offsetof(struct pt_regs, fr[29])); main()
218 DEFINE(PT_FR30, offsetof(struct pt_regs, fr[30])); main()
219 DEFINE(PT_FR31, offsetof(struct pt_regs, fr[31])); main()
220 DEFINE(PT_SR0, offsetof(struct pt_regs, sr[ 0])); main()
221 DEFINE(PT_SR1, offsetof(struct pt_regs, sr[ 1])); main()
222 DEFINE(PT_SR2, offsetof(struct pt_regs, sr[ 2])); main()
223 DEFINE(PT_SR3, offsetof(struct pt_regs, sr[ 3])); main()
224 DEFINE(PT_SR4, offsetof(struct pt_regs, sr[ 4])); main()
225 DEFINE(PT_SR5, offsetof(struct pt_regs, sr[ 5])); main()
226 DEFINE(PT_SR6, offsetof(struct pt_regs, sr[ 6])); main()
227 DEFINE(PT_SR7, offsetof(struct pt_regs, sr[ 7])); main()
228 DEFINE(PT_IASQ0, offsetof(struct pt_regs, iasq[0])); main()
229 DEFINE(PT_IASQ1, offsetof(struct pt_regs, iasq[1])); main()
230 DEFINE(PT_IAOQ0, offsetof(struct pt_regs, iaoq[0])); main()
231 DEFINE(PT_IAOQ1, offsetof(struct pt_regs, iaoq[1])); main()
232 DEFINE(PT_CR27, offsetof(struct pt_regs, cr27)); main()
233 DEFINE(PT_ORIG_R28, offsetof(struct pt_regs, orig_r28)); main()
234 DEFINE(PT_KSP, offsetof(struct pt_regs, ksp)); main()
235 DEFINE(PT_KPC, offsetof(struct pt_regs, kpc)); main()
236 DEFINE(PT_SAR, offsetof(struct pt_regs, sar)); main()
237 DEFINE(PT_IIR, offsetof(struct pt_regs, iir)); main()
238 DEFINE(PT_ISR, offsetof(struct pt_regs, isr)); main()
239 DEFINE(PT_IOR, offsetof(struct pt_regs, ior)); main()
240 DEFINE(PT_SIZE, sizeof(struct pt_regs)); main()
242 DEFINE(PT_SZ_ALGN, align_frame(sizeof(struct pt_regs), FRAME_ALIGN)); main()
244 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
245 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
246 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
247 DEFINE(TI_SEGMENT, offsetof(struct thread_info, addr_limit)); main()
248 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); main()
249 DEFINE(THREAD_SZ, sizeof(struct thread_info)); main()
251 DEFINE(THREAD_SZ_ALGN, align_frame(sizeof(struct thread_info), FRAME_ALIGN)); main()
253 DEFINE(ICACHE_BASE, offsetof(struct pdc_cache_info, ic_base)); main()
254 DEFINE(ICACHE_STRIDE, offsetof(struct pdc_cache_info, ic_stride)); main()
255 DEFINE(ICACHE_COUNT, offsetof(struct pdc_cache_info, ic_count)); main()
256 DEFINE(ICACHE_LOOP, offsetof(struct pdc_cache_info, ic_loop)); main()
257 DEFINE(DCACHE_BASE, offsetof(struct pdc_cache_info, dc_base)); main()
258 DEFINE(DCACHE_STRIDE, offsetof(struct pdc_cache_info, dc_stride)); main()
259 DEFINE(DCACHE_COUNT, offsetof(struct pdc_cache_info, dc_count)); main()
260 DEFINE(DCACHE_LOOP, offsetof(struct pdc_cache_info, dc_loop)); main()
261 DEFINE(ITLB_SID_BASE, offsetof(struct pdc_cache_info, it_sp_base)); main()
262 DEFINE(ITLB_SID_STRIDE, offsetof(struct pdc_cache_info, it_sp_stride)); main()
263 DEFINE(ITLB_SID_COUNT, offsetof(struct pdc_cache_info, it_sp_count)); main()
264 DEFINE(ITLB_OFF_BASE, offsetof(struct pdc_cache_info, it_off_base)); main()
265 DEFINE(ITLB_OFF_STRIDE, offsetof(struct pdc_cache_info, it_off_stride)); main()
266 DEFINE(ITLB_OFF_COUNT, offsetof(struct pdc_cache_info, it_off_count)); main()
267 DEFINE(ITLB_LOOP, offsetof(struct pdc_cache_info, it_loop)); main()
268 DEFINE(DTLB_SID_BASE, offsetof(struct pdc_cache_info, dt_sp_base)); main()
269 DEFINE(DTLB_SID_STRIDE, offsetof(struct pdc_cache_info, dt_sp_stride)); main()
270 DEFINE(DTLB_SID_COUNT, offsetof(struct pdc_cache_info, dt_sp_count)); main()
271 DEFINE(DTLB_OFF_BASE, offsetof(struct pdc_cache_info, dt_off_base)); main()
272 DEFINE(DTLB_OFF_STRIDE, offsetof(struct pdc_cache_info, dt_off_stride)); main()
273 DEFINE(DTLB_OFF_COUNT, offsetof(struct pdc_cache_info, dt_off_count)); main()
274 DEFINE(DTLB_LOOP, offsetof(struct pdc_cache_info, dt_loop)); main()
276 DEFINE(TIF_BLOCKSTEP_PA_BIT, 31-TIF_BLOCKSTEP); main()
277 DEFINE(TIF_SINGLESTEP_PA_BIT, 31-TIF_SINGLESTEP); main()
279 DEFINE(ASM_PMD_SHIFT, PMD_SHIFT); main()
280 DEFINE(ASM_PGDIR_SHIFT, PGDIR_SHIFT); main()
281 DEFINE(ASM_BITS_PER_PGD, BITS_PER_PGD); main()
282 DEFINE(ASM_BITS_PER_PMD, BITS_PER_PMD); main()
283 DEFINE(ASM_BITS_PER_PTE, BITS_PER_PTE); main()
284 DEFINE(ASM_PGD_PMD_OFFSET, -(PAGE_SIZE << PGD_ORDER)); main()
285 DEFINE(ASM_PMD_ENTRY, ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT)); main()
286 DEFINE(ASM_PGD_ENTRY, PAGE_OFFSET >> PGDIR_SHIFT); main()
287 DEFINE(ASM_PGD_ENTRY_SIZE, PGD_ENTRY_SIZE); main()
288 DEFINE(ASM_PMD_ENTRY_SIZE, PMD_ENTRY_SIZE); main()
289 DEFINE(ASM_PTE_ENTRY_SIZE, PTE_ENTRY_SIZE); main()
290 DEFINE(ASM_PFN_PTE_SHIFT, PFN_PTE_SHIFT); main()
291 DEFINE(ASM_PT_INITIAL, PT_INITIAL); main()
296 DEFINE(HUGEPAGE_SIZE, 1UL << REAL_HPAGE_SHIFT); main()
298 DEFINE(HUGEPAGE_SIZE, PAGE_SIZE); main()
301 DEFINE(EXCDATA_IP, offsetof(struct exception_data, fault_ip)); main()
302 DEFINE(EXCDATA_GP, offsetof(struct exception_data, fault_gp)); main()
303 DEFINE(EXCDATA_SPACE, offsetof(struct exception_data, fault_space)); main()
304 DEFINE(EXCDATA_ADDR, offsetof(struct exception_data, fault_addr)); main()
306 DEFINE(ASM_PDC_RESULT_SIZE, NUM_PDC_RESULT * sizeof(unsigned long)); main()
/linux-4.4.14/arch/unicore32/kernel/
H A Dasm-offsets.c39 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
41 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
42 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main()
43 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); main()
44 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
45 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); main()
46 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); main()
47 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); main()
49 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); main()
52 DEFINE(S_R0, offsetof(struct pt_regs, UCreg_00)); main()
53 DEFINE(S_R1, offsetof(struct pt_regs, UCreg_01)); main()
54 DEFINE(S_R2, offsetof(struct pt_regs, UCreg_02)); main()
55 DEFINE(S_R3, offsetof(struct pt_regs, UCreg_03)); main()
56 DEFINE(S_R4, offsetof(struct pt_regs, UCreg_04)); main()
57 DEFINE(S_R5, offsetof(struct pt_regs, UCreg_05)); main()
58 DEFINE(S_R6, offsetof(struct pt_regs, UCreg_06)); main()
59 DEFINE(S_R7, offsetof(struct pt_regs, UCreg_07)); main()
60 DEFINE(S_R8, offsetof(struct pt_regs, UCreg_08)); main()
61 DEFINE(S_R9, offsetof(struct pt_regs, UCreg_09)); main()
62 DEFINE(S_R10, offsetof(struct pt_regs, UCreg_10)); main()
63 DEFINE(S_R11, offsetof(struct pt_regs, UCreg_11)); main()
64 DEFINE(S_R12, offsetof(struct pt_regs, UCreg_12)); main()
65 DEFINE(S_R13, offsetof(struct pt_regs, UCreg_13)); main()
66 DEFINE(S_R14, offsetof(struct pt_regs, UCreg_14)); main()
67 DEFINE(S_R15, offsetof(struct pt_regs, UCreg_15)); main()
68 DEFINE(S_R16, offsetof(struct pt_regs, UCreg_16)); main()
69 DEFINE(S_R17, offsetof(struct pt_regs, UCreg_17)); main()
70 DEFINE(S_R18, offsetof(struct pt_regs, UCreg_18)); main()
71 DEFINE(S_R19, offsetof(struct pt_regs, UCreg_19)); main()
72 DEFINE(S_R20, offsetof(struct pt_regs, UCreg_20)); main()
73 DEFINE(S_R21, offsetof(struct pt_regs, UCreg_21)); main()
74 DEFINE(S_R22, offsetof(struct pt_regs, UCreg_22)); main()
75 DEFINE(S_R23, offsetof(struct pt_regs, UCreg_23)); main()
76 DEFINE(S_R24, offsetof(struct pt_regs, UCreg_24)); main()
77 DEFINE(S_R25, offsetof(struct pt_regs, UCreg_25)); main()
78 DEFINE(S_R26, offsetof(struct pt_regs, UCreg_26)); main()
79 DEFINE(S_FP, offsetof(struct pt_regs, UCreg_fp)); main()
80 DEFINE(S_IP, offsetof(struct pt_regs, UCreg_ip)); main()
81 DEFINE(S_SP, offsetof(struct pt_regs, UCreg_sp)); main()
82 DEFINE(S_LR, offsetof(struct pt_regs, UCreg_lr)); main()
83 DEFINE(S_PC, offsetof(struct pt_regs, UCreg_pc)); main()
84 DEFINE(S_PSR, offsetof(struct pt_regs, UCreg_asr)); main()
85 DEFINE(S_OLD_R0, offsetof(struct pt_regs, UCreg_ORIG_00)); main()
86 DEFINE(S_FRAME_SIZE, sizeof(struct pt_regs)); main()
88 DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm)); main()
89 DEFINE(VMA_VM_FLAGS, offsetof(struct vm_area_struct, vm_flags)); main()
91 DEFINE(VM_EXEC, VM_EXEC); main()
93 DEFINE(PAGE_SZ, PAGE_SIZE); main()
95 DEFINE(SYS_ERROR0, 0x9f0000); main()
97 DEFINE(PBE_ADDRESS, offsetof(struct pbe, address)); main()
98 DEFINE(PBE_ORIN_ADDRESS, offsetof(struct pbe, orig_address)); main()
99 DEFINE(PBE_NEXT, offsetof(struct pbe, next)); main()
100 DEFINE(SWSUSP_CPU, offsetof(struct swsusp_arch_regs, \ main()
103 DEFINE(SWSUSP_FPSTATE, offsetof(struct swsusp_arch_regs, \ main()
107 DEFINE(DMA_BIDIRECTIONAL, DMA_BIDIRECTIONAL); main()
108 DEFINE(DMA_TO_DEVICE, DMA_TO_DEVICE); main()
109 DEFINE(DMA_FROM_DEVICE, DMA_FROM_DEVICE); main()
/linux-4.4.14/arch/x86/um/
H A Duser-offsets.c25 #define DEFINE(sym, val) \ macro
37 DEFINE(HOST_IP, EIP); foo()
38 DEFINE(HOST_SP, UESP); foo()
39 DEFINE(HOST_EFLAGS, EFL); foo()
40 DEFINE(HOST_AX, EAX); foo()
41 DEFINE(HOST_BX, EBX); foo()
42 DEFINE(HOST_CX, ECX); foo()
43 DEFINE(HOST_DX, EDX); foo()
44 DEFINE(HOST_SI, ESI); foo()
45 DEFINE(HOST_DI, EDI); foo()
46 DEFINE(HOST_BP, EBP); foo()
47 DEFINE(HOST_CS, CS); foo()
48 DEFINE(HOST_SS, SS); foo()
49 DEFINE(HOST_DS, DS); foo()
50 DEFINE(HOST_FS, FS); foo()
51 DEFINE(HOST_ES, ES); foo()
52 DEFINE(HOST_GS, GS); foo()
53 DEFINE(HOST_ORIG_AX, ORIG_EAX); foo()
55 DEFINE(HOST_FP_SIZE, sizeof(struct _fpstate) / sizeof(unsigned long)); foo()
86 DEFINE(UM_FRAME_SIZE, sizeof(struct user_regs_struct)); foo()
87 DEFINE(UM_POLLIN, POLLIN); foo()
88 DEFINE(UM_POLLPRI, POLLPRI); foo()
89 DEFINE(UM_POLLOUT, POLLOUT); foo()
91 DEFINE(UM_PROT_READ, PROT_READ); foo()
92 DEFINE(UM_PROT_WRITE, PROT_WRITE); foo()
93 DEFINE(UM_PROT_EXEC, PROT_EXEC); foo()
95 DEFINE(__NR_syscall_max, sizeof(syscalls) - 1); foo()
96 DEFINE(NR_syscalls, sizeof(syscalls)); foo()
/linux-4.4.14/arch/tile/kernel/
H A Dasm-offsets.c40 DEFINE(SINGLESTEP_STATE_BUFFER_OFFSET, foo()
42 DEFINE(SINGLESTEP_STATE_FLAGS_OFFSET, foo()
44 DEFINE(SINGLESTEP_STATE_ORIG_PC_OFFSET, foo()
46 DEFINE(SINGLESTEP_STATE_NEXT_PC_OFFSET, foo()
48 DEFINE(SINGLESTEP_STATE_BRANCH_NEXT_PC_OFFSET, foo()
50 DEFINE(SINGLESTEP_STATE_UPDATE_VALUE_OFFSET, foo()
53 DEFINE(THREAD_INFO_TASK_OFFSET, foo()
55 DEFINE(THREAD_INFO_FLAGS_OFFSET, foo()
57 DEFINE(THREAD_INFO_STATUS_OFFSET, foo()
59 DEFINE(THREAD_INFO_HOMECACHE_CPU_OFFSET, foo()
61 DEFINE(THREAD_INFO_PREEMPT_COUNT_OFFSET, foo()
63 DEFINE(THREAD_INFO_STEP_STATE_OFFSET, foo()
66 DEFINE(THREAD_INFO_UNALIGN_JIT_BASE_OFFSET, foo()
68 DEFINE(THREAD_INFO_UNALIGN_JIT_TMP_OFFSET, foo()
72 DEFINE(TASK_STRUCT_THREAD_KSP_OFFSET, foo()
74 DEFINE(TASK_STRUCT_THREAD_PC_OFFSET, foo()
77 DEFINE(HV_TOPOLOGY_WIDTH_OFFSET, foo()
79 DEFINE(HV_TOPOLOGY_HEIGHT_OFFSET, foo()
82 DEFINE(IRQ_CPUSTAT_SYSCALL_COUNT_OFFSET, foo()
/linux-4.4.14/include/linux/
H A Dkbuild.h4 #define DEFINE(sym, val) \ macro
10 DEFINE(sym, offsetof(struct str, mem))
H A Dpercpu-defs.h44 * NOTE! The sections for the DECLARE and for the DEFINE must match, lest
/linux-4.4.14/kernel/
H A Dbounds.c18 DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); foo()
19 DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); foo()
21 DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); foo()
23 DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t)); foo()
/linux-4.4.14/arch/h8300/kernel/
H A Dasm-offsets.c33 DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, main()
42 DEFINE(LER0, offsetof(struct pt_regs, er0) - sizeof(long)); main()
43 DEFINE(LER1, offsetof(struct pt_regs, er1) - sizeof(long)); main()
44 DEFINE(LER2, offsetof(struct pt_regs, er2) - sizeof(long)); main()
45 DEFINE(LER3, offsetof(struct pt_regs, er3) - sizeof(long)); main()
46 DEFINE(LER4, offsetof(struct pt_regs, er4) - sizeof(long)); main()
47 DEFINE(LER5, offsetof(struct pt_regs, er5) - sizeof(long)); main()
48 DEFINE(LER6, offsetof(struct pt_regs, er6) - sizeof(long)); main()
49 DEFINE(LORIG, offsetof(struct pt_regs, orig_er0) - sizeof(long)); main()
50 DEFINE(LSP, offsetof(struct pt_regs, sp) - sizeof(long)); main()
51 DEFINE(LCCR, offsetof(struct pt_regs, ccr) - sizeof(long)); main()
52 DEFINE(LVEC, offsetof(struct pt_regs, vector) - sizeof(long)); main()
54 DEFINE(LEXR, offsetof(struct pt_regs, exr) - sizeof(long)); main()
56 DEFINE(LRET, offsetof(struct pt_regs, pc) - sizeof(long)); main()
58 DEFINE(PT_PTRACED, PT_PTRACED); main()
/linux-4.4.14/arch/score/kernel/
H A Dasm-offsets.c83 DEFINE(PT_SIZE, sizeof(struct pt_regs)); output_ptreg_defines()
95 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); output_task_defines()
109 DEFINE(KERNEL_STACK_SIZE, THREAD_SIZE); output_thread_info_defines()
110 DEFINE(KERNEL_STACK_MASK, THREAD_MASK); output_thread_info_defines()
143 DEFINE(STRUCT_PAGE_SIZE, sizeof(struct page)); output_mm_defines()
150 DEFINE(_PAGE_SIZE, PAGE_SIZE); output_mm_defines()
151 DEFINE(_PAGE_SHIFT, PAGE_SHIFT); output_mm_defines()
153 DEFINE(_PGD_T_SIZE, sizeof(pgd_t)); output_mm_defines()
154 DEFINE(_PTE_T_SIZE, sizeof(pte_t)); output_mm_defines()
156 DEFINE(_PGD_ORDER, PGD_ORDER); output_mm_defines()
157 DEFINE(_PTE_ORDER, PTE_ORDER); output_mm_defines()
159 DEFINE(_PGDIR_SHIFT, PGDIR_SHIFT); output_mm_defines()
161 DEFINE(_PTRS_PER_PGD, PTRS_PER_PGD); output_mm_defines()
162 DEFINE(_PTRS_PER_PTE, PTRS_PER_PTE); output_mm_defines()
182 DEFINE(_SIGHUP, SIGHUP); output_signal_defined()
183 DEFINE(_SIGINT, SIGINT); output_signal_defined()
184 DEFINE(_SIGQUIT, SIGQUIT); output_signal_defined()
185 DEFINE(_SIGILL, SIGILL); output_signal_defined()
186 DEFINE(_SIGTRAP, SIGTRAP); output_signal_defined()
187 DEFINE(_SIGIOT, SIGIOT); output_signal_defined()
188 DEFINE(_SIGABRT, SIGABRT); output_signal_defined()
189 DEFINE(_SIGFPE, SIGFPE); output_signal_defined()
190 DEFINE(_SIGKILL, SIGKILL); output_signal_defined()
191 DEFINE(_SIGBUS, SIGBUS); output_signal_defined()
192 DEFINE(_SIGSEGV, SIGSEGV); output_signal_defined()
193 DEFINE(_SIGSYS, SIGSYS); output_signal_defined()
194 DEFINE(_SIGPIPE, SIGPIPE); output_signal_defined()
195 DEFINE(_SIGALRM, SIGALRM); output_signal_defined()
196 DEFINE(_SIGTERM, SIGTERM); output_signal_defined()
197 DEFINE(_SIGUSR1, SIGUSR1); output_signal_defined()
198 DEFINE(_SIGUSR2, SIGUSR2); output_signal_defined()
199 DEFINE(_SIGCHLD, SIGCHLD); output_signal_defined()
200 DEFINE(_SIGPWR, SIGPWR); output_signal_defined()
201 DEFINE(_SIGWINCH, SIGWINCH); output_signal_defined()
202 DEFINE(_SIGURG, SIGURG); output_signal_defined()
203 DEFINE(_SIGIO, SIGIO); output_signal_defined()
204 DEFINE(_SIGSTOP, SIGSTOP); output_signal_defined()
205 DEFINE(_SIGTSTP, SIGTSTP); output_signal_defined()
206 DEFINE(_SIGCONT, SIGCONT); output_signal_defined()
207 DEFINE(_SIGTTIN, SIGTTIN); output_signal_defined()
208 DEFINE(_SIGTTOU, SIGTTOU); output_signal_defined()
209 DEFINE(_SIGVTALRM, SIGVTALRM); output_signal_defined()
210 DEFINE(_SIGPROF, SIGPROF); output_signal_defined()
211 DEFINE(_SIGXCPU, SIGXCPU); output_signal_defined()
212 DEFINE(_SIGXFSZ, SIGXFSZ); output_signal_defined()
/linux-4.4.14/arch/openrisc/kernel/
H A Dasm-offsets.c45 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
46 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
47 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
48 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
49 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
50 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
53 DEFINE(TI_TASK, offsetof(struct thread_info, task)); main()
54 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); main()
55 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); main()
56 DEFINE(TI_KSP, offsetof(struct thread_info, ksp)); main()
58 DEFINE(PT_SIZE, sizeof(struct pt_regs)); main()
61 DEFINE(STACK_FRAME_OVERHEAD, STACK_FRAME_OVERHEAD); main()
62 DEFINE(INT_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs)); main()
64 DEFINE(NUM_USER_SEGMENTS, TASK_SIZE >> 28); main()
/linux-4.4.14/arch/cris/kernel/
H A Dasm-offsets.c17 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry)) main()
37 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry)) main()
43 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry)) main()
53 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry)) main()
56 DEFINE(LCLONE_VM, CLONE_VM); main()
57 DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED); main()
/linux-4.4.14/arch/metag/kernel/
H A Dasm-offsets.c12 DEFINE(THREAD_INFO_SIZE, sizeof(struct thread_info)); main()
/linux-4.4.14/arch/powerpc/lib/
H A Dxor_vmx.c29 #define DEFINE(V) \ macro
60 DEFINE(v1); xor_altivec_2()
61 DEFINE(v2); xor_altivec_2()
84 DEFINE(v1); xor_altivec_3()
85 DEFINE(v2); xor_altivec_3()
86 DEFINE(v3); xor_altivec_3()
113 DEFINE(v1); xor_altivec_4()
114 DEFINE(v2); xor_altivec_4()
115 DEFINE(v3); xor_altivec_4()
116 DEFINE(v4); xor_altivec_4()
146 DEFINE(v1); xor_altivec_5()
147 DEFINE(v2); xor_altivec_5()
148 DEFINE(v3); xor_altivec_5()
149 DEFINE(v4); xor_altivec_5()
150 DEFINE(v5); xor_altivec_5()
/linux-4.4.14/arch/mips/kernel/
H A Dasm-offsets.c72 DEFINE(PT_SIZE, sizeof(struct pt_regs)); output_ptreg_defines()
87 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); output_task_defines()
102 DEFINE(_THREAD_SIZE, THREAD_SIZE); output_thread_info_defines()
103 DEFINE(_THREAD_MASK, THREAD_MASK); output_thread_info_defines()
178 DEFINE(STRUCT_PAGE_SIZE, sizeof(struct page)); output_mm_defines()
185 DEFINE(_PGD_T_SIZE, sizeof(pgd_t)); output_mm_defines()
186 DEFINE(_PMD_T_SIZE, sizeof(pmd_t)); output_mm_defines()
187 DEFINE(_PTE_T_SIZE, sizeof(pte_t)); output_mm_defines()
189 DEFINE(_PGD_T_LOG2, PGD_T_LOG2); output_mm_defines()
191 DEFINE(_PMD_T_LOG2, PMD_T_LOG2); output_mm_defines()
193 DEFINE(_PTE_T_LOG2, PTE_T_LOG2); output_mm_defines()
195 DEFINE(_PGD_ORDER, PGD_ORDER); output_mm_defines()
197 DEFINE(_PMD_ORDER, PMD_ORDER); output_mm_defines()
199 DEFINE(_PTE_ORDER, PTE_ORDER); output_mm_defines()
201 DEFINE(_PMD_SHIFT, PMD_SHIFT); output_mm_defines()
202 DEFINE(_PGDIR_SHIFT, PGDIR_SHIFT); output_mm_defines()
204 DEFINE(_PTRS_PER_PGD, PTRS_PER_PGD); output_mm_defines()
205 DEFINE(_PTRS_PER_PMD, PTRS_PER_PMD); output_mm_defines()
206 DEFINE(_PTRS_PER_PTE, PTRS_PER_PTE); output_mm_defines()
208 DEFINE(_PAGE_SHIFT, PAGE_SHIFT); output_mm_defines()
209 DEFINE(_PAGE_SIZE, PAGE_SIZE); output_mm_defines()
252 DEFINE(_SIGHUP, SIGHUP); output_signal_defined()
253 DEFINE(_SIGINT, SIGINT); output_signal_defined()
254 DEFINE(_SIGQUIT, SIGQUIT); output_signal_defined()
255 DEFINE(_SIGILL, SIGILL); output_signal_defined()
256 DEFINE(_SIGTRAP, SIGTRAP); output_signal_defined()
257 DEFINE(_SIGIOT, SIGIOT); output_signal_defined()
258 DEFINE(_SIGABRT, SIGABRT); output_signal_defined()
259 DEFINE(_SIGEMT, SIGEMT); output_signal_defined()
260 DEFINE(_SIGFPE, SIGFPE); output_signal_defined()
261 DEFINE(_SIGKILL, SIGKILL); output_signal_defined()
262 DEFINE(_SIGBUS, SIGBUS); output_signal_defined()
263 DEFINE(_SIGSEGV, SIGSEGV); output_signal_defined()
264 DEFINE(_SIGSYS, SIGSYS); output_signal_defined()
265 DEFINE(_SIGPIPE, SIGPIPE); output_signal_defined()
266 DEFINE(_SIGALRM, SIGALRM); output_signal_defined()
267 DEFINE(_SIGTERM, SIGTERM); output_signal_defined()
268 DEFINE(_SIGUSR1, SIGUSR1); output_signal_defined()
269 DEFINE(_SIGUSR2, SIGUSR2); output_signal_defined()
270 DEFINE(_SIGCHLD, SIGCHLD); output_signal_defined()
271 DEFINE(_SIGPWR, SIGPWR); output_signal_defined()
272 DEFINE(_SIGWINCH, SIGWINCH); output_signal_defined()
273 DEFINE(_SIGURG, SIGURG); output_signal_defined()
274 DEFINE(_SIGIO, SIGIO); output_signal_defined()
275 DEFINE(_SIGSTOP, SIGSTOP); output_signal_defined()
276 DEFINE(_SIGTSTP, SIGTSTP); output_signal_defined()
277 DEFINE(_SIGCONT, SIGCONT); output_signal_defined()
278 DEFINE(_SIGTTIN, SIGTTIN); output_signal_defined()
279 DEFINE(_SIGTTOU, SIGTTOU); output_signal_defined()
280 DEFINE(_SIGVTALRM, SIGVTALRM); output_signal_defined()
281 DEFINE(_SIGPROF, SIGPROF); output_signal_defined()
282 DEFINE(_SIGXCPU, SIGXCPU); output_signal_defined()
283 DEFINE(_SIGXFSZ, SIGXFSZ); output_signal_defined()
322 DEFINE(PBE_SIZE, sizeof(struct pbe)); output_pbe_defines()
344 DEFINE(VCPU_ARCH_SIZE, sizeof(struct kvm_vcpu_arch)); output_kvm_defines()
451 DEFINE(COREBOOTCFG_SIZE, sizeof(struct core_boot_config)); output_cps_defines()
456 DEFINE(VPEBOOTCFG_SIZE, sizeof(struct vpe_boot_config)); output_cps_defines()
/linux-4.4.14/arch/x86/um/shared/sysdep/
H A Dkernel-offsets.h7 #define DEFINE(sym, val) \ macro
13 DEFINE(sym, offsetof(struct str, mem));
/linux-4.4.14/arch/sparc/kernel/
H A Dasm-offsets.c22 DEFINE(AOFF_thread_fork_kpsr, sparc32_foo()
49 DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread)); foo()
51 DEFINE(AOFF_mm_context, offsetof(struct mm_struct, context)); foo()
53 DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm)); foo()
55 /* DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); */ foo()
/linux-4.4.14/arch/c6x/kernel/
H A Dasm-offsets.c86 DEFINE(REGS__END, sizeof(struct pt_regs)); foo()
109 DEFINE(KTHREAD_SIZE, THREAD_SIZE); foo()
110 DEFINE(KTHREAD_SHIFT, THREAD_SHIFT); foo()
111 DEFINE(KTHREAD_START_SP, THREAD_START_SP); foo()
112 DEFINE(ENOSYS_, ENOSYS); foo()
113 DEFINE(NR_SYSCALLS_, __NR_syscalls); foo()
115 DEFINE(_TIF_SYSCALL_TRACE, (1<<TIF_SYSCALL_TRACE)); foo()
116 DEFINE(_TIF_NOTIFY_RESUME, (1<<TIF_NOTIFY_RESUME)); foo()
117 DEFINE(_TIF_SIGPENDING, (1<<TIF_SIGPENDING)); foo()
118 DEFINE(_TIF_NEED_RESCHED, (1<<TIF_NEED_RESCHED)); foo()
120 DEFINE(_TIF_ALLWORK_MASK, TIF_ALLWORK_MASK); foo()
121 DEFINE(_TIF_WORK_MASK, TIF_WORK_MASK); foo()
/linux-4.4.14/arch/mn10300/kernel/
H A Dasm-offsets.c60 DEFINE(REG__END, sizeof(struct pt_regs)); foo()
71 DEFINE(__THREAD_USING_FPU, THREAD_USING_FPU); foo()
72 DEFINE(__THREAD_HAS_FPU, THREAD_HAS_FPU); foo()
79 DEFINE(CLONE_VM_asm, CLONE_VM); foo()
80 DEFINE(CLONE_FS_asm, CLONE_FS); foo()
81 DEFINE(CLONE_FILES_asm, CLONE_FILES); foo()
82 DEFINE(CLONE_SIGHAND_asm, CLONE_SIGHAND); foo()
83 DEFINE(CLONE_UNTRACED_asm, CLONE_UNTRACED); foo()
84 DEFINE(SIGCHLD_asm, SIGCHLD); foo()
89 DEFINE(PAGE_SIZE_asm, PAGE_SIZE); foo()
103 DEFINE(__UART_XMIT_SIZE, UART_XMIT_SIZE); foo()
/linux-4.4.14/arch/x86/kernel/
H A Dasm-offsets_64.c66 DEFINE(__NR_syscall_max, sizeof(syscalls_64) - 1); main()
67 DEFINE(NR_syscalls, sizeof(syscalls_64)); main()
69 DEFINE(__NR_syscall_compat_max, sizeof(syscalls_ia32) - 1); main()
70 DEFINE(IA32_NR_syscalls, sizeof(syscalls_ia32)); main()
H A Dasm-offsets_32.c52 DEFINE(TSS_sysenter_sp0, offsetof(struct tss_struct, x86_tss.sp0) - foo()
73 DEFINE(__NR_syscall_max, sizeof(syscalls) - 1); foo()
74 DEFINE(NR_syscalls, sizeof(syscalls)); foo()
H A Dasm-offsets.c91 DEFINE(PTREGS_SIZE, sizeof(struct pt_regs)); common()
/linux-4.4.14/arch/frv/kernel/
H A Dasm-offsets.c60 DEFINE(REG__END, sizeof(struct pt_regs)); foo()
80 DEFINE(NR_PT_REGS, sizeof(struct pt_regs) / 4); foo()
81 DEFINE(NR_USER_INT_REGS, sizeof(struct user_int_regs) / 4); foo()
82 DEFINE(NR_USER_FPMEDIA_REGS, sizeof(struct user_fpmedia_regs) / 4); foo()
83 DEFINE(NR_USER_CONTEXT, sizeof(struct user_context) / 4); foo()
84 DEFINE(FRV_FRAME0_SIZE, sizeof(struct frv_frame0)); foo()
/linux-4.4.14/arch/hexagon/kernel/
H A Dasm-offsets.c41 DEFINE(_PAGE_SIZE, PAGE_SIZE); main()
42 DEFINE(_PAGE_SHIFT, PAGE_SHIFT); main()
74 DEFINE(_PT_REGS_SIZE, sizeof(struct pt_regs)); main()
81 DEFINE(_THREAD_SIZE, THREAD_SIZE); main()
94 DEFINE(_SWITCH_STACK_SIZE, sizeof(struct hexagon_switch_stack)); main()
/linux-4.4.14/arch/s390/kernel/
H A Dasm-offsets.c59 DEFINE(__PT_SIZE, sizeof(struct pt_regs)); main()
85 DEFINE(__CLOCK_REALTIME, CLOCK_REALTIME); main()
86 DEFINE(__CLOCK_MONOTONIC, CLOCK_MONOTONIC); main()
87 DEFINE(__CLOCK_REALTIME_COARSE, CLOCK_REALTIME_COARSE); main()
88 DEFINE(__CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_COARSE); main()
89 DEFINE(__CLOCK_THREAD_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID); main()
90 DEFINE(__CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC); main()
91 DEFINE(__CLOCK_COARSE_RES, LOW_RES_NSEC); main()
/linux-4.4.14/arch/nios2/kernel/
H A Dasm-offsets.c63 DEFINE(PT_REGS_SIZE, sizeof(struct pt_regs)); main()
78 DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack)); main()
/linux-4.4.14/scripts/mod/
H A Ddevicetable-offsets.c4 #define DEVID(devid) DEFINE(SIZE_##devid, sizeof(struct devid))
6 DEFINE(OFF_##devid##_##field, offsetof(struct devid, field))
/linux-4.4.14/drivers/s390/char/
H A Dvmur.h18 * both in SPOOL directory control statement and in CP DEFINE statement
/linux-4.4.14/drivers/char/
H A Dtlclk.c73 /* CLOCK TRANSMISSION DEFINE */
93 /* HARDWARE SWITCHING DEFINE */
97 /* HARDWARE SWITCHING MODE DEFINE */
101 /* ALARMS DEFINE */
107 /* INTERRUPT CAUSE DEFINE */
/linux-4.4.14/scripts/
H A Dtags.sh217 --regex-c='/(^\s)DEFINE\((\w*)/\2/v/' \
H A Dcheckpatch.pl590 (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(|
1458 print "DEFINE($1,$2)\n" if ($dbg_values > 1);
/linux-4.4.14/drivers/atm/
H A Diphase.h47 /************************ IADBG DEFINE *********************************/
155 /************************ IADBG DEFINE END ***************************/
1063 /******************* IDT77105 25MB/s PHY DEFINE *****************************/
1119 /*********************** SUNI_PM7345 PHY DEFINE HERE *********************/
1316 ///////////////////SUNI_PM7345 PHY DEFINE END /////////////////////////////
/linux-4.4.14/drivers/usb/chipidea/
H A Dci.h23 * DEFINE
/linux-4.4.14/arch/m68k/fpsp040/
H A Dslogn.S343 |--WE DEFINE F = 1.XXXXXX1, I.E. FIRST 7 BITS OF Y AND ATTACH A 1.
/linux-4.4.14/arch/m68k/ifpsp060/src/
H A Dfplsp.S8240 #--WE DEFINE F = 1.XXXXXX1, I.E. FIRST 7 BITS OF Y AND ATTACH A 1.
H A Dfpsp.S8346 #--WE DEFINE F = 1.XXXXXX1, I.E. FIRST 7 BITS OF Y AND ATTACH A 1.

Completed in 1355 milliseconds