Lines Matching refs:resync_async
737 tls_device_rx_resync_async(struct tls_offload_resync_async *resync_async, in tls_device_rx_resync_async() argument
751 if (WARN_ON_ONCE(resync_async->rcd_delta == USHRT_MAX)) in tls_device_rx_resync_async()
760 resync_async->loglen < TLS_DEVICE_RESYNC_ASYNC_LOGMAX) in tls_device_rx_resync_async()
761 resync_async->log[resync_async->loglen++] = *seq; in tls_device_rx_resync_async()
763 resync_async->rcd_delta++; in tls_device_rx_resync_async()
771 for (i = 0; i < resync_async->loglen; i++) in tls_device_rx_resync_async()
772 if (req_seq == resync_async->log[i] && in tls_device_rx_resync_async()
773 atomic64_try_cmpxchg(&resync_async->req, &resync_req, 0)) { in tls_device_rx_resync_async()
774 *rcd_delta = resync_async->rcd_delta - i; in tls_device_rx_resync_async()
776 resync_async->loglen = 0; in tls_device_rx_resync_async()
777 resync_async->rcd_delta = 0; in tls_device_rx_resync_async()
781 resync_async->loglen = 0; in tls_device_rx_resync_async()
782 resync_async->rcd_delta = 0; in tls_device_rx_resync_async()
785 atomic64_try_cmpxchg(&resync_async->req, in tls_device_rx_resync_async()
842 resync_req = atomic64_read(&rx_ctx->resync_async->req); in tls_device_rx_resync_new_rec()
847 if (!tls_device_rx_resync_async(rx_ctx->resync_async, in tls_device_rx_resync_new_rec()