Lines Matching full:adjustment
414 long oldcount, woken = 0, adjustment = 0; in rwsem_mark_wake() local
455 adjustment = RWSEM_READER_BIAS; in rwsem_mark_wake()
456 oldcount = atomic_long_fetch_add(adjustment, &sem->count); in rwsem_mark_wake()
465 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
471 atomic_long_add(-adjustment, &sem->count); in rwsem_mark_wake()
522 adjustment = woken * RWSEM_READER_BIAS - adjustment; in rwsem_mark_wake()
531 adjustment -= RWSEM_FLAG_WAITERS; in rwsem_mark_wake()
533 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
540 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
543 if (adjustment) in rwsem_mark_wake()
544 atomic_long_add(adjustment, &sem->count); in rwsem_mark_wake()
996 long adjustment = -RWSEM_READER_BIAS; in rwsem_down_read_slowpath() local
1054 adjustment += RWSEM_FLAG_WAITERS; in rwsem_down_read_slowpath()
1059 count = atomic_long_add_return(adjustment, &sem->count); in rwsem_down_read_slowpath()