Lines Matching defs:pt_regs

112  * If pt_regs.syscallno == NO_SYSCALL, then the thread is not executing
175 * exception. Note that sizeof(struct pt_regs) has to be a multiple of 16 (for
176 * stack alignment). struct user_pt_regs must form a prefix of struct pt_regs.
178 struct pt_regs {
206 static inline bool in_syscall(struct pt_regs const *regs)
211 static inline void forget_syscall(struct pt_regs *regs)
216 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
248 static inline unsigned long user_stack_pointer(struct pt_regs *regs)
256 extern unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
261 * @regs: pt_regs from which register value is gotten
265 * The @offset is the offset of the register in struct pt_regs.
268 static inline u64 regs_get_register(struct pt_regs *regs, unsigned int offset)
279 case offsetof(struct pt_regs, sp) >> 3:
282 case offsetof(struct pt_regs, pc) >> 3:
285 case offsetof(struct pt_regs, pstate) >> 3:
299 static inline unsigned long pt_regs_read_reg(const struct pt_regs *regs, int r)
308 static inline void pt_regs_write_reg(struct pt_regs *regs, int r,
316 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)
321 static inline unsigned long regs_return_value(struct pt_regs *regs)
336 static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc)
343 * @regs: pt_regs of that context
354 static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs,
367 static inline unsigned long instruction_pointer(struct pt_regs *regs)
371 static inline void instruction_pointer_set(struct pt_regs *regs,
377 static inline unsigned long frame_pointer(struct pt_regs *regs)
384 static inline void procedure_link_pointer_set(struct pt_regs *regs,
390 extern unsigned long profile_pc(struct pt_regs *regs);