Searched refs:atomic_long_add_return (Results 1 – 13 of 13) sorted by relevance
/linux-6.6.21/drivers/tty/ |
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() 395 count = atomic_long_add_return(-LDSEM_READ_BIAS, &sem->count); in ldsem_up_read() 409 count = atomic_long_add_return(-LDSEM_WRITE_BIAS, &sem->count); in ldsem_up_write()
|
/linux-6.6.21/mm/ |
D | page_counter.c | 77 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge() 119 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
|
D | page-writeback.c | 1223 WARN_ON_ONCE(atomic_long_add_return(delta, in wb_update_write_bandwidth()
|
D | vmscan.c | 405 return atomic_long_add_return(nr, &info->nr_deferred[shrinker->id]); in add_nr_deferred_memcg() 590 return atomic_long_add_return(nr, &shrinker->nr_deferred[nid]); in add_nr_deferred()
|
D | vmalloc.c | 1826 nr_lazy = atomic_long_add_return((va->va_end - va->va_start) >> in free_vmap_area_noflush()
|
/linux-6.6.21/include/asm-generic/ |
D | local.h | 40 #define local_add_return(i, l) atomic_long_add_return((i), (&(l)->a))
|
/linux-6.6.21/kernel/ |
D | ucount.c | 270 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts() 319 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
|
/linux-6.6.21/scripts/coccinelle/api/ |
D | atomic_as_refcounter.cocci | 121 x = atomic_long_add_return@p1(-1, ...);
|
/linux-6.6.21/kernel/locking/ |
D | rwsem.c | 1061 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()
|
/linux-6.6.21/fs/ |
D | pipe.c | 759 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()
|
/linux-6.6.21/kernel/dma/ |
D | swiotlb.c | 936 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater()
|
/linux-6.6.21/include/linux/atomic/ |
D | atomic-instrumented.h | 3248 atomic_long_add_return(long i, atomic_long_t *v) in atomic_long_add_return() function
|
/linux-6.6.21/kernel/bpf/ |
D | core.c | 1001 if (atomic_long_add_return(size, &bpf_jit_current) > READ_ONCE(bpf_jit_limit)) { in bpf_jit_charge_modmem()
|