Home
last modified time | relevance | path

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

/linux-6.15/drivers/tty/
H A 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()
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-6.15/mm/
H A Dpage_counter.c84 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
142 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
H A Dshrinker.c279 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 Dpage-writeback.c1278 WARN_ON_ONCE(atomic_long_add_return(delta, in wb_update_write_bandwidth()
H A Dvmalloc.c2358 nr_lazy = atomic_long_add_return(va_size(va) >> PAGE_SHIFT, in free_vmap_area_noflush()
/linux-6.15/include/asm-generic/
H A Dlocal.h40 #define local_add_return(i, l) atomic_long_add_return((i), (&(l)->a))
/linux-6.15/kernel/
H A Ducount.c256 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts()
306 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
/linux-6.15/scripts/coccinelle/api/
H A Datomic_as_refcounter.cocci121 x = atomic_long_add_return@p1(-1, ...);
/linux-6.15/kernel/locking/
H A Drwsem.c1059 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()
/linux-6.15/fs/
H A Dpipe.c769 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()
/linux-6.15/kernel/dma/
H A Dswiotlb.c955 new_used = atomic_long_add_return(nslots, &mem->total_used); in inc_used_and_hiwater()
/linux-6.15/include/linux/atomic/
H A Datomic-instrumented.h3276 atomic_long_add_return(long i, atomic_long_t *v) in atomic_long_add_return() function
/linux-6.15/kernel/bpf/
H A Dcore.c1055 if (atomic_long_add_return(size, &bpf_jit_current) > READ_ONCE(bpf_jit_limit)) { in bpf_jit_charge_modmem()