Lines Matching refs:brk

758 static void set_breakpoint(int i, struct arch_hw_breakpoint *brk)  in set_breakpoint()  argument
761 __set_breakpoint(i, brk); in set_breakpoint()
805 static inline int set_dabr(struct arch_hw_breakpoint *brk) in set_dabr() argument
809 dabr = brk->address | (brk->type & HW_BRK_TYPE_DABR); in set_dabr()
810 dabrx = ((brk->type >> 3) & 0x7); in set_dabr()
830 static inline int set_breakpoint_8xx(struct arch_hw_breakpoint *brk) in set_breakpoint_8xx() argument
835 unsigned long start_addr = ALIGN_DOWN(brk->address, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
836 unsigned long end_addr = ALIGN(brk->address + brk->len, HW_BREAKPOINT_SIZE); in set_breakpoint_8xx()
847 if ((brk->type & HW_BRK_TYPE_RDWR) == 0) in set_breakpoint_8xx()
850 if ((brk->type & HW_BRK_TYPE_RDWR) == HW_BRK_TYPE_READ) in set_breakpoint_8xx()
852 if ((brk->type & HW_BRK_TYPE_RDWR) == HW_BRK_TYPE_WRITE) in set_breakpoint_8xx()
863 static void set_hw_breakpoint(int nr, struct arch_hw_breakpoint *brk) in set_hw_breakpoint() argument
867 set_dawr(nr, brk); in set_hw_breakpoint()
869 set_breakpoint_8xx(brk); in set_hw_breakpoint()
872 set_dabr(brk); in set_hw_breakpoint()
878 void __set_breakpoint(int nr, struct arch_hw_breakpoint *brk) in __set_breakpoint() argument
880 memcpy(this_cpu_ptr(&current_brk[nr]), brk, sizeof(*brk)); in __set_breakpoint()
881 set_hw_breakpoint(nr, brk); in __set_breakpoint()
899 struct arch_hw_breakpoint brk = {0}; in suspend_breakpoints() local
906 set_hw_breakpoint(i, &brk); in suspend_breakpoints()