Searched refs:local_xchg (Results 1 – 11 of 11) sorted by relevance
/Linux-v4.19/arch/x86/events/intel/ |
D | bts.c | 194 old = local_xchg(&buf->head, head); in bts_update() 320 local_xchg(&buf->data_size, in bts_event_stop() 323 local_xchg(&buf->data_size, 0)); in bts_event_stop() 486 perf_aux_output_end(&bts->handle, local_xchg(&buf->data_size, 0)); in intel_bts_interrupt()
|
D | pt.c | 1276 perf_aux_output_end(&pt->handle, local_xchg(&buf->data_size, 0)); in intel_pt_interrupt() 1406 local_xchg(&buf->data_size, in pt_event_stop() 1408 perf_aux_output_end(&pt->handle, local_xchg(&buf->data_size, 0)); in pt_event_stop()
|
/Linux-v4.19/include/asm-generic/ |
D | local.h | 45 #define local_xchg(l, n) atomic_long_xchg((&(l)->a), (n)) macro
|
D | local64.h | 46 #define local64_xchg(l, n) local_xchg((&(l)->a), (n))
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | local.h | 57 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n))) macro
|
/Linux-v4.19/arch/x86/include/asm/ |
D | local.h | 126 #define local_xchg(l, n) (xchg(&((l)->a.counter), (n))) macro
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | local.h | 93 static __inline__ long local_xchg(local_t *l, long n) in local_xchg() function
|
/Linux-v4.19/arch/mips/include/asm/ |
D | local.h | 122 #define local_xchg(l, n) (atomic_long_xchg((&(l)->a), (n))) macro
|
/Linux-v4.19/drivers/hwtracing/coresight/ |
D | coresight-tmc-etf.c | 366 handle->head = local_xchg(&buf->data_size, in tmc_reset_etf_buffer() 375 size = local_xchg(&buf->data_size, 0); in tmc_reset_etf_buffer()
|
D | coresight-etb10.c | 332 handle->head = local_xchg(&buf->data_size, in etb_reset_buffer() 342 size = local_xchg(&buf->data_size, 0); in etb_reset_buffer()
|
/Linux-v4.19/kernel/events/ |
D | ring_buffer.c | 215 lost_event.lost = local_xchg(&rb->lost, 0); in __perf_output_begin() 368 if (WARN_ON_ONCE(local_xchg(&rb->aux_nest, 1))) in perf_aux_output_begin()
|