• Home
  • Raw
  • Download

Lines Matching refs:pt_regs

12 struct pt_regs {  struct
56 struct pt_regs { argument
102 extern unsigned long profile_pc(struct pt_regs *regs); argument
105 convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
106 extern void send_sigtrap(struct pt_regs *regs, int error_code, int si_code);
109 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value()
114 static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc) in regs_set_return_value()
128 static __always_inline int user_mode(struct pt_regs *regs) in user_mode()
137 static inline int v8086_mode(struct pt_regs *regs) in v8086_mode()
146 static inline bool user_64bit_mode(struct pt_regs *regs) in user_64bit_mode()
168 static inline bool any_64bit_mode(struct pt_regs *regs) in any_64bit_mode()
181 static inline bool ip_within_syscall_gap(struct pt_regs *regs) in ip_within_syscall_gap()
195 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer()
200 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer()
205 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
211 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer()
216 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer()
221 static inline void user_stack_pointer_set(struct pt_regs *regs, in user_stack_pointer_set()
227 static __always_inline bool regs_irqs_disabled(struct pt_regs *regs) in regs_irqs_disabled()
235 #define MAX_REG_OFFSET (offsetof(struct pt_regs, ss))
246 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register()
253 if (offset == offsetof(struct pt_regs, cs) || in regs_get_register()
254 offset == offsetof(struct pt_regs, ss) || in regs_get_register()
255 offset == offsetof(struct pt_regs, ds) || in regs_get_register()
256 offset == offsetof(struct pt_regs, es) || in regs_get_register()
257 offset == offsetof(struct pt_regs, fs) || in regs_get_register()
258 offset == offsetof(struct pt_regs, gs)) { in regs_get_register()
274 static inline int regs_within_kernel_stack(struct pt_regs *regs, in regs_within_kernel_stack()
289 static inline unsigned long *regs_get_kernel_stack_nth_addr(struct pt_regs *regs, unsigned int n) in regs_get_kernel_stack_nth_addr()
312 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, in regs_get_kernel_stack_nth()
339 static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs, in regs_get_kernel_argument()
344 offsetof(struct pt_regs, ax), in regs_get_kernel_argument()
345 offsetof(struct pt_regs, dx), in regs_get_kernel_argument()
346 offsetof(struct pt_regs, cx), in regs_get_kernel_argument()
349 offsetof(struct pt_regs, di), in regs_get_kernel_argument()
350 offsetof(struct pt_regs, si), in regs_get_kernel_argument()
351 offsetof(struct pt_regs, dx), in regs_get_kernel_argument()
352 offsetof(struct pt_regs, cx), in regs_get_kernel_argument()
353 offsetof(struct pt_regs, r8), in regs_get_kernel_argument()
354 offsetof(struct pt_regs, r9), in regs_get_kernel_argument()