Lines Matching refs:seq2
153 static __inline__ int before(unsigned short seq1, unsigned short seq2) in before() argument
156 seq2 &= 0x0fff; in before()
158 return (int)((seq1 - seq2) & 0x0fff) > 2048; in before()
162 static __inline__ int after(unsigned short seq1, unsigned short seq2) in after() argument
165 seq2 &= 0x0fff; in after()
167 return (int)((seq2 - seq1) & 0x0fff) > 2048; in after()
170 static __inline__ int equal(unsigned short seq1, unsigned short seq2) in equal() argument
172 return ((seq1 ^ seq2) & 0x0fff) == 0; in equal()
175 static __inline__ int before_or_equal(unsigned short seq1, unsigned short seq2) in before_or_equal() argument
177 return (before(seq1, seq2) || equal(seq1, seq2)); in before_or_equal()
186 static __inline__ int seq_next(unsigned short seq1, unsigned short seq2) in seq_next() argument
188 return equal(seq1 + 1, seq2); in seq_next()