Lines Matching refs:num
364 static int ptrace_hbp_num_to_idx(long num) in ptrace_hbp_num_to_idx() argument
366 if (num < 0) in ptrace_hbp_num_to_idx()
367 num = (ARM_MAX_BRP << 1) - num; in ptrace_hbp_num_to_idx()
368 return (num - 1) >> 1; in ptrace_hbp_num_to_idx()
378 long num = (idx << 1) + 1; in ptrace_hbp_idx_to_num() local
379 return num > mid ? mid - num : num; in ptrace_hbp_idx_to_num()
390 long num; in ptrace_hbptriggered() local
398 num = (i == ARM_MAX_HBP_SLOTS) ? 0 : ptrace_hbp_idx_to_num(i); in ptrace_hbptriggered()
401 info.si_errno = (int)num; in ptrace_hbptriggered()
472 static int ptrace_gethbpregs(struct task_struct *tsk, long num, in ptrace_gethbpregs() argument
480 if (num == 0) { in ptrace_gethbpregs()
483 idx = ptrace_hbp_num_to_idx(num); in ptrace_gethbpregs()
504 if (num & 0x1) in ptrace_gethbpregs()
518 static int ptrace_sethbpregs(struct task_struct *tsk, long num, in ptrace_sethbpregs() argument
527 if (num == 0) in ptrace_sethbpregs()
529 else if (num < 0) in ptrace_sethbpregs()
534 idx = ptrace_hbp_num_to_idx(num); in ptrace_sethbpregs()
557 if (num & 0x1) { in ptrace_sethbpregs()