/haiku/headers/private/graphics/s3/ |
H A D | DriverInterface.h | 39 if (atomic_add(&count, 1) > 0) 46 if (atomic_add(&count, -1) > 1)
|
/haiku/src/add-ons/kernel/file_systems/packagefs/util/ |
H A D | StringPool.h | 110 return atomic_add(&fReferenceCount, 1) == 0; 115 if (atomic_add(&fReferenceCount, -1) == 1)
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/ |
H A D | KernelDebug.cpp | 92 if (atomic_add(&sCommandsAdded, 1) > 0) 108 if (atomic_add(&sCommandsAdded, -1) > 1)
|
/haiku/src/system/kernel/ |
H A D | smp.cpp | 130 int32 index = (uint32)atomic_add(&sLastIndex, 1) % NUM_LAST_CALLERS; 311 atomic_add(&lock->failed_try_acquire, 1); 627 uint32 previous = atomic_add(&lock->lock, 1); 666 uint32 previous = atomic_add(&lock->lock, -1); 672 atomic_add(&lock->lock, -1); 683 atomic_add((int32*)&lock->count, 1); 692 atomic_add((int32*)&lock->count, 1); 699 atomic_add((int32*)&lock->count, 1); 839 atomic_add(&gCPU[currentCPU].ici_counter, 1); 859 if (atomic_add( [all...] |
/haiku/src/add-ons/kernel/network/stack/ |
H A D | device_interfaces.cpp | 67 atomic_add((int32*)&device->stats.receive.dropped, 1); 74 atomic_add((int32*)&device->stats.receive.packets, 1); 78 atomic_add((int32*)&device->stats.receive.dropped, 1); 84 atomic_add((int32*)&device->stats.receive.errors, 1); 307 if (interface == NULL || atomic_add(&interface->ref_count, 1) == 0) 392 if (atomic_add(&interface->ref_count, -1) != 1) 432 if (atomic_add(&interface->ref_count, 1) != 0) 454 if (atomic_add(&interface->ref_count, 1) != 0) 740 atomic_add(&interface->monitor_count, 1); 766 atomic_add( [all...] |
/haiku/src/tests/add-ons/kernel/file_systems/bfs/bufferPool/ |
H A D | main.cpp | 19 int32 id = atomic_add(&gID, 1);
|
/haiku/src/system/kernel/scheduler/ |
H A D | scheduler_cpu.h | 413 atomic_add(&fCurrentLoad, load); 415 atomic_add(&fLoad, load); 432 atomic_add(&fCurrentLoad, -load); 434 atomic_add(&fLoad, -load); 453 atomic_add(&fCurrentLoad, delta); 454 atomic_add(&fLoad, delta);
|
/haiku/headers/private/graphics/matrox/ |
H A D | DriverInterface.h | 36 #define AQUIRE_BEN(x) if((atomic_add(&(x.ben), 1)) >= 1) acquire_sem(x.sem); 37 #define RELEASE_BEN(x) if((atomic_add(&(x.ben), -1)) > 1) release_sem(x.sem);
|
/haiku/headers/private/graphics/neomagic/ |
H A D | DriverInterface.h | 33 #define AQUIRE_BEN(x) if((atomic_add(&(x.ben), 1)) >= 1) acquire_sem(x.sem); 34 #define RELEASE_BEN(x) if((atomic_add(&(x.ben), -1)) > 1) release_sem(x.sem);
|
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | midi.c | 104 atomic_add(&cards[ix].midi.count, 1); 130 if (atomic_add(&cards[ix].midi.count, -1) == 1) {
|
/haiku/src/add-ons/kernel/drivers/audio/emuxki/ |
H A D | midi.c | 124 atomic_add(&cards[ix].midi.count, 1); 150 if (atomic_add(&cards[ix].midi.count, -1) == 1) {
|
/haiku/src/add-ons/kernel/file_systems/netfs/shared/ |
H A D | RequestConnection.cpp | 152 atomic_add(&fTerminationCount, 1); 182 if (atomic_add(&fTerminationCount, 1) == 0 && fRequestHandler) {
|
/haiku/src/tests/add-ons/kernel/network/ |
H A D | userland_modules.cpp | 111 atomic_add(&m->addon->ref_count, 1); 113 if (atomic_add(&m->ref_count, 1) == 0) { 136 if (atomic_add(&m->ref_count, -1) <= 1) 144 if (atomic_add(&m->addon->ref_count, -1) > 1) 257 atomic_add(&mlc->ma->ref_count, -1); 322 atomic_add(&mlc->ma->ref_count, 1); 356 atomic_add(&mlc->ma->ref_count, -1); 471 m->id = atomic_add(&g_next_module_id, 1);
|
/haiku/src/kits/storage/mime/ |
H A D | MimeSnifferAddonManager.cpp | 46 atomic_add(&fReferenceCount, 1); 51 if (atomic_add(&fReferenceCount, -1) == 1)
|
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_atomic32.cpp | 55 atomic_add(int32 *value, int32 addValue) function 143 int32 oldValue = atomic_add(value, addValue);
|
/haiku/src/kits/midi2/ |
H A D | MidiEndpoint.cpp | 120 int32 old = atomic_add(&fRefCount, -1); 147 atomic_add(&fRefCount, 1);
|
/haiku/headers/private/graphics/ati/ |
H A D | DriverInterface.h | 40 if (atomic_add(&count, 1) > 0) 47 if (atomic_add(&count, -1) > 1)
|
/haiku/src/apps/mediaplayer/playlist/ |
H A D | PlaylistItem.cpp | 52 atomic_add(&sInstanceCount, 1); 61 atomic_add(&sInstanceCount, -1);
|
/haiku/src/system/libroot/posix/pthread/ |
H A D | pthread_barrier.cpp | 104 if (atomic_add((int32*)&barrier->waiter_count, 1) == (barrier->waiter_max - 1)) { 125 if (atomic_add((int32*)&barrier->waiter_count, 1) == -1) {
|
/haiku/src/tools/fs_shell/ |
H A D | atomic.cpp | 37 return atomic_add((int32*)value, addValue);
|
/haiku/src/servers/launch/ |
H A D | Worker.cpp | 41 atomic_add(&sWorkerCount, 1);
|
/haiku/src/build/libroot/ |
H A D | atomic.cpp | 40 atomic_add(int32 *value, int32 addValue) function
|
/haiku/src/kits/media/ |
H A D | SharedBufferList.cpp | 69 if (atomic_add(&sRefCount, 1) > 0 && sList != NULL) 107 if (atomic_add(&sRefCount, -1) == 1) 144 if (atomic_add(&fAtom, 1) > 0) { 159 if (atomic_add(&fAtom, -1) > 1)
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_common.cpp | 106 atomic_add(&sIgnoreInterrupts, 1); 119 atomic_add(&sIgnoreInterrupts, -1); 246 atomic_add(&sIgnoreInterrupts, 1); 280 atomic_add(&sIgnoreInterrupts, -1);
|
/haiku/src/add-ons/kernel/drivers/network/ether/wb840/ |
H A D | device.c | 217 atomic_add(&device->txLock, 1); 231 atomic_add(&device->txLock, -1); 240 atomic_add(&device->txLock, -1); 267 atomic_add(&device->txLock, -1);
|