/kernel/linux/linux-5.10/drivers/tty/ |
H A D | tty_ldsem.c | 90 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 114 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 170 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() 245 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) in down_write_failed() 351 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_READ_BIAS)) { in ldsem_down_read_trylock() 377 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_WRITE_BIAS)) { in ldsem_down_write_trylock()
|
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | tty_ldsem.c | 90 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 114 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 170 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() 245 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) in down_write_failed() 351 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_READ_BIAS)) { in ldsem_down_read_trylock() 377 if (atomic_long_try_cmpxchg(&sem->count, &count, count + LDSEM_WRITE_BIAS)) { in ldsem_down_write_trylock()
|
/kernel/linux/linux-5.10/kernel/printk/ |
H A D | printk_ringbuffer.c | 748 if (atomic_long_try_cmpxchg(&data_ring->tail_lpos, &tail_lpos, in data_push_tail() 963 } while (!atomic_long_try_cmpxchg(&desc_ring->head_id, &head_id, in desc_reserve() 987 if (!atomic_long_try_cmpxchg(&desc->state_var, &prev_state_val, in desc_reserve() 1068 } while (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &begin_lpos, in data_alloc() 1137 if (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &head_lpos, in data_realloc() 1297 if (!atomic_long_try_cmpxchg(&d->state_var, &prev_state_val, in desc_reopen_last() 1603 if (!atomic_long_try_cmpxchg(&d->state_var, &prev_state_val, in _prb_commit()
|
/kernel/linux/linux-6.6/kernel/printk/ |
H A D | printk_ringbuffer.c | 750 if (atomic_long_try_cmpxchg(&data_ring->tail_lpos, &tail_lpos, in data_push_tail() 965 } while (!atomic_long_try_cmpxchg(&desc_ring->head_id, &head_id, in desc_reserve() 989 if (!atomic_long_try_cmpxchg(&desc->state_var, &prev_state_val, in desc_reserve() 1070 } while (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &begin_lpos, in data_alloc() 1139 if (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &head_lpos, in data_realloc() 1299 if (!atomic_long_try_cmpxchg(&d->state_var, &prev_state_val, in desc_reopen_last() 1607 if (!atomic_long_try_cmpxchg(&d->state_var, &prev_state_val, in _prb_commit()
|
/kernel/linux/linux-6.6/include/asm-generic/ |
H A D | local.h | 45 #define local_try_cmpxchg(l, po, n) atomic_long_try_cmpxchg((&(l)->a), (po), (n))
|
/kernel/linux/linux-5.10/include/asm-generic/ |
H A D | atomic-long.h | 435 atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) in atomic_long_try_cmpxchg() function 929 atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) in atomic_long_try_cmpxchg() function
|
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | rwsem.c | 245 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned() 269 } while (!atomic_long_try_cmpxchg(&sem->owner, &owner, in rwsem_set_nonspinnable()
|
/kernel/linux/linux-6.6/kernel/locking/ |
H A D | rwsem.c | 213 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned() 237 } while (!atomic_long_try_cmpxchg(&sem->owner, &owner, in rwsem_set_nonspinnable()
|
/kernel/linux/linux-6.6/lib/ |
H A D | sbitmap.c | 514 while (!atomic_long_try_cmpxchg(ptr, &val, in __sbitmap_queue_get_batch()
|
/kernel/linux/linux-6.6/io_uring/ |
H A D | rsrc.c | 56 } while (!atomic_long_try_cmpxchg(&user->locked_vm, in __io_account_mem()
|
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | swiotlb.c | 941 } while (!atomic_long_try_cmpxchg(&mem->used_hiwater, in inc_used_and_hiwater()
|
/kernel/linux/linux-6.6/include/linux/atomic/ |
H A D | atomic-instrumented.h | 4385 * atomic_long_try_cmpxchg() - atomic compare and exchange with full ordering 4398 atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) in atomic_long_try_cmpxchg() function
|
/kernel/linux/linux-6.6/drivers/block/zram/ |
H A D | zram_drv.c | 132 } while (!atomic_long_try_cmpxchg(&zram->stats.max_used_pages, in update_used_max()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | skbuff.c | 1518 } while (!atomic_long_try_cmpxchg(&user->locked_vm, &old_pg, new_pg)); in mm_account_pinned_pages()
|