Lines Matching refs:adjustment
409 long oldcount, woken = 0, adjustment = 0; in rwsem_mark_wake() local
450 adjustment = RWSEM_READER_BIAS; in rwsem_mark_wake()
451 oldcount = atomic_long_fetch_add(adjustment, &sem->count); in rwsem_mark_wake()
460 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
464 atomic_long_add(-adjustment, &sem->count); in rwsem_mark_wake()
515 adjustment = woken * RWSEM_READER_BIAS - adjustment; in rwsem_mark_wake()
524 adjustment -= RWSEM_FLAG_WAITERS; in rwsem_mark_wake()
526 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
533 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
536 if (adjustment) in rwsem_mark_wake()
537 atomic_long_add(adjustment, &sem->count); in rwsem_mark_wake()
943 long adjustment = -RWSEM_READER_BIAS; in rwsem_down_read_slowpath() local
1002 adjustment += RWSEM_FLAG_WAITERS; in rwsem_down_read_slowpath()
1007 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()
1020 (adjustment & RWSEM_FLAG_WAITERS))) in rwsem_down_read_slowpath()