Lines Matching refs:sw_ctx_rx
2637 struct tls_sw_context_rx *sw_ctx_rx; in init_ctx_rx() local
2640 sw_ctx_rx = kzalloc(sizeof(*sw_ctx_rx), GFP_KERNEL); in init_ctx_rx()
2641 if (!sw_ctx_rx) in init_ctx_rx()
2644 sw_ctx_rx = ctx->priv_ctx_rx; in init_ctx_rx()
2647 crypto_init_wait(&sw_ctx_rx->async_wait); in init_ctx_rx()
2648 atomic_set(&sw_ctx_rx->decrypt_pending, 1); in init_ctx_rx()
2649 init_waitqueue_head(&sw_ctx_rx->wq); in init_ctx_rx()
2650 skb_queue_head_init(&sw_ctx_rx->rx_list); in init_ctx_rx()
2651 skb_queue_head_init(&sw_ctx_rx->async_hold); in init_ctx_rx()
2653 return sw_ctx_rx; in init_ctx_rx()
2690 struct tls_sw_context_rx *sw_ctx_rx = NULL; in tls_set_sw_offload() local
2718 sw_ctx_rx = ctx->priv_ctx_rx; in tls_set_sw_offload()
2721 aead = &sw_ctx_rx->aead_recv; in tls_set_sw_offload()
2762 if (sw_ctx_rx) { in tls_set_sw_offload()
2763 tfm = crypto_aead_tfm(sw_ctx_rx->aead_recv); in tls_set_sw_offload()
2766 sw_ctx_rx->async_capable = in tls_set_sw_offload()
2770 rc = tls_strp_init(&sw_ctx_rx->strp, sk); in tls_set_sw_offload()