Lines Matching defs:adjustment
405 long oldcount, woken = 0, adjustment = 0;
446 adjustment = RWSEM_READER_BIAS;
447 oldcount = atomic_long_fetch_add(adjustment, &sem->count);
456 adjustment -= RWSEM_FLAG_HANDOFF;
460 atomic_long_add(-adjustment, &sem->count);
515 adjustment = woken * RWSEM_READER_BIAS - adjustment;
519 adjustment -= RWSEM_FLAG_WAITERS;
527 adjustment -= RWSEM_FLAG_HANDOFF;
529 if (adjustment)
530 atomic_long_add(adjustment, &sem->count);
994 long count, adjustment = -RWSEM_READER_BIAS;
1014 adjustment = 0;
1048 if (adjustment && !(atomic_long_read(&sem->count) &
1057 adjustment += RWSEM_FLAG_WAITERS;
1062 if (adjustment)
1063 count = atomic_long_add_return(adjustment, &sem->count);
1078 (adjustment & RWSEM_FLAG_WAITERS)))