Searched refs:atomic_add (Results 126 - 150 of 235) sorted by relevance

12345678910

/haiku/src/add-ons/kernel/drivers/network/ether/etherpci/
H A Detherpci.c1443 atomic_add(&data->inrw, 1);
1445 atomic_add(&data->inrw, -1);
1454 atomic_add(&data->inrw, -1);
1463 atomic_add(&data->inrw, -1);
1648 atomic_add(&data->inrw, 1);
1650 atomic_add(&data->inrw, -1);
1658 atomic_add(&data->inrw, -1);
1680 atomic_add(&data->inrw, -1);
/haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/
H A DDavicomDevice.cpp210 while (atomic_add(&fInsideNotify, 0) != 0)
449 while (atomic_add(&fInsideNotify, 0) != 0)
854 atomic_add(&device->fInsideNotify, 1);
856 atomic_add(&device->fInsideNotify, -1);
868 atomic_add(&device->fInsideNotify, -1);
/haiku/src/add-ons/kernel/network/stack/
H A Dstack.cpp187 atomic_add(&ref_count, 1);
194 if (atomic_add(&ref_count, -1) > 1)
267 if (atomic_add(&ref_count, 1) > 0) {
269 atomic_add(&ref_count, -1);
308 if (atomic_add(&ref_count, -1) > 1)
H A Dnet_buffer.cpp752 int32 current = atomic_add(&sAllocatedDataHeaderCount, 1) + 1;
757 atomic_add(&sEverAllocatedDataHeaderCount, 1);
767 int32 current = atomic_add(&sAllocatedNetBufferCount, 1) + 1;
772 atomic_add(&sEverAllocatedNetBufferCount, 1);
783 atomic_add(&sAllocatedDataHeaderCount, -1);
794 atomic_add(&sAllocatedNetBufferCount, -1);
826 int32 refCount = atomic_add(&header->ref_count, -1);
839 int32 refCount = atomic_add(&header->ref_count, 1);
/haiku/src/kits/media/
H A DMediaNode.cpp154 if (atomic_add(&fRefCount,1) == 0) {
168 if (atomic_add(&fRefCount, -1) == 1) {
986 return atomic_add(&BMediaNode::_m_changeTag,1);
H A DBufferGroup.cpp158 atomic_add(&fBufferCount, 1);
/haiku/src/system/kernel/scheduler/
H A Dscheduler_cpu.cpp435 atomic_add(&fThreadCount, 1);
445 atomic_add(&fThreadCount, 1);
460 atomic_add(&fThreadCount, -1);
H A Dscheduler_profiler.cpp63 atomic_add((int32*)&function->fCalled, 1);
/haiku/src/system/kernel/locks/
H A Duser_mutex.cpp272 atomic_add(&entry->ref_count, 1);
282 atomic_add(&entry->ref_count, 1);
307 if (atomic_add(&entry->ref_count, -1) != 1)
/haiku/src/add-ons/kernel/generic/mpu401/
H A Dmpu401.c213 atomic_add(&mpu_device->count, 1);
239 atomic_add(&mpu_device->count, -1);
/haiku/src/kits/game/
H A DDirectWindow.cpp527 if (atomic_add(&casted->fDirectLock, 1) > 0) {
549 if (atomic_add(&casted->fDirectLock, -1) > 1)
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/
H A DDevice.cpp162 if (atomic_add(&fInterruptsNest, 1) == 0) {
198 if (atomic_add(&fInterruptsNest, -1) == 1) {
/haiku/src/servers/print/
H A DPrintServerApp.cpp168 if (atomic_add(&fReferences, 1) == 0)
176 if (atomic_add(&fReferences, -1) == 1)
/haiku/src/system/kernel/messaging/
H A DMessagingService.cpp106 if (atomic_add(&fHeader->lock_counter, 1) == 0)
116 if (atomic_add(&fHeader->lock_counter, -1) > 1)
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_keyboard.cpp417 atomic_add(&sKeyboardOpenCount, 1);
432 if (atomic_add(&sKeyboardOpenCount, -1) == 1) {
/haiku/src/kits/tracker/
H A DUtilities.h305 if (atomic_add(&fCount, -1) <= 0)
313 if (atomic_add(&fCount, 1) < 0)
/haiku/src/system/kernel/disk_device_manager/
H A DKDiskSystem.cpp398 return atomic_add(&fNextID, 1);
/haiku/src/system/libroot/posix/
H A Dsyslog.cpp66 if (atomic_add(&lock, 1) == 0) {
/haiku/src/system/kernel/fs/
H A DEntryCache.cpp202 const int32 index = atomic_add(&fGenerations[fCurrentGeneration].next_index, 1);
/haiku/headers/cpp/std/
H A Dbastring.h69 #ifndef atomic_add
70 extern "C" __haiku_int32 atomic_add(__haiku_int32* value,
87 charT* grab () { if (selfish) return clone (); atomic_add((__haiku_int32*) &ref, 1); return data (); }
88 void release() { if (atomic_add((__haiku_int32*) &ref, -1) == 1) delete this; }
/haiku/src/system/kernel/posix/
H A Dxsi_semaphore.cpp763 atomic_add(&sXsiSemaphoreCount, numberOfSemaphores);
764 atomic_add(&sXsiSemaphoreSetCount, 1);
996 atomic_add(&sXsiSemaphoreCount, -semaphoreSet->NumberOfSemaphores());
997 atomic_add(&sXsiSemaphoreSetCount, -1);
H A Drealtime_sem.cpp98 atomic_add(&fRefCount, 1);
103 if (atomic_add(&fRefCount, -1) == 1)
/haiku/src/system/kernel/arch/x86/paging/32bit/
H A DX86VMTranslationMap32Bit.cpp471 atomic_add(&gMappedPagesCount, -1);
535 atomic_add(&gMappedPagesCount, -1);
/haiku/src/system/kernel/arch/x86/paging/64bit/
H A DX86VMTranslationMap64Bit.cpp473 atomic_add(&gMappedPagesCount, -1);
538 atomic_add(&gMappedPagesCount, -1);
/haiku/src/add-ons/kernel/file_systems/packagefs/util/
H A DTwoKeyAVLTree.h172 atomic_add(fObjectCacheRefs, 1);
176 atomic_add(fObjectCacheRefs, -1);

Completed in 159 milliseconds

12345678910