Lines Matching refs:sock

126 	struct sock *sk;
151 void (*saved_data_ready)(struct sock *sk);
181 void (*sk_destruct)(struct sock *sk);
246 int (*push_pending_record)(struct sock *sk, int flags);
247 void (*sk_write_space)(struct sock *sk);
271 struct sock *sk;
273 void (*sk_destruct)(struct sock *sk);
289 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
297 struct sock *sk, u32 seq, u8 *rcd_sn,
352 struct tls_context *tls_ctx_create(struct sock *sk);
353 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
354 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
356 int wait_on_pending_writer(struct sock *sk, long *timeo);
357 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
359 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
361 void tls_err_abort(struct sock *sk, int err);
363 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
364 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
366 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
367 int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
369 int tls_sw_sendpage(struct sock *sk, struct page *page,
372 void tls_sw_release_resources_tx(struct sock *sk);
374 void tls_sw_free_resources_rx(struct sock *sk);
375 void tls_sw_release_resources_rx(struct sock *sk);
377 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
379 bool tls_sw_sock_is_readable(struct sock *sk);
380 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
384 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
385 int tls_device_sendpage(struct sock *sk, struct page *page,
387 int tls_tx_records(struct sock *sk, int flags);
402 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
405 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
407 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
453 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
456 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
459 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded()
495 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
505 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
599 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx()
608 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx()
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);
637 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx()
646 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request()
656 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start()
668 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq) in tls_offload_rx_resync_async_request_end()
678 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type()
686 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending()
699 int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
701 int decrypt_skb(struct sock *sk, struct sk_buff *skb,
705 int tls_sw_fallback_init(struct sock *sk,
712 void tls_device_sk_destruct(struct sock *sk);
713 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
714 void tls_device_free_resources_tx(struct sock *sk);
715 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
716 void tls_device_offload_cleanup_rx(struct sock *sk);
717 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
718 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
719 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
722 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk) in tls_is_sk_rx_device_offloaded()
734 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload()
739 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx()
742 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
747 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx()
749 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec()
752 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx, in tls_device_decrypted()