Searched refs:atomic_add (Results 26 - 50 of 235) sorted by relevance

12345678910

/haiku/src/add-ons/kernel/drivers/disk/nvme/compat/
H A Dnvme_atomic.h49 atomic_add(v, inc);
56 atomic_add(v, -dec);
77 return atomic_add(v, inc);
84 return atomic_add(v, -dec);
/haiku/src/system/libroot/os/arch/arm/
H A Dtls.c34 int32 next = atomic_add(&gNextSlot, 1);
/haiku/src/system/libroot/os/arch/m68k/
H A Dtls.c32 int32 next = atomic_add(&gNextSlot, 1);
H A Datomic.S23 /* int atomic_add(int *value, int increment)
25 FUNCTION(atomic_add):
34 FUNCTION_END(atomic_add)
/haiku/headers/private/graphics/et6x00/
H A DDriverInterface.h31 #define AQUIRE_BEN(x) if((atomic_add(&(x.ben), 1)) >= 1) acquire_sem(x.sem);
32 #define RELEASE_BEN(x) if((atomic_add(&(x.ben), -1)) > 1) release_sem(x.sem);
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/
H A Ddevice.cpp35 atomic_add(&controller->opened, 1);
73 atomic_add(&controller->opened, -1);
/haiku/headers/private/graphics/intel_810/
H A DDriverInterface.h39 if (atomic_add(&count, 1) > 0)
46 if (atomic_add(&count, -1) > 1)
/haiku/src/kits/translation/
H A DTranslator.cpp35 if (atomic_add(&fRefCount, 1) > 0)
52 int32 oldValue = atomic_add(&fRefCount, -1);
/haiku/src/add-ons/kernel/drivers/audio/hda/
H A Ddevice.cpp35 atomic_add(&controller->opened, 1);
78 atomic_add(&controller->opened, -1);
/haiku/headers/private/print/
H A DBeUtils.h67 atomic_add(&fRefCount, 1);
71 if (atomic_add(&fRefCount, -1) == 1) {
/haiku/src/kits/shared/
H A DWeakReferenceable.cpp47 if (atomic_add(&fUseCount, -1) == 1) {
66 atomic_add(&fUseCount, 1);
/haiku/headers/private/kernel/arch/x86/32/
H A Datomic.h91 #define atomic_add atomic_add_inline macro
/haiku/src/system/libroot/os/arch/x86/
H A Dtls.c33 int32 next = atomic_add(&gNextSlot, 1);
/haiku/src/system/libroot/os/arch/arm64/
H A Dtls.c35 int32 next = atomic_add(&gNextSlot, 1);
/haiku/src/tests/system/kernel/
H A Dspinlock_contention.cpp56 while (atomic_add(&lock->lock, 1) != 0) {
80 if ((uint32)atomic_add(&lock->count_low, count) + count
82 atomic_add(&lock->count_high, 1);
155 while (atomic_add(&lock->lock, -1) != 0)
/haiku/headers/private/graphics/3dfx/
H A DDriverInterface.h40 if (atomic_add(&count, 1) > 0)
47 if (atomic_add(&count, -1) > 1)
/haiku/src/kits/support/
H A DLocker.cpp139 int32 oldBenaphoreCount = atomic_add(&fBenaphoreCount, -1);
233 int32 oldBenaphoreCount = atomic_add(&fBenaphoreCount, 1);
262 // NOT doing the atomic_add(&count, -1) if the semaphore
266 // (now) useless atomic_add().
/haiku/src/build/libbe/support/
H A DLocker.cpp139 int32 oldBenaphoreCount = atomic_add(&fBenaphoreCount, -1);
233 int32 oldBenaphoreCount = atomic_add(&fBenaphoreCount, 1);
262 // NOT doing the atomic_add(&count, -1) if the semaphore
266 // (now) useless atomic_add().
/haiku/src/system/libroot/os/
H A Datomic.c36 atomic_add(int32 *value, int32 addValue) function
121 return atomic_add((int32 *)value, addValue);
/haiku/src/tests/servers/app/newerClipping/
H A DMultiLocker.cpp139 int32 current_count = atomic_add(&fReadCount, 1);
181 if (atomic_add(&fLockCount, 1) >= 1) {
192 int32 readers = atomic_add(&fReadCount, -LARGE_NUMBER);
233 int32 current_count = atomic_add(&fReadCount, -1);
275 int32 readersWaiting = atomic_add(&fReadCount, LARGE_NUMBER) + LARGE_NUMBER;
289 if (atomic_add(&fLockCount, -1) > 1) {
/haiku/headers/private/kernel/
H A Dlock.h189 int32 oldCount = atomic_add(&lock->count, 1);
204 int32 oldCount = atomic_add(&lock->count, 1);
218 int32 oldCount = atomic_add(&lock->count, -1);
238 if (atomic_add(&lock->count, -1) < 0)
264 if (atomic_add(&lock->count, -1) < 0)
275 if (atomic_add(&lock->count, 1) < -1)
H A Dsmp.h236 uint32 previous = atomic_add(&lock->lock, 1);
253 atomic_add(&lock->lock, -1);
270 atomic_add((int32*)&lock->count, 1);
278 atomic_add((int32*)&lock->count, 1);
284 atomic_add((int32*)&lock->count, 1);
/haiku/src/add-ons/kernel/drivers/timer/
H A Dhpet.cpp432 if (atomic_add(&sOpenCount, 1) != 0) {
433 atomic_add(&sOpenCount, -1);
444 atomic_add(&sOpenCount, -1);
451 atomic_add(&sOpenCount, -1);
473 atomic_add(&sOpenCount, -1);
485 atomic_add(&sOpenCount, -1);
/haiku/src/add-ons/kernel/drivers/audio/echo/
H A Dmidi.cpp69 atomic_add(&cards[ix].midi.count, 1);
93 atomic_add(&card->midi.count, -1);
/haiku/src/system/kernel/fs/
H A Dunused_vnodes.h88 int32 checkCount = atomic_add(&sUnusedVnodesCheckCount, 1);
109 int32 index = atomic_add(&sNextHotVnodeIndex, 1);

Completed in 115 milliseconds

12345678910