Home
last modified time | relevance | path

Searched refs:atomic_long_add_return (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/drivers/tty/
Dtty_ldsem.c86 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/
Dpage_counter.c77 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()
Dpage-writeback.c1223 WARN_ON_ONCE(atomic_long_add_return(delta, in wb_update_write_bandwidth()
Dvmscan.c405 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()
Dvmalloc.c1826 nr_lazy = atomic_long_add_return((va->va_end - va->va_start) >> in free_vmap_area_noflush()
/linux-6.6.21/include/asm-generic/
Dlocal.h40 #define local_add_return(i, l) atomic_long_add_return((i), (&(l)->a))
/linux-6.6.21/kernel/
Ducount.c270 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/
Datomic_as_refcounter.cocci121 x = atomic_long_add_return@p1(-1, ...);
/linux-6.6.21/kernel/locking/
Drwsem.c1061 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()
/linux-6.6.21/fs/
Dpipe.c759 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()
/linux-6.6.21/kernel/dma/
Dswiotlb.c936 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater()
/linux-6.6.21/include/linux/atomic/
Datomic-instrumented.h3248 atomic_long_add_return(long i, atomic_long_t *v) in atomic_long_add_return() function
/linux-6.6.21/kernel/bpf/
Dcore.c1001 if (atomic_long_add_return(size, &bpf_jit_current) > READ_ONCE(bpf_jit_limit)) { in bpf_jit_charge_modmem()