Lines Matching refs:adjustment
424 long oldcount, woken = 0, adjustment = 0; in rwsem_mark_wake() local
465 adjustment = RWSEM_READER_BIAS; in rwsem_mark_wake()
466 oldcount = atomic_long_fetch_add(adjustment, &sem->count); in rwsem_mark_wake()
475 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
481 atomic_long_add(-adjustment, &sem->count); in rwsem_mark_wake()
532 adjustment = woken * RWSEM_READER_BIAS - adjustment; in rwsem_mark_wake()
541 adjustment -= RWSEM_FLAG_WAITERS; in rwsem_mark_wake()
543 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
550 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
553 if (adjustment) in rwsem_mark_wake()
554 atomic_long_add(adjustment, &sem->count); in rwsem_mark_wake()
1023 long adjustment = -RWSEM_READER_BIAS; in rwsem_down_read_slowpath() local
1085 adjustment += RWSEM_FLAG_WAITERS; in rwsem_down_read_slowpath()
1094 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()