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