| /linux/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()
|
| /linux/kernel/printk/ |
| H A D | printk_ringbuffer.c | 751 if (atomic_long_try_cmpxchg(&data_ring->tail_lpos, &tail_lpos, in data_push_tail() 966 } while (!atomic_long_try_cmpxchg(&desc_ring->head_id, &head_id, in desc_reserve() 990 if (!atomic_long_try_cmpxchg(&desc->state_var, &prev_state_val, in desc_reserve() 1084 } while (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &begin_lpos, in data_alloc() 1163 if (!atomic_long_try_cmpxchg(&data_ring->head_lpos, &head_lpos, in data_realloc() 1331 if (!atomic_long_try_cmpxchg(&d->state_var, &prev_state_val, in desc_reopen_last() 1738 if (!atomic_long_try_cmpxchg(&d->state_var, &prev_state_val, in _prb_commit()
|
| H A D | nbcon.c | 208 if (atomic_long_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_seq), &nbcon_seq, in nbcon_seq_try_update() 1030 atomic_long_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_prev_seq), &ulseq, in nbcon_emit_next_record()
|
| /linux/include/linux/ |
| H A D | file_ref.h | 184 if (likely(atomic_long_try_cmpxchg(&ref->refcnt, &old, FILE_REF_DEAD))) in file_ref_put_close()
|
| /linux/include/asm-generic/ |
| H A D | local.h | 45 #define local_try_cmpxchg(l, po, n) atomic_long_try_cmpxchg((&(l)->a), (po), (n))
|
| /linux/kernel/ |
| H A D | ucount.c | 209 } while (!atomic_long_try_cmpxchg(v, &c, c+1)); in atomic_long_inc_below()
|
| /linux/kernel/locking/ |
| H A D | rwsem.c | 221 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned() 245 } while (!atomic_long_try_cmpxchg(&sem->owner, &owner, in rwsem_set_nonspinnable()
|
| /linux/arch/s390/kvm/ |
| H A D | pci.c | 216 } while (!atomic_long_try_cmpxchg(&user->locked_vm, &cur_pages, new_pages)); in account_mem()
|
| /linux/lib/ |
| H A D | sbitmap.c | 547 while (!atomic_long_try_cmpxchg(ptr, &val, in __sbitmap_queue_get_batch()
|
| /linux/mm/kasan/ |
| H A D | kasan_test_c.c | 826 KUNIT_EXPECT_KASAN_FAIL(test, atomic_long_try_cmpxchg(unsafe, safe, 42)); in kasan_atomics_helper() 833 KUNIT_EXPECT_KASAN_FAIL(test, atomic_long_try_cmpxchg(safe, unsafe, 42)); in kasan_atomics_helper()
|
| /linux/mm/ |
| H A D | zswap.c | 1265 } while (!atomic_long_try_cmpxchg( in zswap_shrinker_count()
|
| H A D | swapfile.c | 1164 if (!atomic_long_try_cmpxchg(&si->inuse_pages, &pages, in del_from_avail_list() 1207 if (atomic_long_try_cmpxchg(&si->inuse_pages, &pages, in add_to_avail_list()
|
| /linux/kernel/dma/ |
| H A D | swiotlb.c | 960 } while (!atomic_long_try_cmpxchg(&mem->used_hiwater, in inc_used_and_hiwater()
|
| /linux/io_uring/ |
| H A D | rsrc.c | 54 } while (!atomic_long_try_cmpxchg(&user->locked_vm, in __io_account_mem()
|
| /linux/include/linux/atomic/ |
| H A D | atomic-instrumented.h | 4431 atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) in atomic_long_try_cmpxchg() function
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 947 } while (!atomic_long_try_cmpxchg(&pages->source_user->locked_vm, in incr_user_locked_vm()
|
| /linux/kernel/sched/ |
| H A D | ext.c | 1406 if (atomic_long_try_cmpxchg(&p->scx.ops_state, &opss, in ops_dequeue() 1986 if (likely(atomic_long_try_cmpxchg(&p->scx.ops_state, &opss, in finish_dispatch()
|
| /linux/drivers/block/zram/ |
| H A D | zram_drv.c | 180 } while (!atomic_long_try_cmpxchg(&zram->stats.max_used_pages, in update_used_max()
|
| /linux/net/core/ |
| H A D | skbuff.c | 1637 } while (!atomic_long_try_cmpxchg(&user->locked_vm, &old_pg, new_pg)); in mm_account_pinned_pages()
|