Lines Matching refs:nfsd_serv
202 if (nn->nfsd_serv) in nfsd_nrthreads()
203 rv = nn->nfsd_serv->sv_nrthreads; in nfsd_nrthreads()
213 if (!list_empty(&nn->nfsd_serv->sv_permsocks)) in nfsd_init_socks()
216 error = svc_create_xprt(nn->nfsd_serv, "udp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
221 error = svc_create_xprt(nn->nfsd_serv, "tcp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
342 if (nn->nfsd_serv) { in nfsd_inetaddr_event()
346 svc_age_temp_xprts_now(nn->nfsd_serv, (struct sockaddr *)&sin); in nfsd_inetaddr_event()
373 if (nn->nfsd_serv) { in nfsd_inet6addr_event()
379 svc_age_temp_xprts_now(nn->nfsd_serv, (struct sockaddr *)&sin6); in nfsd_inet6addr_event()
499 if (nn->nfsd_serv) { in nfsd_create_serv()
500 svc_get(nn->nfsd_serv); in nfsd_create_serv()
506 nn->nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, in nfsd_create_serv()
508 if (nn->nfsd_serv == NULL) in nfsd_create_serv()
511 nn->nfsd_serv->sv_maxconn = nn->max_connections; in nfsd_create_serv()
512 error = svc_bind(nn->nfsd_serv, net); in nfsd_create_serv()
514 svc_destroy(nn->nfsd_serv); in nfsd_create_serv()
535 if (nn->nfsd_serv == NULL) in nfsd_nrpools()
538 return nn->nfsd_serv->sv_nrpools; in nfsd_nrpools()
546 if (nn->nfsd_serv != NULL) { in nfsd_get_nrthreads()
547 for (i = 0; i < nn->nfsd_serv->sv_nrpools && i < n; i++) in nfsd_get_nrthreads()
548 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
557 int destroy = (nn->nfsd_serv->sv_nrthreads == 1); in nfsd_destroy()
560 svc_shutdown_net(nn->nfsd_serv, net); in nfsd_destroy()
561 svc_destroy(nn->nfsd_serv); in nfsd_destroy()
563 nn->nfsd_serv = NULL; in nfsd_destroy()
575 if (nn->nfsd_serv == NULL || n <= 0) in nfsd_set_nrthreads()
578 if (n > nn->nfsd_serv->sv_nrpools) in nfsd_set_nrthreads()
579 n = nn->nfsd_serv->sv_nrpools; in nfsd_set_nrthreads()
608 svc_get(nn->nfsd_serv); in nfsd_set_nrthreads()
610 err = nn->nfsd_serv->sv_ops->svo_setup(nn->nfsd_serv, in nfsd_set_nrthreads()
611 &nn->nfsd_serv->sv_pools[i], nthreads[i]); in nfsd_set_nrthreads()
638 if (nrservs == 0 && nn->nfsd_serv == NULL) in nfsd_svc()
650 error = nn->nfsd_serv->sv_ops->svo_setup(nn->nfsd_serv, in nfsd_svc()
658 error = nn->nfsd_serv->sv_nrthreads - 1; in nfsd_svc()
871 if (nn->nfsd_serv == NULL) { in nfsd_pool_stats_open()
876 svc_get(nn->nfsd_serv); in nfsd_pool_stats_open()
877 ret = svc_pool_stats_open(nn->nfsd_serv, file); in nfsd_pool_stats_open()