Lines Matching refs:cl_init

144 struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init)  in nfs_alloc_client()  argument
152 clp->cl_minorversion = cl_init->minorversion; in nfs_alloc_client()
153 clp->cl_nfs_mod = cl_init->nfs_mod; in nfs_alloc_client()
162 memcpy(&clp->cl_addr, cl_init->addr, cl_init->addrlen); in nfs_alloc_client()
163 clp->cl_addrlen = cl_init->addrlen; in nfs_alloc_client()
165 if (cl_init->hostname) { in nfs_alloc_client()
167 clp->cl_hostname = kstrdup(cl_init->hostname, GFP_KERNEL); in nfs_alloc_client()
175 clp->cl_flags = cl_init->init_flags; in nfs_alloc_client()
176 clp->cl_proto = cl_init->proto; in nfs_alloc_client()
177 clp->cl_nconnect = cl_init->nconnect; in nfs_alloc_client()
178 clp->cl_max_connect = cl_init->max_connect ? cl_init->max_connect : 1; in nfs_alloc_client()
179 clp->cl_net = get_net(cl_init->net); in nfs_alloc_client()
189 clp->cl_xprtsec = cl_init->xprtsec; in nfs_alloc_client()
383 nfs_found_client(const struct nfs_client_initdata *cl_init, in nfs_found_client() argument
408 struct nfs_client *nfs_get_client(const struct nfs_client_initdata *cl_init) in nfs_get_client() argument
411 struct nfs_net *nn = net_generic(cl_init->net, nfs_net_id); in nfs_get_client()
412 const struct nfs_rpc_ops *rpc_ops = cl_init->nfs_mod->rpc_ops; in nfs_get_client()
414 if (cl_init->hostname == NULL) { in nfs_get_client()
423 clp = nfs_match_client(cl_init); in nfs_get_client()
430 return nfs_found_client(cl_init, clp); in nfs_get_client()
436 new = rpc_ops->init_client(new, cl_init); in nfs_get_client()
444 new = rpc_ops->alloc_client(cl_init); in nfs_get_client()
509 const struct nfs_client_initdata *cl_init, in nfs_create_rpc_client() argument
520 .timeout = cl_init->timeparms, in nfs_create_rpc_client()
522 .nodename = cl_init->nodename, in nfs_create_rpc_client()
527 .cred = cl_init->cred, in nfs_create_rpc_client()
528 .xprtsec = cl_init->xprtsec, in nfs_create_rpc_client()
529 .connect_timeout = cl_init->connect_timeout, in nfs_create_rpc_client()
530 .reconnect_timeout = cl_init->reconnect_timeout, in nfs_create_rpc_client()
657 const struct nfs_client_initdata *cl_init) in nfs_init_client() argument
669 error = nfs_create_rpc_client(clp, cl_init, RPC_AUTH_UNIX); in nfs_init_client()
687 struct nfs_client_initdata cl_init = { in nfs_init_server() local
706 set_bit(NFS_CS_NORESVPORT, &cl_init.init_flags); in nfs_init_server()
709 clp = nfs_get_client(&cl_init); in nfs_init_server()