Lines Matching refs:sfd
75 static int afalg_fin_cipher_aio(afalg_aio *ptr, int sfd,
263 static int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf, in afalg_fin_cipher_aio() argument
286 cb->aio_fildes = sfd; in afalg_fin_cipher_aio()
446 actx->bfd = actx->sfd = -1; in afalg_create_sk()
467 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk()
468 if (actx->sfd < 0) { in afalg_create_sk()
479 if (actx->sfd >= 0) in afalg_create_sk()
480 close(actx->sfd); in afalg_create_sk()
481 actx->bfd = actx->sfd = -1; in afalg_create_sk()
530 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk()
547 ret = splice(actx->zc_pipe[0], NULL, actx->sfd, NULL, inl, 0); in afalg_start_cipher_sk()
557 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk()
641 close(actx->sfd); in afalg_cipher_init()
683 ret = afalg_fin_cipher_aio(&actx->aio, actx->sfd, out, inl); in afalg_do_cipher()
711 close(actx->sfd); in afalg_cipher_cleanup()