Lines Matching refs:tls_context

236 struct tls_context {  struct
290 struct tls_context *ctx, argument
348 struct tls_context *tls_ctx_create(struct sock *sk);
349 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
350 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
358 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
359 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
360 void tls_sw_strparser_done(struct tls_context *tls_ctx);
366 void tls_sw_cancel_work_tx(struct tls_context *tls_ctx);
368 void tls_sw_free_ctx_tx(struct tls_context *tls_ctx);
371 void tls_sw_free_ctx_rx(struct tls_context *tls_ctx);
397 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
400 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
402 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
409 static inline bool tls_is_partially_sent_record(struct tls_context *ctx) in tls_is_partially_sent_record()
414 static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx) in tls_is_pending_open_record()
430 static inline u16 tls_user_config(struct tls_context *ctx, bool tx) in tls_user_config()
493 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
515 static inline void tls_fill_prepend(struct tls_context *ctx, in tls_fill_prepend()
579 const struct tls_context *tls_ctx) in tls_sw_ctx_rx()
585 const struct tls_context *tls_ctx) in tls_sw_ctx_tx()
591 tls_offload_ctx_tx(const struct tls_context *tls_ctx) in tls_offload_ctx_tx()
598 struct tls_context *ctx = tls_get_ctx(sk); in tls_sw_has_ctx_tx()
607 struct tls_context *ctx = tls_get_ctx(sk); in tls_sw_has_ctx_rx()
614 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
615 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
618 tls_offload_ctx_rx(const struct tls_context *tls_ctx) in tls_offload_ctx_rx()
624 static inline void *__tls_driver_ctx(struct tls_context *tls_ctx, in __tls_driver_ctx()
645 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_request()
655 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_async_request_start()
667 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_async_request_end()
677 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_set_type()
685 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_tx_resync_pending()
710 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
712 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
716 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
731 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload()
739 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
749 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx, in tls_device_decrypted()