Lines Matching defs:data
82 int ptrace_set_debugreg(struct task_struct *task, unsigned long addr, unsigned long data)
101 if ((data & ~0x7UL) >= TASK_SIZE)
106 * passed together with the data address, fitting the design of the
117 if (data && !(data & HW_BRK_TYPE_TRANSLATE))
119 hw_brk.address = data & (~HW_BRK_TYPE_DABR);
120 hw_brk.type = (data & HW_BRK_TYPE_DABR) | HW_BRK_TYPE_PRIV_ALL;
123 set_bp = (data) && (hw_brk.type & HW_BRK_TYPE_RDWR);
211 * We only support one data breakpoint
272 long ppc_del_hwdebug(struct task_struct *child, long data)
279 if (data < 1 || data > nr_wp_slots())
283 bp = thread->ptrace_bps[data - 1];
286 thread->ptrace_bps[data - 1] = NULL;
292 if (!(child->thread.hw_brk[data - 1].flags & HW_BRK_FLAG_DISABLED) &&
293 child->thread.hw_brk[data - 1].address == 0)
296 child->thread.hw_brk[data - 1].address = 0;
297 child->thread.hw_brk[data - 1].type = 0;
298 child->thread.hw_brk[data - 1].flags = 0;