Lines Matching refs:dr7
77 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type) in decode_dr7() argument
79 int bp_info = dr7 >> (DR_CONTROL_SHIFT + bpnum * DR_CONTROL_SIZE); in decode_dr7()
84 return (dr7 >> (bpnum * DR_ENABLE_SIZE)) & 0x3; in decode_dr7()
99 unsigned long *dr7; in arch_install_hw_breakpoint() local
119 dr7 = this_cpu_ptr(&cpu_dr7); in arch_install_hw_breakpoint()
120 *dr7 |= encode_dr7(i, info->len, info->type); in arch_install_hw_breakpoint()
128 set_debugreg(*dr7, 7); in arch_install_hw_breakpoint()
147 unsigned long dr7; in arch_uninstall_hw_breakpoint() local
164 dr7 = this_cpu_read(cpu_dr7); in arch_uninstall_hw_breakpoint()
165 dr7 &= ~__encode_dr7(i, info->len, info->type); in arch_uninstall_hw_breakpoint()
167 set_debugreg(dr7, 7); in arch_uninstall_hw_breakpoint()
177 this_cpu_write(cpu_dr7, dr7); in arch_uninstall_hw_breakpoint()