Lines Matching full:sl

734  * @sl: Pointer to the seqlock_t instance
736 #define seqlock_init(sl) \ argument
738 spin_lock_init(&(sl)->lock); \
739 seqcount_spinlock_init(&(sl)->seqcount, &(sl)->lock); \
743 * DEFINE_SEQLOCK(sl) - Define a statically allocated seqlock_t
744 * @sl: Name of the seqlock_t instance
746 #define DEFINE_SEQLOCK(sl) \ argument
747 seqlock_t sl = __SEQLOCK_UNLOCKED(sl)
751 * @sl: Pointer to seqlock_t
755 static inline unsigned read_seqbegin(const seqlock_t *sl) in read_seqbegin() argument
757 unsigned ret = read_seqcount_begin(&sl->seqcount); in read_seqbegin()
766 * @sl: Pointer to seqlock_t
775 static inline unsigned read_seqretry(const seqlock_t *sl, unsigned start) in read_seqretry() argument
783 return read_seqcount_retry(&sl->seqcount, start); in read_seqretry()
794 * @sl: Pointer to seqlock_t
805 static inline void write_seqlock(seqlock_t *sl) in write_seqlock() argument
807 spin_lock(&sl->lock); in write_seqlock()
808 do_write_seqcount_begin(&sl->seqcount.seqcount); in write_seqlock()
813 * @sl: Pointer to seqlock_t
818 static inline void write_sequnlock(seqlock_t *sl) in write_sequnlock() argument
820 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock()
821 spin_unlock(&sl->lock); in write_sequnlock()
826 * @sl: Pointer to seqlock_t
831 static inline void write_seqlock_bh(seqlock_t *sl) in write_seqlock_bh() argument
833 spin_lock_bh(&sl->lock); in write_seqlock_bh()
834 do_write_seqcount_begin(&sl->seqcount.seqcount); in write_seqlock_bh()
839 * @sl: Pointer to seqlock_t
845 static inline void write_sequnlock_bh(seqlock_t *sl) in write_sequnlock_bh() argument
847 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock_bh()
848 spin_unlock_bh(&sl->lock); in write_sequnlock_bh()
853 * @sl: Pointer to seqlock_t
858 static inline void write_seqlock_irq(seqlock_t *sl) in write_seqlock_irq() argument
860 spin_lock_irq(&sl->lock); in write_seqlock_irq()
861 do_write_seqcount_begin(&sl->seqcount.seqcount); in write_seqlock_irq()
866 * @sl: Pointer to seqlock_t
871 static inline void write_sequnlock_irq(seqlock_t *sl) in write_sequnlock_irq() argument
873 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock_irq()
874 spin_unlock_irq(&sl->lock); in write_sequnlock_irq()
877 static inline unsigned long __write_seqlock_irqsave(seqlock_t *sl) in __write_seqlock_irqsave() argument
881 spin_lock_irqsave(&sl->lock, flags); in __write_seqlock_irqsave()
882 do_write_seqcount_begin(&sl->seqcount.seqcount); in __write_seqlock_irqsave()
902 * @sl: Pointer to seqlock_t
909 write_sequnlock_irqrestore(seqlock_t *sl, unsigned long flags) in write_sequnlock_irqrestore() argument
911 do_write_seqcount_end(&sl->seqcount.seqcount); in write_sequnlock_irqrestore()
912 spin_unlock_irqrestore(&sl->lock, flags); in write_sequnlock_irqrestore()
917 * @sl: Pointer to seqlock_t
931 static inline void read_seqlock_excl(seqlock_t *sl) in read_seqlock_excl() argument
933 spin_lock(&sl->lock); in read_seqlock_excl()
938 * @sl: Pointer to seqlock_t
940 static inline void read_sequnlock_excl(seqlock_t *sl) in read_sequnlock_excl() argument
942 spin_unlock(&sl->lock); in read_sequnlock_excl()
948 * @sl: Pointer to seqlock_t
954 static inline void read_seqlock_excl_bh(seqlock_t *sl) in read_seqlock_excl_bh() argument
956 spin_lock_bh(&sl->lock); in read_seqlock_excl_bh()
962 * @sl: Pointer to seqlock_t
964 static inline void read_sequnlock_excl_bh(seqlock_t *sl) in read_sequnlock_excl_bh() argument
966 spin_unlock_bh(&sl->lock); in read_sequnlock_excl_bh()
972 * @sl: Pointer to seqlock_t
978 static inline void read_seqlock_excl_irq(seqlock_t *sl) in read_seqlock_excl_irq() argument
980 spin_lock_irq(&sl->lock); in read_seqlock_excl_irq()
986 * @sl: Pointer to seqlock_t
988 static inline void read_sequnlock_excl_irq(seqlock_t *sl) in read_sequnlock_excl_irq() argument
990 spin_unlock_irq(&sl->lock); in read_sequnlock_excl_irq()
993 static inline unsigned long __read_seqlock_excl_irqsave(seqlock_t *sl) in __read_seqlock_excl_irqsave() argument
997 spin_lock_irqsave(&sl->lock, flags); in __read_seqlock_excl_irqsave()
1018 * @sl: Pointer to seqlock_t
1022 read_sequnlock_excl_irqrestore(seqlock_t *sl, unsigned long flags) in read_sequnlock_excl_irqrestore() argument
1024 spin_unlock_irqrestore(&sl->lock, flags); in read_sequnlock_excl_irqrestore()