Searched refs:qrwlock (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/arch/x86/include/asm/
H A Dqrwlock.h5 #include <asm-generic/qrwlock.h>
H A Dspinlock.h215 * On x86, we implement read-write locks using the generic qrwlock with
219 #include <asm/qrwlock.h>
/linux-4.4.14/include/asm-generic/
H A Dqrwlock_types.h11 typedef struct qrwlock { struct
H A Dqrwlock.h39 extern void queued_read_lock_slowpath(struct qrwlock *lock, u32 cnts);
40 extern void queued_write_lock_slowpath(struct qrwlock *lock);
46 static inline int queued_read_can_lock(struct qrwlock *lock) queued_read_can_lock()
55 static inline int queued_write_can_lock(struct qrwlock *lock) queued_write_can_lock()
65 static inline int queued_read_trylock(struct qrwlock *lock) queued_read_trylock()
84 static inline int queued_write_trylock(struct qrwlock *lock) queued_write_trylock()
99 static inline void queued_read_lock(struct qrwlock *lock) queued_read_lock()
115 static inline void queued_write_lock(struct qrwlock *lock) queued_write_lock()
128 static inline void queued_read_unlock(struct qrwlock *lock) queued_read_unlock()
140 static inline void queued_write_unlock(struct qrwlock *lock) queued_write_unlock()
/linux-4.4.14/kernel/locking/
H A DMakefile27 obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
H A Dqrwlock.c23 #include <asm/qrwlock.h>
54 rspin_until_writer_unlock(struct qrwlock *lock, u32 cnts) rspin_until_writer_unlock()
65 * @cnts: Current qrwlock lock value
67 void queued_read_lock_slowpath(struct qrwlock *lock, u32 cnts) queued_read_lock_slowpath()
110 void queued_write_lock_slowpath(struct qrwlock *lock) queued_write_lock_slowpath()

Completed in 271 milliseconds