Lines Matching refs:idx

141 					       unsigned long idx)  in ptrace_hbp_get_event()  argument
147 if (idx < ARM_MAX_BRP) in ptrace_hbp_get_event()
148 bp = tsk->thread.debug.hbp_break[idx]; in ptrace_hbp_get_event()
151 if (idx < ARM_MAX_WRP) in ptrace_hbp_get_event()
152 bp = tsk->thread.debug.hbp_watch[idx]; in ptrace_hbp_get_event()
161 unsigned long idx, in ptrace_hbp_set_event() argument
168 if (idx < ARM_MAX_BRP) { in ptrace_hbp_set_event()
169 tsk->thread.debug.hbp_break[idx] = bp; in ptrace_hbp_set_event()
174 if (idx < ARM_MAX_WRP) { in ptrace_hbp_set_event()
175 tsk->thread.debug.hbp_watch[idx] = bp; in ptrace_hbp_set_event()
186 unsigned long idx) in ptrace_hbp_create() argument
218 err = ptrace_hbp_set_event(note_type, tsk, idx, bp); in ptrace_hbp_create()
284 unsigned long idx, in ptrace_hbp_get_ctrl() argument
287 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_ctrl()
298 unsigned long idx, in ptrace_hbp_get_addr() argument
301 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_addr()
312 unsigned long idx) in ptrace_hbp_get_initialised_bp() argument
314 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_initialised_bp()
317 bp = ptrace_hbp_create(note_type, tsk, idx); in ptrace_hbp_get_initialised_bp()
324 unsigned long idx, in ptrace_hbp_set_ctrl() argument
332 bp = ptrace_hbp_get_initialised_bp(note_type, tsk, idx); in ptrace_hbp_set_ctrl()
349 unsigned long idx, in ptrace_hbp_set_addr() argument
356 bp = ptrace_hbp_get_initialised_bp(note_type, tsk, idx); in ptrace_hbp_set_addr()
378 int ret, idx = 0, offset, limit; in hw_break_get() local
403 ret = ptrace_hbp_get_addr(note_type, target, idx, &addr); in hw_break_get()
412 ret = ptrace_hbp_get_ctrl(note_type, target, idx, &ctrl); in hw_break_get()
427 idx++; in hw_break_get()
439 int ret, idx = 0, offset, limit; in hw_break_set() local
456 ret = ptrace_hbp_set_addr(note_type, target, idx, addr); in hw_break_set()
465 ret = ptrace_hbp_set_ctrl(note_type, target, idx, ctrl); in hw_break_set()
476 idx++; in hw_break_set()
686 unsigned int idx = start + i; in compat_gpr_get() local
689 switch (idx) { in compat_gpr_get()
700 reg = task_pt_regs(target)->regs[idx]; in compat_gpr_get()
741 unsigned int idx = start + i; in compat_gpr_set() local
757 switch (idx) { in compat_gpr_set()
768 newregs.regs[idx] = reg; in compat_gpr_set()
951 int err, idx = compat_ptrace_hbp_num_to_idx(num);; in compat_ptrace_hbp_get() local
954 err = ptrace_hbp_get_addr(note_type, tsk, idx, &addr); in compat_ptrace_hbp_get()
957 err = ptrace_hbp_get_ctrl(note_type, tsk, idx, &ctrl); in compat_ptrace_hbp_get()
972 int err, idx = compat_ptrace_hbp_num_to_idx(num); in compat_ptrace_hbp_set() local
976 err = ptrace_hbp_set_addr(note_type, tsk, idx, addr); in compat_ptrace_hbp_set()
979 err = ptrace_hbp_set_ctrl(note_type, tsk, idx, ctrl); in compat_ptrace_hbp_set()