• Home
  • Raw
  • Download

Lines Matching refs:offsetof

59 #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
129 [0] = offsetof(struct pt_regs, ax),
130 [1] = offsetof(struct pt_regs, dx),
131 [2] = offsetof(struct pt_regs, cx)
133 [0] = offsetof(struct pt_regs, di),
134 [1] = offsetof(struct pt_regs, si),
135 [2] = offsetof(struct pt_regs, dx),
136 [3] = offsetof(struct pt_regs, cx),
137 [4] = offsetof(struct pt_regs, r8),
138 [5] = offsetof(struct pt_regs, r9)
200 BUILD_BUG_ON(offsetof(struct pt_regs, bx) != 0); in pt_regs_access()
210 if (offset != offsetof(struct user_regs_struct, gs)) in get_segment_reg()
240 case offsetof(struct user_regs_struct, cs): in set_segment_reg()
241 case offsetof(struct user_regs_struct, ss): in set_segment_reg()
249 case offsetof(struct user_regs_struct, gs): in set_segment_reg()
265 BUILD_BUG_ON(offsetof(struct pt_regs, r15) != 0); in pt_regs_access()
277 case offsetof(struct user_regs_struct, fs): in get_segment_reg()
284 case offsetof(struct user_regs_struct, gs): in get_segment_reg()
290 case offsetof(struct user_regs_struct, ds): in get_segment_reg()
296 case offsetof(struct user_regs_struct, es): in get_segment_reg()
303 case offsetof(struct user_regs_struct, cs): in get_segment_reg()
304 case offsetof(struct user_regs_struct, ss): in get_segment_reg()
320 case offsetof(struct user_regs_struct,fs): in set_segment_reg()
334 case offsetof(struct user_regs_struct,gs): in set_segment_reg()
348 case offsetof(struct user_regs_struct,ds): in set_segment_reg()
353 case offsetof(struct user_regs_struct,es): in set_segment_reg()
362 case offsetof(struct user_regs_struct,cs): in set_segment_reg()
370 case offsetof(struct user_regs_struct,ss): in set_segment_reg()
421 case offsetof(struct user_regs_struct, cs): in putreg()
422 case offsetof(struct user_regs_struct, ds): in putreg()
423 case offsetof(struct user_regs_struct, es): in putreg()
424 case offsetof(struct user_regs_struct, fs): in putreg()
425 case offsetof(struct user_regs_struct, gs): in putreg()
426 case offsetof(struct user_regs_struct, ss): in putreg()
429 case offsetof(struct user_regs_struct, flags): in putreg()
433 case offsetof(struct user_regs_struct,fs_base): in putreg()
444 case offsetof(struct user_regs_struct,gs_base): in putreg()
463 case offsetof(struct user_regs_struct, cs): in getreg()
464 case offsetof(struct user_regs_struct, ds): in getreg()
465 case offsetof(struct user_regs_struct, es): in getreg()
466 case offsetof(struct user_regs_struct, fs): in getreg()
467 case offsetof(struct user_regs_struct, gs): in getreg()
468 case offsetof(struct user_regs_struct, ss): in getreg()
471 case offsetof(struct user_regs_struct, flags): in getreg()
475 case offsetof(struct user_regs_struct, fs_base): { in getreg()
490 case offsetof(struct user_regs_struct, gs_base): { in getreg()
871 else if (addr >= offsetof(struct user, u_debugreg[0]) && in arch_ptrace()
872 addr <= offsetof(struct user, u_debugreg[7])) { in arch_ptrace()
873 addr -= offsetof(struct user, u_debugreg[0]); in arch_ptrace()
887 else if (addr >= offsetof(struct user, u_debugreg[0]) && in arch_ptrace()
888 addr <= offsetof(struct user, u_debugreg[7])) { in arch_ptrace()
889 addr -= offsetof(struct user, u_debugreg[0]); in arch_ptrace()
978 case offsetof(struct user32, regs.l): \
982 case offsetof(struct user32, regs.rs): \
984 offsetof(struct user_regs_struct, rs), \
1011 case offsetof(struct user32, regs.orig_eax): in putreg32()
1024 case offsetof(struct user32, regs.eflags): in putreg32()
1027 case offsetof(struct user32, u_debugreg[0]) ... in putreg32()
1028 offsetof(struct user32, u_debugreg[7]): in putreg32()
1029 regno -= offsetof(struct user32, u_debugreg[0]); in putreg32()
1049 case offsetof(struct user32, regs.l): \
1053 case offsetof(struct user32, regs.rs): \
1055 offsetof(struct user_regs_struct, rs)); \
1082 case offsetof(struct user32, regs.eflags): in getreg32()
1086 case offsetof(struct user32, u_debugreg[0]) ... in getreg32()
1087 offsetof(struct user32, u_debugreg[7]): in getreg32()
1088 regno -= offsetof(struct user32, u_debugreg[0]); in getreg32()
1182 addr < offsetof(struct user_regs_struct, cs)) in x32_arch_ptrace()
1188 else if (addr >= offsetof(struct user, u_debugreg[0]) && in x32_arch_ptrace()
1189 addr <= offsetof(struct user, u_debugreg[7])) { in x32_arch_ptrace()
1190 addr -= offsetof(struct user, u_debugreg[0]); in x32_arch_ptrace()
1203 addr < offsetof(struct user_regs_struct, cs)) in x32_arch_ptrace()
1208 else if (addr >= offsetof(struct user, u_debugreg[0]) && in x32_arch_ptrace()
1209 addr <= offsetof(struct user, u_debugreg[7])) { in x32_arch_ptrace()
1210 addr -= offsetof(struct user, u_debugreg[0]); in x32_arch_ptrace()