Lines Matching refs:seq2
145 static __inline__ int dn_before(__u16 seq1, __u16 seq2) in dn_before() argument
148 seq2 &= 0x0fff; in dn_before()
150 return (int)((seq1 - seq2) & 0x0fff) > 2048; in dn_before()
154 static __inline__ int dn_after(__u16 seq1, __u16 seq2) in dn_after() argument
157 seq2 &= 0x0fff; in dn_after()
159 return (int)((seq2 - seq1) & 0x0fff) > 2048; in dn_after()
162 static __inline__ int dn_equal(__u16 seq1, __u16 seq2) in dn_equal() argument
164 return ((seq1 ^ seq2) & 0x0fff) == 0; in dn_equal()
167 static __inline__ int dn_before_or_equal(__u16 seq1, __u16 seq2) in dn_before_or_equal() argument
169 return (dn_before(seq1, seq2) || dn_equal(seq1, seq2)); in dn_before_or_equal()
178 static __inline__ int seq_next(__u16 seq1, __u16 seq2) in seq_next() argument
180 return dn_equal(seq1 + 1, seq2); in seq_next()