Lines Matching refs:bitnr
216 unsigned int bitnr, nr; in xfrm_replay_check_bmp() local
239 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_bmp()
241 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_bmp()
243 nr = bitnr >> 5; in xfrm_replay_check_bmp()
244 bitnr = bitnr & 0x1F; in xfrm_replay_check_bmp()
245 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp()
259 unsigned int bitnr, nr, i; in xfrm_replay_advance_bmp() local
275 bitnr = (pos + i) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
276 nr = bitnr >> 5; in xfrm_replay_advance_bmp()
277 bitnr = bitnr & 0x1F; in xfrm_replay_advance_bmp()
278 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_bmp()
286 bitnr = (pos + diff) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
292 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
294 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_advance_bmp()
297 nr = bitnr >> 5; in xfrm_replay_advance_bmp()
298 bitnr = bitnr & 0x1F; in xfrm_replay_advance_bmp()
299 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_bmp()
454 unsigned int bitnr, nr; in xfrm_replay_check_esn() local
492 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_esn()
494 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_esn()
496 nr = bitnr >> 5; in xfrm_replay_check_esn()
497 bitnr = bitnr & 0x1F; in xfrm_replay_check_esn()
498 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_esn()
555 unsigned int bitnr, nr, i; in xfrm_replay_advance_esn() local
576 bitnr = (pos + i) % replay_esn->replay_window; in xfrm_replay_advance_esn()
577 nr = bitnr >> 5; in xfrm_replay_advance_esn()
578 bitnr = bitnr & 0x1F; in xfrm_replay_advance_esn()
579 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_esn()
587 bitnr = (pos + diff) % replay_esn->replay_window; in xfrm_replay_advance_esn()
596 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_advance_esn()
598 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_advance_esn()
603 nr = bitnr >> 5; in xfrm_replay_advance_esn()
604 bitnr = bitnr & 0x1F; in xfrm_replay_advance_esn()
605 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_esn()