Lines Matching defs:sk

90 	struct sock *sk;
108 struct sock *sk;
127 void (*saved_data_ready)(struct sock *sk);
160 void (*sk_destruct)(struct sock *sk);
227 int (*push_pending_record)(struct sock *sk, int flags);
228 void (*sk_write_space)(struct sock *sk);
252 struct sock *sk;
254 void (*sk_destruct)(struct sock *sk);
270 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
278 struct sock *sk, u32 seq, u8 *rcd_sn,
344 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
347 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
353 struct sock *sk = skb->sk;
355 return sk && sk_fullsock(sk) &&
356 (smp_load_acquire(&sk->sk_validate_xmit_skb) ==
363 static inline struct tls_context *tls_get_ctx(const struct sock *sk)
365 const struct inet_connection_sock *icsk = inet_csk(sk);
391 static inline bool tls_sw_has_ctx_tx(const struct sock *sk)
393 struct tls_context *ctx = tls_get_ctx(sk);
400 static inline bool tls_sw_has_ctx_rx(const struct sock *sk)
402 struct tls_context *ctx = tls_get_ctx(sk);
425 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction)
427 return __tls_driver_ctx(tls_get_ctx(sk), direction);
433 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq)
435 struct tls_context *tls_ctx = tls_get_ctx(sk);
443 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len)
445 struct tls_context *tls_ctx = tls_get_ctx(sk);
455 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq)
457 struct tls_context *tls_ctx = tls_get_ctx(sk);
465 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type)
467 struct tls_context *tls_ctx = tls_get_ctx(sk);
473 static inline bool tls_offload_tx_resync_pending(struct sock *sk)
475 struct tls_context *tls_ctx = tls_get_ctx(sk);
486 void tls_device_sk_destruct(struct sock *sk);
487 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
489 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk)
491 if (!sk_fullsock(sk) ||
492 smp_load_acquire(&sk->sk_destruct) != tls_device_sk_destruct)
494 return tls_get_ctx(sk)->rx_conf == TLS_HW;