Lines Matching refs:value
168 static inline bool invalid_selector(u16 value) in invalid_selector() argument
170 return unlikely(value != 0 && (value & SEGMENT_RPL_MASK) != USER_RPL); in invalid_selector()
201 unsigned long offset, u16 value) in set_segment_reg() argument
209 if (invalid_selector(value)) in set_segment_reg()
224 if (unlikely(value == 0)) in set_segment_reg()
229 *pt_regs_access(task_pt_regs(task), offset) = value; in set_segment_reg()
233 task->thread.gs = value; in set_segment_reg()
291 unsigned long offset, u16 value) in set_segment_reg() argument
299 if (invalid_selector(value)) in set_segment_reg()
310 task->thread.fsindex = value; in set_segment_reg()
313 task->thread.gsindex = value; in set_segment_reg()
316 task->thread.ds = value; in set_segment_reg()
319 task->thread.es = value; in set_segment_reg()
326 if (unlikely(value == 0)) in set_segment_reg()
328 task_pt_regs(task)->cs = value; in set_segment_reg()
331 if (unlikely(value == 0)) in set_segment_reg()
333 task_pt_regs(task)->ss = value; in set_segment_reg()
355 static int set_flags(struct task_struct *task, unsigned long value) in set_flags() argument
364 if (value & X86_EFLAGS_TF) in set_flags()
367 value |= X86_EFLAGS_TF; in set_flags()
369 regs->flags = (regs->flags & ~FLAG_MASK) | (value & FLAG_MASK); in set_flags()
375 unsigned long offset, unsigned long value) in putreg() argument
384 return set_segment_reg(child, offset, value); in putreg()
387 return set_flags(child, value); in putreg()
391 if (value >= TASK_SIZE_MAX) in putreg()
393 x86_fsbase_write_task(child, value); in putreg()
396 if (value >= TASK_SIZE_MAX) in putreg()
398 x86_gsbase_write_task(child, value); in putreg()
403 *pt_regs_access(task_pt_regs(child), offset) = value; in putreg()
864 regs->q = value; break
870 value); \
873 static int putreg32(struct task_struct *child, unsigned regno, u32 value) in putreg32() argument
894 value); in putreg32()
897 x86_fsgsbase_read_task(child, value); in putreg32()
903 value); in putreg32()
906 x86_fsgsbase_read_task(child, value); in putreg32()
932 regs->orig_ax = value; in putreg32()
938 return set_flags(child, value); in putreg32()
943 return ptrace_set_debugreg(child, regno / 4, value); in putreg32()