Lines Matching refs:ask
132 struct alg_sock *ask = alg_sk(sk); in af_alg_release_parent() local
133 unsigned int nokey = ask->nokey_refcnt; in af_alg_release_parent()
134 bool last = nokey && !ask->refcnt; in af_alg_release_parent()
136 sk = ask->parent; in af_alg_release_parent()
137 ask = alg_sk(sk); in af_alg_release_parent()
140 ask->nokey_refcnt -= nokey; in af_alg_release_parent()
142 last = !--ask->refcnt; in af_alg_release_parent()
153 struct alg_sock *ask = alg_sk(sk); in alg_bind() local
185 if (ask->refcnt | ask->nokey_refcnt) in alg_bind()
188 swap(ask->type, type); in alg_bind()
189 swap(ask->private, private); in alg_bind()
204 struct alg_sock *ask = alg_sk(sk); in alg_setkey() local
205 const struct af_alg_type *type = ask->type; in alg_setkey()
217 err = type->setkey(ask->private, key, keylen); in alg_setkey()
229 struct alg_sock *ask = alg_sk(sk); in alg_setsockopt() local
234 if (ask->refcnt) in alg_setsockopt()
237 type = ask->type; in alg_setsockopt()
257 err = type->setauthsize(ask->private, optlen); in alg_setsockopt()
268 struct alg_sock *ask = alg_sk(sk); in af_alg_accept() local
275 type = ask->type; in af_alg_accept()
290 err = type->accept(ask->private, sk2); in af_alg_accept()
294 err = type->accept_nokey(ask->private, sk2); in af_alg_accept()
301 if (nokey || !ask->refcnt++) in af_alg_accept()
303 ask->nokey_refcnt += nokey; in af_alg_accept()
353 struct alg_sock *ask = alg_sk(sk); in alg_sock_destruct() local
355 alg_do_release(ask->type, ask->private); in alg_sock_destruct()