• Home
  • Raw
  • Download

Lines Matching refs:hw

189 	if (bp->hw.target)  in hw_breakpoint_control()
190 regs = task_pt_regs(bp->hw.target); in hw_breakpoint_control()
224 if (bp->hw.target && test_tsk_thread_flag(bp->hw.target, TIF_LOAD_WATCH)) in hw_breakpoint_control()
240 if (bp->hw.target) in hw_breakpoint_control()
286 int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw) in arch_check_bp_in_kernelspace() argument
291 va = hw->address; in arch_check_bp_in_kernelspace()
292 len = get_hbp_len(hw->ctrl.len); in arch_check_bp_in_kernelspace()
349 struct arch_hw_breakpoint *hw) in arch_build_bp_info() argument
354 hw->ctrl.type = LOONGARCH_BREAKPOINT_EXECUTE; in arch_build_bp_info()
357 hw->ctrl.type = LOONGARCH_BREAKPOINT_LOAD; in arch_build_bp_info()
360 hw->ctrl.type = LOONGARCH_BREAKPOINT_STORE; in arch_build_bp_info()
363 hw->ctrl.type = LOONGARCH_BREAKPOINT_LOAD | LOONGARCH_BREAKPOINT_STORE; in arch_build_bp_info()
372 hw->ctrl.len = LOONGARCH_BREAKPOINT_LEN_1; in arch_build_bp_info()
375 hw->ctrl.len = LOONGARCH_BREAKPOINT_LEN_2; in arch_build_bp_info()
378 hw->ctrl.len = LOONGARCH_BREAKPOINT_LEN_4; in arch_build_bp_info()
381 hw->ctrl.len = LOONGARCH_BREAKPOINT_LEN_8; in arch_build_bp_info()
388 hw->address = attr->bp_addr; in arch_build_bp_info()
398 struct arch_hw_breakpoint *hw) in hw_breakpoint_arch_parse() argument
404 ret = arch_build_bp_info(bp, attr, hw); in hw_breakpoint_arch_parse()
408 if (hw->ctrl.type == LOONGARCH_BREAKPOINT_EXECUTE) { in hw_breakpoint_arch_parse()
410 hw->address &= ~alignment_mask; in hw_breakpoint_arch_parse()