Lines Matching refs:tls_ctx
207 * but tls_ctx->netdev might still be kept, because TX-side driver
366 void tls_sw_strparser_done(struct tls_context *tls_ctx);
372 void tls_sw_cancel_work_tx(struct tls_context *tls_ctx);
374 void tls_sw_free_ctx_tx(struct tls_context *tls_ctx);
377 void tls_sw_free_ctx_rx(struct tls_context *tls_ctx);
420 static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx)
422 return tls_ctx->pending_open_record_frags;
582 const struct tls_context *tls_ctx)
584 return (struct tls_sw_context_rx *)tls_ctx->priv_ctx_rx;
588 const struct tls_context *tls_ctx)
590 return (struct tls_sw_context_tx *)tls_ctx->priv_ctx_tx;
594 tls_offload_ctx_tx(const struct tls_context *tls_ctx)
596 return (struct tls_offload_context_tx *)tls_ctx->priv_ctx_tx;
621 tls_offload_ctx_rx(const struct tls_context *tls_ctx)
623 return (struct tls_offload_context_rx *)tls_ctx->priv_ctx_rx;
627 static inline void *__tls_driver_ctx(struct tls_context *tls_ctx,
631 return tls_offload_ctx_tx(tls_ctx)->driver_state;
633 return tls_offload_ctx_rx(tls_ctx)->driver_state;
648 struct tls_context *tls_ctx = tls_get_ctx(sk);
649 struct tls_offload_context_rx *rx_ctx = tls_offload_ctx_rx(tls_ctx);
658 struct tls_context *tls_ctx = tls_get_ctx(sk);
659 struct tls_offload_context_rx *rx_ctx = tls_offload_ctx_rx(tls_ctx);
670 struct tls_context *tls_ctx = tls_get_ctx(sk);
671 struct tls_offload_context_rx *rx_ctx = tls_offload_ctx_rx(tls_ctx);
680 struct tls_context *tls_ctx = tls_get_ctx(sk);
682 tls_offload_ctx_rx(tls_ctx)->resync_type = type;
688 struct tls_context *tls_ctx = tls_get_ctx(sk);
691 ret = test_bit(TLS_TX_SYNC_SCHED, &tls_ctx->flags);
719 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
752 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,