/haiku/src/add-ons/kernel/drivers/disk/nvme/compat/ |
H A D | nvme_atomic.h | 49 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 D | tls.c | 34 int32 next = atomic_add(&gNextSlot, 1);
|
/haiku/src/system/libroot/os/arch/m68k/ |
H A D | tls.c | 32 int32 next = atomic_add(&gNextSlot, 1);
|
H A D | atomic.S | 23 /* int atomic_add(int *value, int increment) 25 FUNCTION(atomic_add): 34 FUNCTION_END(atomic_add)
|
/haiku/headers/private/graphics/et6x00/ |
H A D | DriverInterface.h | 31 #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 D | device.cpp | 35 atomic_add(&controller->opened, 1); 73 atomic_add(&controller->opened, -1);
|
/haiku/headers/private/graphics/intel_810/ |
H A D | DriverInterface.h | 39 if (atomic_add(&count, 1) > 0) 46 if (atomic_add(&count, -1) > 1)
|
/haiku/src/kits/translation/ |
H A D | Translator.cpp | 35 if (atomic_add(&fRefCount, 1) > 0) 52 int32 oldValue = atomic_add(&fRefCount, -1);
|
/haiku/src/add-ons/kernel/drivers/audio/hda/ |
H A D | device.cpp | 35 atomic_add(&controller->opened, 1); 78 atomic_add(&controller->opened, -1);
|
/haiku/headers/private/print/ |
H A D | BeUtils.h | 67 atomic_add(&fRefCount, 1); 71 if (atomic_add(&fRefCount, -1) == 1) {
|
/haiku/src/kits/shared/ |
H A D | WeakReferenceable.cpp | 47 if (atomic_add(&fUseCount, -1) == 1) { 66 atomic_add(&fUseCount, 1);
|
/haiku/headers/private/kernel/arch/x86/32/ |
H A D | atomic.h | 91 #define atomic_add atomic_add_inline macro
|
/haiku/src/system/libroot/os/arch/x86/ |
H A D | tls.c | 33 int32 next = atomic_add(&gNextSlot, 1);
|
/haiku/src/system/libroot/os/arch/arm64/ |
H A D | tls.c | 35 int32 next = atomic_add(&gNextSlot, 1);
|
/haiku/src/tests/system/kernel/ |
H A D | spinlock_contention.cpp | 56 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 D | DriverInterface.h | 40 if (atomic_add(&count, 1) > 0) 47 if (atomic_add(&count, -1) > 1)
|
/haiku/src/kits/support/ |
H A D | Locker.cpp | 139 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 D | Locker.cpp | 139 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 D | atomic.c | 36 atomic_add(int32 *value, int32 addValue) function 121 return atomic_add((int32 *)value, addValue);
|
/haiku/src/tests/servers/app/newerClipping/ |
H A D | MultiLocker.cpp | 139 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 D | lock.h | 189 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 D | smp.h | 236 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 D | hpet.cpp | 432 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 D | midi.cpp | 69 atomic_add(&cards[ix].midi.count, 1); 93 atomic_add(&card->midi.count, -1);
|
/haiku/src/system/kernel/fs/ |
H A D | unused_vnodes.h | 88 int32 checkCount = atomic_add(&sUnusedVnodesCheckCount, 1); 109 int32 index = atomic_add(&sNextHotVnodeIndex, 1);
|