/haiku/headers/private/kernel/vm/ |
H A D | VMAddressSpace.h | 56 inline void Get() { atomic_add(&fRefCount, 1); } 61 { atomic_add(&fFaultCount, 1); } 166 if (atomic_add(&fRefCount, -1) == 1)
|
/haiku/src/add-ons/kernel/file_systems/netfs/shared/ |
H A D | NetAddress.cpp | 287 while (atomic_add(&sLockCounter, 1) > 0) { 288 atomic_add(&sLockCounter, -1); 297 atomic_add(&sLockCounter, -1);
|
/haiku/src/add-ons/kernel/drivers/input/i2c_elan/ |
H A D | ELANDevice.cpp | 112 atomic_add(&fOpenCount, 1); 122 atomic_add(&fOpenCount, -1); 255 atomic_add(&fBusyCount, 1); 286 atomic_add(&fBusyCount, -1); 293 atomic_add(&fBusyCount, -1);
|
/haiku/src/add-ons/kernel/drivers/audio/usb/ |
H A D | Stream.cpp | 333 atomic_add(&stream->fInsideNotify, 1); 337 atomic_add(&stream->fInsideNotify, -1); 345 if (atomic_add(&stream->fProcessedBuffers, 1) > (int32)kSamplesBufferCount) 354 atomic_add(&stream->fInsideNotify, -1); 549 atomic_add(&fProcessedBuffers, -1);
|
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | lock.cpp | 75 if (atomic_add(&fCount, -1) > 0) 88 if (atomic_add(&fCount, 1) < 0) 353 // The writer that originally had the lock when we called atomic_add() might 383 // The writer that originally had the lock when we called atomic_add() might 455 atomic_add(&lock->count, -1); 508 int32 oldCount = atomic_add(&lock->count, RW_LOCK_WRITER_COUNT_BASE); 558 int32 oldCount = atomic_add(&lock->count, -RW_LOCK_WRITER_COUNT_BASE); 654 if (atomic_add(&from->count, 1) < -1) 670 int32 oldCount = atomic_add(&from->count, -1);
|
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | pcm.c | 501 if (atomic_add(&port->open_count, 1) == 0) { 638 if (atomic_add(&port->open_count, -1) == 1) { 749 atomic_add(&port->rd_time_wait, 1); 765 atomic_add(&port->wr_time_wait, 1); 1378 atomic_add(&port->read_waiting, 1); 1472 atomic_add(&port->write_waiting, 1); 1512 if (atomic_add(&port->write_waiting, -1) > 0) { 1516 atomic_add(&port->write_waiting, 1); /* undo damage */ 1521 atomic_add(&port->write_waiting, 1); /* we will loop back */ 1610 if ((ww = atomic_add( [all...] |
H A D | mux.c | 95 atomic_add(&cards[ix].mux.open_count, 1); 109 atomic_add(&plex->open_count, -1);
|
/haiku/src/add-ons/kernel/drivers/video/usb_vision/ |
H A D | usb_vision.c | 119 if(atomic_add(&usb_vision_devices[i]->open_count, 1) == 0){ 124 atomic_add(&usb_vision_devices[i]->open_count, -1); 205 atomic_add(&uvd->open_count, -1);
|
/haiku/src/apps/poorman/ |
H A D | PoorManServer.cpp | 289 atomic_add(&s->fCurConns, 1); 311 atomic_add(&s->fCurConns, -1); 382 atomic_add(&s->fCurConns, -1);
|
/haiku/src/system/libroot/os/arch/x86/ |
H A D | atomic.S | 51 /* int32 atomic_add(int32* value, int32 addValue) */ 52 FUNCTION(atomic_add): 58 FUNCTION_END(atomic_add)
|
/haiku/src/system/libroot/posix/pthread/ |
H A D | pthread_key.cpp | 83 int32 nextSequence = atomic_add(&sNextSequence, 1);
|
/haiku/src/add-ons/kernel/drivers/network/ether/usb_ecm/ |
H A D | ECMDevice.cpp | 310 while (atomic_add(&fInsideNotify, 0) != 0) 549 atomic_add(&device->fInsideNotify, 1); 551 atomic_add(&device->fInsideNotify, -1); 607 atomic_add(&device->fInsideNotify, -1);
|
/haiku/src/kits/network/libnetservices2/ |
H A D | NetServicesMisc.cpp | 241 return atomic_add(&gRequestIdentifier, 1);
|
/haiku/src/kits/tracker/ |
H A D | QueryPoseView.h | 143 return atomic_add(&fRefCount, -1) == 0;
|
/haiku/src/system/kernel/ |
H A D | condition_variable.cpp | 108 atomic_add(&fVariable->fEntriesCount, 1); 138 atomic_add(&variable->fEntriesCount, -1); 157 atomic_add(&variable->fEntriesCount, -1); 421 atomic_add(&fEntriesCount, -1);
|
/haiku/src/system/kernel/fs/ |
H A D | fd.cpp | 140 atomic_add(&descriptor->open_count, 1); 162 int32 previous = atomic_add(&descriptor->ref_count, -1); 208 if (atomic_add(&descriptor->open_count, -1) == 1) { 249 atomic_add(&descriptor->ref_count, 1); 292 atomic_add(&descriptor->open_count, 1); 409 atomic_add(&context->fds[oldfd]->ref_count, 1); 410 atomic_add(&context->fds[oldfd]->open_count, 1); 549 atomic_add(&descriptor->open_count, 1); 592 atomic_add(&descriptor->open_count, -1);
|
/haiku/headers/private/graphics/skeleton/ |
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/src/apps/mail/ |
H A D | QueryMenu.cpp | 99 if (atomic_add(&fMenuCount, 1) == 0) 130 if (atomic_add(&fMenuCount, -1) == 1)
|
/haiku/src/servers/registrar/ |
H A D | MessagingService.cpp | 79 if (atomic_add(&fHeader->lock_counter, 1) == 0) 89 if (atomic_add(&fHeader->lock_counter, -1) > 1)
|
/haiku/src/system/kernel/vm/ |
H A D | VMTranslationMap.cpp | 195 atomic_add(&gMappedPagesCount, -1); 252 atomic_add(&gMappedPagesCount, -1);
|
/haiku/src/kits/shared/ |
H A D | RWLocker.cpp | 457 if (atomic_add(&benaphore.counter, 1) > 0) { 468 if (atomic_add(&benaphore.counter, -1) > 1)
|
/haiku/headers/private/graphics/via/ |
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/src/kits/media/ |
H A D | Sound.cpp | 109 atomic_add(&fRefCount, 1); 117 if (atomic_add(&fRefCount, -1) == 1) {
|
/haiku/src/add-ons/kernel/drivers/input/hid_shared/ |
H A D | HIDReport.cpp | 250 atomic_add(&fBusyCount, 1); 258 atomic_add(&fBusyCount, -1);
|
/haiku/src/add-ons/kernel/drivers/input/i2c_hid/ |
H A D | HIDDevice.cpp | 138 atomic_add(&fOpenCount, 1); 148 atomic_add(&fOpenCount, -1);
|