Searched refs:local_xchg (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/arch/x86/events/intel/ |
H A D | bts.c | 194 old = local_xchg(&buf->head, head); in bts_update() 326 local_xchg(&buf->data_size, in bts_event_stop() 329 local_xchg(&buf->data_size, 0)); in bts_event_stop() 492 perf_aux_output_end(&bts->handle, local_xchg(&buf->data_size, 0)); in intel_bts_interrupt()
|
H A D | pt.c | 1502 perf_aux_output_end(&pt->handle, local_xchg(&buf->data_size, 0)); in intel_pt_interrupt() 1631 local_xchg(&buf->data_size, in pt_event_stop() 1633 perf_aux_output_end(&pt->handle, local_xchg(&buf->data_size, 0)); in pt_event_stop()
|
/openbmc/linux/include/asm-generic/ |
H A D | local.h | 46 #define local_xchg(l, n) atomic_long_xchg((&(l)->a), (n)) macro
|
H A D | local64.h | 55 #define local64_xchg(l, n) local_xchg((&(l)->a), (n))
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | local.h | 65 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n))) macro
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | local.h | 70 #define local_xchg(l, n) (atomic_long_xchg((&(l)->a), (n))) macro
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | local.h | 135 #define local_xchg(l, n) (xchg(&((l)->a.counter), (n))) macro
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | local.h | 104 static __inline__ long local_xchg(local_t *l, long n) in local_xchg() function
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | local.h | 108 #define local_xchg(l, n) (atomic_long_xchg((&(l)->a), (n))) macro
|
/openbmc/linux/kernel/events/ |
H A D | ring_buffer.c | 248 lost_event.lost = local_xchg(&rb->lost, 0); in __perf_output_begin()
|