Lines Matching refs:trylock
104 rangelock_cheat_lock(struct rangelock *lock, int locktype, bool trylock, in rangelock_cheat_lock() argument
114 if (trylock) { in rangelock_cheat_lock()
128 if (trylock) { in rangelock_cheat_lock()
157 if (trylock) { in rangelock_cheat_lock()
535 bool trylock, bool inserted) in rl_conflict() argument
555 if (trylock) { in rl_conflict()
573 rl_r_validate(struct rangelock *lock, struct rl_q_entry *e, bool trylock, in rl_r_validate() argument
603 res = rl_conflict(lock, cur, e, trylock, true); in rl_r_validate()
615 bool trylock, struct rl_q_entry **free) in rl_w_validate() argument
644 res = rl_conflict(lock, cur, e, trylock, true); in rl_w_validate()
651 rl_insert(struct rangelock *lock, struct rl_q_entry *e, bool trylock, in rl_insert() argument
692 res = rl_conflict(lock, cur, e, trylock, false); in rl_insert()
708 rl_r_validate(lock, e, trylock, free) : in rl_insert()
709 rl_w_validate(lock, e, trylock, free)); in rl_insert()
719 rangelock_lock_int(struct rangelock *lock, bool trylock, vm_ooffset_t start, in rangelock_lock_int() argument
726 if (rangelock_cheat_lock(lock, locktype, trylock, &cookie)) in rangelock_lock_int()
732 res = rl_insert(lock, e, trylock, &free); in rangelock_lock_int()
735 MPASS(trylock); in rangelock_lock_int()