Lines Matching refs:sock

132 	struct sock *sk;
159 void (*saved_data_ready)(struct sock *sk);
191 void (*sk_destruct)(struct sock *sk);
255 int (*push_pending_record)(struct sock *sk, int flags);
256 void (*sk_write_space)(struct sock *sk);
280 struct sock *sk;
282 void (*sk_destruct)(struct sock *sk);
298 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
306 struct sock *sk, u32 seq, u8 *rcd_sn,
367 struct tls_context *tls_ctx_create(struct sock *sk);
368 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
369 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
371 int wait_on_pending_writer(struct sock *sk, long *timeo);
372 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
374 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
376 void tls_err_abort(struct sock *sk, int err);
378 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
379 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
381 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
382 int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
384 int tls_sw_sendpage(struct sock *sk, struct page *page,
387 void tls_sw_release_resources_tx(struct sock *sk);
389 void tls_sw_free_resources_rx(struct sock *sk);
390 void tls_sw_release_resources_rx(struct sock *sk);
392 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
394 bool tls_sw_stream_read(const struct sock *sk);
395 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
399 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
400 int tls_device_sendpage(struct sock *sk, struct page *page,
402 int tls_tx_records(struct sock *sk, int flags);
417 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
420 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
422 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
468 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
471 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
474 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded()
510 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
520 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
613 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx()
622 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx()
631 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
632 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
651 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx()
660 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request()
670 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start()
682 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq) in tls_offload_rx_resync_async_request_end()
692 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type()
700 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending()
713 int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
715 int decrypt_skb(struct sock *sk, struct sk_buff *skb,
719 int tls_sw_fallback_init(struct sock *sk,
726 void tls_device_sk_destruct(struct sock *sk);
727 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
728 void tls_device_free_resources_tx(struct sock *sk);
729 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
730 void tls_device_offload_cleanup_rx(struct sock *sk);
731 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
732 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
733 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
736 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk) in tls_is_sk_rx_device_offloaded()
748 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload()
753 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx()
756 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
761 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx()
763 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec()
766 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx, in tls_device_decrypted()