Searched refs:atomic_long_add_return (Results 1 – 13 of 13) sorted by relevance
/linux/drivers/tty/ |
H A D | tty_ldsem.c | 86 count = atomic_long_add_return(adjust, &sem->count); in __ldsem_wake_readers() 110 long count = atomic_long_add_return(LDSEM_ACTIVE_BIAS, &sem->count); in writer_trylock() 213 atomic_long_add_return(-LDSEM_WAIT_BIAS, &sem->count); in down_read_failed() 271 atomic_long_add_return(-LDSEM_WAIT_BIAS, &sem->count); in down_write_failed() 302 count = atomic_long_add_return(LDSEM_READ_BIAS, &sem->count); in __ldsem_down_read_nested() 321 count = atomic_long_add_return(LDSEM_WRITE_BIAS, &sem->count); in __ldsem_down_write_nested() 378 count = atomic_long_add_return(-LDSEM_READ_BIAS, &sem->count); in ldsem_up_read() 392 count = atomic_long_add_return(-LDSEM_WRITE_BIAS, &sem->count); in ldsem_up_write()
|
/linux/mm/ |
H A D | page_counter.c | 84 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge() 136 * The atomic_long_add_return() implies a full memory in page_counter_try_charge() 142 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
|
H A D | shrinker.c | 279 atomic_long_add_return(nr, &unit->nr_deferred[shrinker_id_to_offset(shrinker->id)]); in add_nr_deferred_memcg() 366 return atomic_long_add_return(nr, &shrinker->nr_deferred[nid]); in add_nr_deferred()
|
H A D | page-writeback.c | 1277 WARN_ON_ONCE(atomic_long_add_return(delta, in wb_update_write_bandwidth()
|
/linux/include/asm-generic/ |
H A D | local.h | 40 #define local_add_return(i, l) atomic_long_add_return((i), (&(l)->a))
|
/linux/kernel/ |
H A D | ucount.c | 254 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts() 304 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
|
/linux/scripts/coccinelle/api/ |
H A D | atomic_as_refcounter.cocci | 121 x = atomic_long_add_return@p1(-1, ...);
|
/linux/kernel/locking/ |
H A D | rwsem.c | 1058 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()
|
/linux/kernel/futex/ |
H A D | core.c | 1600 ret = atomic_long_add_return(count - LONG_MAX - 1, &mm->futex_atomic); in __futex_ref_atomic_end()
|
/linux/fs/ |
H A D | pipe.c | 768 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()
|
/linux/kernel/dma/ |
H A D | swiotlb.c | 955 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater()
|
/linux/include/linux/atomic/ |
H A D | atomic-instrumented.h | 3265 * atomic_long_add_return() - atomic add with full ordering 3276 atomic_long_add_return(long i, atomic_long_t *v) in atomic_long_add_return() function
|
/linux/kernel/bpf/ |
H A D | core.c | 1062 if (atomic_long_add_return(size, &bpf_jit_current) > READ_ONCE(bpf_jit_limit)) { in bpf_jit_charge_modmem()
|