Searched refs:sn2 (Results 1 – 2 of 2) sorted by relevance
187 static inline bool ieee80211_sn_less(u16 sn1, u16 sn2) in ieee80211_sn_less() argument189 return ((sn1 - sn2) & IEEE80211_SN_MASK) > (IEEE80211_SN_MODULO >> 1); in ieee80211_sn_less()192 static inline u16 ieee80211_sn_add(u16 sn1, u16 sn2) in ieee80211_sn_add() argument194 return (sn1 + sn2) & IEEE80211_SN_MASK; in ieee80211_sn_add()202 static inline u16 ieee80211_sn_sub(u16 sn1, u16 sn2) in ieee80211_sn_sub() argument204 return (sn1 - sn2) & IEEE80211_SN_MASK; in ieee80211_sn_sub()
575 static bool iwl_mvm_is_sn_less(u16 sn1, u16 sn2, u16 buffer_size) in iwl_mvm_is_sn_less() argument577 return ieee80211_sn_less(sn1, sn2) && in iwl_mvm_is_sn_less()578 !ieee80211_sn_less(sn1, sn2 - buffer_size); in iwl_mvm_is_sn_less()