Lines Matching refs:rtm
38 static __always_inline void rtlock_lock(struct rt_mutex_base *rtm) in rtlock_lock() argument
40 if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rtlock_lock()
41 rtlock_slowlock(rtm); in rtlock_lock()
155 rwbase_rtmutex_lock_state(struct rt_mutex_base *rtm, unsigned int state) in rwbase_rtmutex_lock_state() argument
157 if (unlikely(!rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rwbase_rtmutex_lock_state()
158 rtlock_slowlock(rtm); in rwbase_rtmutex_lock_state()
163 rwbase_rtmutex_slowlock_locked(struct rt_mutex_base *rtm, unsigned int state) in rwbase_rtmutex_slowlock_locked() argument
165 rtlock_slowlock_locked(rtm); in rwbase_rtmutex_slowlock_locked()
169 static __always_inline void rwbase_rtmutex_unlock(struct rt_mutex_base *rtm) in rwbase_rtmutex_unlock() argument
171 if (likely(rt_mutex_cmpxchg_acquire(rtm, current, NULL))) in rwbase_rtmutex_unlock()
174 rt_mutex_slowunlock(rtm); in rwbase_rtmutex_unlock()
177 static __always_inline int rwbase_rtmutex_trylock(struct rt_mutex_base *rtm) in rwbase_rtmutex_trylock() argument
179 if (likely(rt_mutex_cmpxchg_acquire(rtm, NULL, current))) in rwbase_rtmutex_trylock()
182 return rt_mutex_slowtrylock(rtm); in rwbase_rtmutex_trylock()