Lines Matching refs:brk
760 static void set_breakpoint(int i, struct arch_hw_breakpoint *brk) in set_breakpoint() argument
763 __set_breakpoint(i, brk); in set_breakpoint()
807 static inline int set_dabr(struct arch_hw_breakpoint *brk) in set_dabr() argument
811 dabr = brk->address | (brk->type & HW_BRK_TYPE_DABR); in set_dabr()
812 dabrx = ((brk->type >> 3) & 0x7); in set_dabr()
832 static inline int set_breakpoint_8xx(struct arch_hw_breakpoint *brk) in set_breakpoint_8xx() argument
837 unsigned long start_addr = ALIGN_DOWN(brk->address, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
838 unsigned long end_addr = ALIGN(brk->address + brk->len, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
849 if ((brk->type & HW_BRK_TYPE_RDWR) == 0) in set_breakpoint_8xx()
852 if ((brk->type & HW_BRK_TYPE_RDWR) == HW_BRK_TYPE_READ) in set_breakpoint_8xx()
854 if ((brk->type & HW_BRK_TYPE_RDWR) == HW_BRK_TYPE_WRITE) in set_breakpoint_8xx()
865 void __set_breakpoint(int nr, struct arch_hw_breakpoint *brk) in __set_breakpoint() argument
867 memcpy(this_cpu_ptr(¤t_brk[nr]), brk, sizeof(*brk)); in __set_breakpoint()
871 set_dawr(nr, brk); in __set_breakpoint()
873 set_breakpoint_8xx(brk); in __set_breakpoint()
876 set_dabr(brk); in __set_breakpoint()