Lines Matching refs:hw
214 int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw) in arch_check_bp_in_kernelspace() argument
219 va = hw->address; in arch_check_bp_in_kernelspace()
220 len = arch_bp_generic_len(hw->len); in arch_check_bp_in_kernelspace()
232 struct arch_hw_breakpoint *hw) in arch_build_bp_info() argument
234 hw->address = attr->bp_addr; in arch_build_bp_info()
235 hw->mask = 0; in arch_build_bp_info()
240 hw->type = X86_BREAKPOINT_WRITE; in arch_build_bp_info()
243 hw->type = X86_BREAKPOINT_RW; in arch_build_bp_info()
256 hw->type = X86_BREAKPOINT_EXECUTE; in arch_build_bp_info()
263 hw->len = X86_BREAKPOINT_LEN_X; in arch_build_bp_info()
274 hw->len = X86_BREAKPOINT_LEN_1; in arch_build_bp_info()
277 hw->len = X86_BREAKPOINT_LEN_2; in arch_build_bp_info()
280 hw->len = X86_BREAKPOINT_LEN_4; in arch_build_bp_info()
284 hw->len = X86_BREAKPOINT_LEN_8; in arch_build_bp_info()
304 hw->mask = attr->bp_len - 1; in arch_build_bp_info()
305 hw->len = X86_BREAKPOINT_LEN_1; in arch_build_bp_info()
316 struct arch_hw_breakpoint *hw) in hw_breakpoint_arch_parse() argument
322 ret = arch_build_bp_info(bp, attr, hw); in hw_breakpoint_arch_parse()
326 switch (hw->len) { in hw_breakpoint_arch_parse()
329 if (hw->mask) in hw_breakpoint_arch_parse()
330 align = hw->mask; in hw_breakpoint_arch_parse()
352 if (hw->address & align) in hw_breakpoint_arch_parse()
502 if (bp->hw.info.type == X86_BREAKPOINT_EXECUTE) in hw_breakpoint_handler()