Lines Matching refs:hw
124 int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw) in arch_check_bp_in_kernelspace() argument
129 va = hw->address; in arch_check_bp_in_kernelspace()
130 len = get_hbp_len(hw->len); in arch_check_bp_in_kernelspace()
176 struct arch_hw_breakpoint *hw) in arch_build_bp_info() argument
178 hw->address = attr->bp_addr; in arch_build_bp_info()
183 hw->len = SH_BREAKPOINT_LEN_1; in arch_build_bp_info()
186 hw->len = SH_BREAKPOINT_LEN_2; in arch_build_bp_info()
189 hw->len = SH_BREAKPOINT_LEN_4; in arch_build_bp_info()
192 hw->len = SH_BREAKPOINT_LEN_8; in arch_build_bp_info()
201 hw->type = SH_BREAKPOINT_READ; in arch_build_bp_info()
204 hw->type = SH_BREAKPOINT_WRITE; in arch_build_bp_info()
207 hw->type = SH_BREAKPOINT_RW; in arch_build_bp_info()
221 struct arch_hw_breakpoint *hw) in hw_breakpoint_arch_parse() argument
226 ret = arch_build_bp_info(bp, attr, hw); in hw_breakpoint_arch_parse()
232 switch (hw->len) { in hw_breakpoint_arch_parse()
253 if (hw->address & align) in hw_breakpoint_arch_parse()
340 if (!arch_check_bp_in_kernelspace(&bp->hw.info)) { in hw_breakpoint_handler()