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()
154 struct alg_sock *ask = alg_sk(sk); in alg_bind() local
188 if (ask->refcnt | ask->nokey_refcnt) in alg_bind()
191 swap(ask->type, type); in alg_bind()
192 swap(ask->private, private); in alg_bind()
207 struct alg_sock *ask = alg_sk(sk); in alg_setkey() local
208 const struct af_alg_type *type = ask->type; in alg_setkey()
220 err = type->setkey(ask->private, key, keylen); in alg_setkey()
232 struct alg_sock *ask = alg_sk(sk); in alg_setsockopt() local
237 if (ask->refcnt) in alg_setsockopt()
240 type = ask->type; in alg_setsockopt()
260 err = type->setauthsize(ask->private, optlen); in alg_setsockopt()
271 struct alg_sock *ask = alg_sk(sk); in af_alg_accept() local
278 type = ask->type; in af_alg_accept()
293 err = type->accept(ask->private, sk2); in af_alg_accept()
297 err = type->accept_nokey(ask->private, sk2); in af_alg_accept()
304 if (nokey || !ask->refcnt++) in af_alg_accept()
306 ask->nokey_refcnt += nokey; in af_alg_accept()
356 struct alg_sock *ask = alg_sk(sk); in alg_sock_destruct() local
358 alg_do_release(ask->type, ask->private); in alg_sock_destruct()