Lines Matching defs:tls_context

240 struct tls_context {
295 struct tls_context *ctx,
353 struct tls_context *tls_ctx_create(struct sock *sk);
354 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
355 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
364 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
365 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
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);
403 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
406 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
408 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
415 static inline bool tls_is_partially_sent_record(struct tls_context *ctx)
420 static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx)
436 static inline u16 tls_user_config(struct tls_context *ctx, bool tx)
496 static inline struct tls_context *tls_get_ctx(const struct sock *sk)
518 static inline void tls_fill_prepend(struct tls_context *ctx,
582 const struct tls_context *tls_ctx)
588 const struct tls_context *tls_ctx)
594 tls_offload_ctx_tx(const struct tls_context *tls_ctx)
601 struct tls_context *ctx = tls_get_ctx(sk);
610 struct tls_context *ctx = tls_get_ctx(sk);
617 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
618 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
621 tls_offload_ctx_rx(const struct tls_context *tls_ctx)
627 static inline void *__tls_driver_ctx(struct tls_context *tls_ctx,
648 struct tls_context *tls_ctx = tls_get_ctx(sk);
658 struct tls_context *tls_ctx = tls_get_ctx(sk);
670 struct tls_context *tls_ctx = tls_get_ctx(sk);
680 struct tls_context *tls_ctx = tls_get_ctx(sk);
688 struct tls_context *tls_ctx = tls_get_ctx(sk);
713 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
715 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
719 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
734 tls_set_device_offload(struct sock *sk, struct tls_context *ctx)
742 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx)
752 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,