• Home
  • Raw
  • Download

Lines Matching refs:sk

28 	struct sock sk;  member
50 int (*accept)(void *private, struct sock *sk);
51 int (*accept_nokey)(void *private, struct sock *sk);
98 struct sock *sk; member
168 void af_alg_release_parent(struct sock *sk);
169 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
174 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk() argument
176 return (struct alg_sock *)sk; in alg_sk()
185 static inline int af_alg_sndbuf(struct sock *sk) in af_alg_sndbuf() argument
187 struct alg_sock *ask = alg_sk(sk); in af_alg_sndbuf()
190 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_sndbuf()
200 static inline bool af_alg_writable(struct sock *sk) in af_alg_writable() argument
202 return PAGE_SIZE <= af_alg_sndbuf(sk); in af_alg_writable()
211 static inline int af_alg_rcvbuf(struct sock *sk) in af_alg_rcvbuf() argument
213 struct alg_sock *ask = alg_sk(sk); in af_alg_rcvbuf()
216 return max_t(int, max_t(int, sk->sk_rcvbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_rcvbuf()
226 static inline bool af_alg_readable(struct sock *sk) in af_alg_readable() argument
228 return PAGE_SIZE <= af_alg_rcvbuf(sk); in af_alg_readable()
231 unsigned int af_alg_count_tsgl(struct sock *sk, size_t bytes, size_t offset);
232 void af_alg_pull_tsgl(struct sock *sk, size_t used, struct scatterlist *dst,
234 void af_alg_wmem_wakeup(struct sock *sk);
235 int af_alg_wait_for_data(struct sock *sk, unsigned flags, unsigned min);
244 struct af_alg_async_req *af_alg_alloc_areq(struct sock *sk,
246 int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,