Lines Matching refs:replay
68 ((x->replay.seq - x->preplay.seq < x->replay_maxdiff) && in xfrm_replay_notify()
69 (x->replay.oseq - x->preplay.oseq < x->replay_maxdiff))) { in xfrm_replay_notify()
79 if (memcmp(&x->replay, &x->preplay, in xfrm_replay_notify()
88 memcpy(&x->preplay, &x->replay, sizeof(struct xfrm_replay_state)); in xfrm_replay_notify()
104 XFRM_SKB_CB(skb)->seq.output.low = ++x->replay.oseq; in __xfrm_replay_overflow()
106 if (unlikely(x->replay.oseq == 0) && in __xfrm_replay_overflow()
108 x->replay.oseq--; in __xfrm_replay_overflow()
133 if (likely(seq > x->replay.seq)) in xfrm_replay_check_legacy()
136 diff = x->replay.seq - seq; in xfrm_replay_check_legacy()
142 if (x->replay.bitmap & (1U << diff)) { in xfrm_replay_check_legacy()
143 x->stats.replay++; in xfrm_replay_check_legacy()
173 if (seq > x->replay.seq) { in xfrm_replay_advance()
174 diff = seq - x->replay.seq; in xfrm_replay_advance()
176 x->replay.bitmap = ((x->replay.bitmap) << diff) | 1; in xfrm_replay_advance()
178 x->replay.bitmap = 1; in xfrm_replay_advance()
179 x->replay.seq = seq; in xfrm_replay_advance()
181 diff = x->replay.seq - seq; in xfrm_replay_advance()
182 x->replay.bitmap |= (1U << diff); in xfrm_replay_advance()
251 x->stats.replay++; in xfrm_replay_check_bmp()
504 x->stats.replay++; in xfrm_replay_check_esn()
617 __u32 oseq = x->replay.oseq; in xfrm_replay_overflow_offload()
634 if (unlikely(oseq < x->replay.oseq) && in xfrm_replay_overflow_offload()
642 x->replay.oseq = oseq; in xfrm_replay_overflow_offload()