/haiku/src/build/libroot/ |
H A D | atomic.cpp | 23 int32 oldValue = *value; local 25 return oldValue; 32 int32 oldValue = *value; local 33 if (oldValue == testAgainst) 35 return oldValue; 42 int32 oldValue = *value; local 44 return oldValue; 51 int32 oldValue = *value; local 53 return oldValue; 60 int32 oldValue local 83 int64 oldValue = *value; local 91 int64 oldValue = *value; local 100 int64 oldValue = *value; local 108 int64 oldValue = *value; local 116 int64 oldValue = *value; local [all...] |
/haiku/src/system/libroot/posix/unistd/ |
H A D | alarm.c | 18 struct itimerval value, oldValue; local 23 if (setitimer(ITIMER_REAL, &value, &oldValue) < 0) 26 if (oldValue.it_value.tv_usec) 27 oldValue.it_value.tv_sec++; 29 return oldValue.it_value.tv_sec;
|
H A D | ualarm.c | 18 struct itimerval value, oldValue; local 25 if (setitimer(ITIMER_REAL, &value, &oldValue) < 0) 28 return (oldValue.it_value.tv_sec * 1000000) + oldValue.it_value.tv_usec;
|
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_atomic.cpp | 31 int64 oldValue; 34 oldValue = *value; 38 return oldValue; 45 int64 oldValue; 48 oldValue = *value; 49 if (oldValue == testAgainst) 53 return oldValue; 60 int64 oldValue; 63 oldValue = *value; 67 return oldValue; [all...] |
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_atomic32.cpp | 38 int32 oldValue = *value; local 40 return oldValue; 48 int32 oldValue = *value; local 49 if (oldValue == testAgainst) 51 return oldValue; 59 int32 oldValue = *value; local 61 return oldValue; 69 int32 oldValue = *value; local 71 return oldValue; 79 int32 oldValue local 89 int32 oldValue = *value; local 113 int32 oldValue = atomic_get_and_set(value, newValue); local 128 int32 oldValue = atomic_test_and_set((int32*)value, newValue, testAgainst); local 143 int32 oldValue = atomic_add(value, addValue); local 158 int32 oldValue = atomic_and(value, andValue); local 173 int32 oldValue = atomic_or(value, orValue); local 188 int32 oldValue = atomic_get(value); local [all...] |
H A D | arch_atomic64.cpp | 47 int64 oldValue = *value; local 49 return oldValue; 58 int64 oldValue = *value; local 59 if (oldValue == testAgainst) 61 return oldValue; 70 int64 oldValue = *value; local 72 return oldValue; 81 int64 oldValue = *value; local 83 return oldValue; 92 int64 oldValue local 111 int64 oldValue = atomic_get_and_set64(value, newValue); local 143 int64 oldValue = atomic_test_and_set64(value, newValue, testAgainst); local 159 int64 oldValue = atomic_add64(value, addValue); local 175 int64 oldValue = atomic_and64(value, andValue); local 191 int64 oldValue = atomic_or64(value, orValue); local 207 int64 oldValue = atomic_get64(value); local [all...] |
/haiku/src/system/libroot/os/locks/ |
H A D | mutex.cpp | 66 int32 oldValue; local 68 oldValue = atomic_test_and_set(&lock->lock, B_USER_MUTEX_LOCKED, 0); 69 if (oldValue == 0 || (oldValue & B_USER_MUTEX_DISABLED) != 0) 71 } while (count++ < kMaxCount && (oldValue & B_USER_MUTEX_WAITING) != 0); 87 int32 oldValue = atomic_and(&lock->lock, ~(int32)B_USER_MUTEX_LOCKED); local 88 if ((oldValue & B_USER_MUTEX_WAITING) != 0 89 && (oldValue & B_USER_MUTEX_DISABLED) == 0) { 93 if ((oldValue & B_USER_MUTEX_LOCKED) == 0) {
|
/haiku/src/system/libroot/posix/sys/ |
H A D | itimer.cpp | 83 setitimer(int which, const struct itimerval* value, struct itimerval* oldValue) argument 98 oldValue != NULL ? &oldValueSpec : NULL) != 0) { 102 // convert back to itimerval oldValue 103 if (oldValue != NULL) 104 itimerspec_to_itimerval(oldValueSpec, *oldValue);
|
/haiku/src/system/kernel/locks/ |
H A D | user_mutex.cpp | 345 int32 oldValue = user_atomic_or(mutex, 347 if ((oldValue & B_USER_MUTEX_LOCKED) == 0 348 || (oldValue & B_USER_MUTEX_DISABLED) != 0) { 350 if ((oldValue & B_USER_MUTEX_WAITING) == 0) { 395 int32 oldValue = 0; 398 oldValue = user_atomic_or(mutex, B_USER_MUTEX_LOCKED, isWired); 399 if ((oldValue & B_USER_MUTEX_LOCKED) != 0) 404 || (oldValue & B_USER_MUTEX_DISABLED) != 0) { 423 int32 oldValue = user_atomic_get(sem, isWired); 424 while (oldValue > [all...] |
/haiku/src/kits/translation/ |
H A D | Translator.cpp | 52 int32 oldValue = atomic_add(&fRefCount, -1); local 53 if (oldValue > 1)
|
/haiku/src/system/libroot/posix/pthread/ |
H A D | pthread_mutex.cpp | 76 const int32 oldValue = atomic_test_and_set((int32*)&mutex->lock, B_USER_MUTEX_LOCKED, 0); local 77 if (oldValue != 0) { 176 int32 oldValue = atomic_and((int32*)&mutex->lock, local 178 if ((oldValue & B_USER_MUTEX_WAITING) != 0) { 185 if ((oldValue & B_USER_MUTEX_LOCKED) == 0)
|
H A D | pthread_barrier.cpp | 51 const int32 oldValue = atomic_test_and_set((int32*)mutex, B_USER_MUTEX_LOCKED, 0); local 52 if (oldValue != 0) { 68 int32 oldValue = atomic_and((int32*)mutex, local 70 if ((oldValue & B_USER_MUTEX_WAITING) != 0)
|
H A D | pthread_rwlock.cpp | 126 const int32 oldValue = atomic_test_and_set((int32*)&mutex, B_USER_MUTEX_LOCKED, 0); local 127 if (oldValue != 0) {
|
/haiku/src/system/libroot/posix/time/ |
H A D | timer_support.cpp | 152 struct itimerspec* oldValue) 166 interval, timeoutFlags, oldValue != NULL ? &oldInfo : NULL); 171 if (oldValue != NULL) 172 info_to_itimerspec(oldInfo, *oldValue); 151 timer_settime(timer_t timer, int flags, const struct itimerspec* value, struct itimerspec* oldValue) argument
|
/haiku/src/apps/mediaplayer/interface/ |
H A D | VolumeSlider.cpp | 62 int32 oldValue = Value(); local 64 if (oldValue == newValue) { 70 if ((oldValue < fSnapValue && newValue >= fSnapValue) 71 || (oldValue > fSnapValue && newValue <= fSnapValue)) { 78 if (oldValue > newValue) {
|
/haiku/src/add-ons/kernel/drivers/graphics/radeon_hd/ |
H A D | device.cpp | 84 uint32 oldValue = read32(info.registers + reg); local 86 kprintf(" %svalue: %#lx (%lu)\n", set ? "old " : "", oldValue, oldValue);
|
/haiku/src/add-ons/kernel/bus_managers/acpi/ |
H A D | ACPICAHaiku.cpp | 1233 uint32_t oldValue; local 1236 oldValue = *lock; 1237 newValue = ((oldValue & ~ACPI_GLOCK_PENDING) | ACPI_GLOCK_OWNED); 1238 if ((oldValue & ACPI_GLOCK_OWNED) != 0) 1240 } while (atomic_test_and_set((int32*)lock, newValue, oldValue) != (int32)oldValue); 1257 uint32 oldValue; local 1260 oldValue = *lock; 1261 newValue = oldValue & ~(ACPI_GLOCK_PENDING | ACPI_GLOCK_OWNED); 1262 } while (atomic_test_and_set((int32*)lock, newValue, oldValue) ! [all...] |
/haiku/headers/posix/sys/ |
H A D | time.h | 43 extern int setitimer(int which, const struct itimerval *value, struct itimerval *oldValue);
|
/haiku/src/system/libroot/posix/ |
H A D | semaphore.cpp | 138 int32 oldValue = atomic_add_if_greater(sem, 1, -1); local 139 if (oldValue > -1) 154 int32 oldValue = atomic_add_if_greater(sem, -1, 0); local 155 if (oldValue > 0)
|
/haiku/src/bin/desklink/ |
H A D | VolumeControl.cpp | 222 int32 oldValue = Value(); local 224 if (oldValue == newValue) { 230 if ((oldValue < 0 && newValue >= 0) || (oldValue > 0 && newValue <= 0)) { 238 if (oldValue > newValue) {
|
/haiku/src/add-ons/kernel/drivers/graphics/intel_extreme/ |
H A D | device.cpp | 85 uint32 oldValue = read32(info, reg); local 88 oldValue, oldValue);
|
/haiku/headers/posix/ |
H A D | time.h | 114 const struct itimerspec* value, struct itimerspec* oldValue);
|
/haiku/src/apps/terminal/ |
H A D | AppearPrefView.cpp | 275 BString oldValue(PrefHandler::Default()->getString(PREF_TAB_TITLE)); 276 if (oldValue != fTabTitle->Text()) { 286 BString oldValue(PrefHandler::Default()->getString( 288 if (oldValue != fWindowTitle->Text()) {
|
/haiku/src/system/kernel/ |
H A D | smp.cpp | 378 int32 oldValue = atomic_get_and_set(&lock->lock, 1); local 379 if (oldValue != 0) { 382 find_lock_caller(lock), oldValue); 440 int32 oldValue = atomic_get_and_set(&lock->lock, 1); local 441 if (oldValue != 0) { 444 lock, find_lock_caller(lock), oldValue); 503 int32 oldValue = atomic_get_and_set(&lock->lock, 1); local 504 if (oldValue != 0) { 507 find_lock_caller(lock), oldValue);
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | BPlusTree.cpp | 1203 off_t oldValue = BFS_ENDIAN_TO_HOST_INT64(values[index]); local 1207 if (bplustree_node::IsDuplicate(oldValue)) { 1211 if (bplustree_node::LinkType(oldValue) 1214 transaction, bplustree_node::FragmentOffset(oldValue), false); 1219 bplustree_node::FragmentIndex(oldValue)); 1224 (int)bplustree_node::FragmentIndex(oldValue), 1225 bplustree_node::FragmentOffset(oldValue), arrayCount, 1238 offset = bplustree_node::FragmentOffset(oldValue); 1291 duplicateOffset = bplustree_node::FragmentOffset(oldValue); 1305 && (oldValue 1833 off_t oldValue = BFS_ENDIAN_TO_HOST_INT64(values[index]); local [all...] |