Lines Matching refs:sk
130 struct sock *sk; member
157 void (*saved_data_ready)(struct sock *sk);
189 void (*sk_destruct)(struct sock *sk);
256 int (*push_pending_record)(struct sock *sk, int flags);
257 void (*sk_write_space)(struct sock *sk);
281 struct sock *sk; member
283 void (*sk_destruct)(struct sock *sk);
299 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
307 struct sock *sk, u32 seq, u8 *rcd_sn,
368 struct tls_context *tls_ctx_create(struct sock *sk);
369 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
370 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
372 int wait_on_pending_writer(struct sock *sk, long *timeo);
373 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
375 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
377 void tls_err_abort(struct sock *sk, int err);
379 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
380 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
382 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
383 int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
385 int tls_sw_sendpage(struct sock *sk, struct page *page,
388 void tls_sw_release_resources_tx(struct sock *sk);
390 void tls_sw_free_resources_rx(struct sock *sk);
391 void tls_sw_release_resources_rx(struct sock *sk);
393 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
395 bool tls_sw_sock_is_readable(struct sock *sk);
400 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
401 int tls_device_sendpage(struct sock *sk, struct page *page,
403 int tls_tx_records(struct sock *sk, int flags);
418 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
421 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
423 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
469 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
472 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
475 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded() argument
478 return sk_fullsock(sk) && in tls_is_sk_tx_device_offloaded()
479 (smp_load_acquire(&sk->sk_validate_xmit_skb) == in tls_is_sk_tx_device_offloaded()
511 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx() argument
513 struct inet_connection_sock *icsk = inet_csk(sk); in tls_get_ctx()
521 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn() argument
526 tls_err_abort(sk, -EBADMSG); in tls_advance_record_sn()
615 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx() argument
617 struct tls_context *ctx = tls_get_ctx(sk); in tls_sw_has_ctx_tx()
624 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx() argument
626 struct tls_context *ctx = tls_get_ctx(sk); in tls_sw_has_ctx_rx()
633 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
634 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
653 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx() argument
655 return __tls_driver_ctx(tls_get_ctx(sk), direction); in tls_driver_ctx()
662 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request() argument
664 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_request()
672 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start() argument
674 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_async_request_start()
684 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq) in tls_offload_rx_resync_async_request_end() argument
686 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_async_request_end()
694 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type() argument
696 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_set_type()
702 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending() argument
704 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_tx_resync_pending()
715 int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
717 int decrypt_skb(struct sock *sk, struct sk_buff *skb,
721 int tls_sw_fallback_init(struct sock *sk,
728 void tls_device_sk_destruct(struct sock *sk);
729 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
730 void tls_device_free_resources_tx(struct sock *sk);
731 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
732 void tls_device_offload_cleanup_rx(struct sock *sk);
733 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
734 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
735 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
738 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk) in tls_is_sk_rx_device_offloaded() argument
740 if (!sk_fullsock(sk) || in tls_is_sk_rx_device_offloaded()
741 smp_load_acquire(&sk->sk_destruct) != tls_device_sk_destruct) in tls_is_sk_rx_device_offloaded()
743 return tls_get_ctx(sk)->rx_conf == TLS_HW; in tls_is_sk_rx_device_offloaded()
750 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload() argument
755 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx() argument
758 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx() argument
763 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx() argument
765 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec() argument
768 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx, in tls_device_decrypted() argument