Lines Matching defs:ask

134 	struct alg_sock *ask = alg_sk(sk);
135 unsigned int nokey = atomic_read(&ask->nokey_refcnt);
137 sk = ask->parent;
138 ask = alg_sk(sk);
141 atomic_dec(&ask->nokey_refcnt);
143 if (atomic_dec_and_test(&ask->refcnt))
152 struct alg_sock *ask = alg_sk(sk);
192 if (atomic_read(&ask->refcnt))
195 swap(ask->type, type);
196 swap(ask->private, private);
210 struct alg_sock *ask = alg_sk(sk);
211 const struct af_alg_type *type = ask->type;
223 err = type->setkey(ask->private, key, keylen);
286 static int alg_setkey_by_key_serial(struct alg_sock *ask, sockptr_t optval,
289 const struct af_alg_type *type = ask->type;
327 key_data = sock_kmalloc(&ask->sk, key_datalen, GFP_KERNEL);
339 err = type->setkey(ask->private, key_data, key_datalen);
341 sock_kzfree_s(&ask->sk, key_data, key_datalen);
348 static inline int alg_setkey_by_key_serial(struct alg_sock *ask,
361 struct alg_sock *ask = alg_sk(sk);
366 if (atomic_read(&ask->refcnt) != atomic_read(&ask->nokey_refcnt))
369 type = ask->type;
384 err = alg_setkey_by_key_serial(ask, optval, optlen);
393 err = type->setauthsize(ask->private, optlen);
401 err = type->setentropy(ask->private, optval, optlen);
412 struct alg_sock *ask = alg_sk(sk);
419 type = ask->type;
439 err = type->accept(ask->private, sk2);
443 err = type->accept_nokey(ask->private, sk2);
448 if (atomic_inc_return_relaxed(&ask->refcnt) == 1)
451 atomic_inc(&ask->nokey_refcnt);
499 struct alg_sock *ask = alg_sk(sk);
501 alg_do_release(ask->type, ask->private);
606 struct alg_sock *ask = alg_sk(sk);
607 struct af_alg_ctx *ctx = ask->private;
647 const struct alg_sock *ask = alg_sk(sk);
648 const struct af_alg_ctx *ctx = ask->private;
704 struct alg_sock *ask = alg_sk(sk);
705 struct af_alg_ctx *ctx = ask->private;
772 struct alg_sock *ask = alg_sk(sk);
773 struct af_alg_ctx *ctx = ask->private;
866 struct alg_sock *ask = alg_sk(sk);
867 struct af_alg_ctx *ctx = ask->private;
904 struct alg_sock *ask = alg_sk(sk);
905 struct af_alg_ctx *ctx = ask->private;
941 struct alg_sock *ask = alg_sk(sk);
942 struct af_alg_ctx *ctx = ask->private;
1168 struct alg_sock *ask = alg_sk(sk);
1169 struct af_alg_ctx *ctx = ask->private;
1236 struct alg_sock *ask = alg_sk(sk);
1237 struct af_alg_ctx *ctx = ask->private;