Lines Matching refs:knconf
200 if (nargs->knconf) { in nfs3_free_args()
201 if (nargs->knconf->knc_protofmly) in nfs3_free_args()
202 kmem_free(nargs->knconf->knc_protofmly, KNC_STRSIZE); in nfs3_free_args()
203 if (nargs->knconf->knc_proto) in nfs3_free_args()
204 kmem_free(nargs->knconf->knc_proto, KNC_STRSIZE); in nfs3_free_args()
205 kmem_free(nargs->knconf, sizeof (*nargs->knconf)); in nfs3_free_args()
206 nargs->knconf = NULL; in nfs3_free_args()
259 struct knetconfig *knconf; /* transport knetconfig structure */ in nfs3_copyin() local
295 knconf = kmem_zalloc(sizeof (*knconf), KM_SLEEP); in nfs3_copyin()
297 if (copyin(STRUCT_FGETP(args, knconf), STRUCT_BUF(knconf_tmp), in nfs3_copyin()
299 kmem_free(knconf, sizeof (*knconf)); in nfs3_copyin()
303 knconf->knc_semantics = STRUCT_FGET(knconf_tmp, knc_semantics); in nfs3_copyin()
304 knconf->knc_protofmly = STRUCT_FGETP(knconf_tmp, knc_protofmly); in nfs3_copyin()
305 knconf->knc_proto = STRUCT_FGETP(knconf_tmp, knc_proto); in nfs3_copyin()
307 knconf->knc_rdev = expldev(STRUCT_FGET(knconf_tmp, knc_rdev)); in nfs3_copyin()
309 knconf->knc_rdev = STRUCT_FGET(knconf_tmp, knc_rdev); in nfs3_copyin()
314 error = copyinstr(knconf->knc_protofmly, pf, KNC_STRSIZE, NULL); in nfs3_copyin()
318 kmem_free(knconf, sizeof (*knconf)); in nfs3_copyin()
322 error = copyinstr(knconf->knc_proto, p, KNC_STRSIZE, NULL); in nfs3_copyin()
326 kmem_free(knconf, sizeof (*knconf)); in nfs3_copyin()
331 knconf->knc_protofmly = pf; in nfs3_copyin()
332 knconf->knc_proto = p; in nfs3_copyin()
334 nargs->knconf = knconf; in nfs3_copyin()
487 struct knetconfig *knconf; /* transport knetconfig structure */ in nfs3_mount() local
611 if ((strlen(args->knconf->knc_protofmly) >= KNC_STRSIZE) || in nfs3_mount()
612 (strlen(args->knconf->knc_proto) >= KNC_STRSIZE)) { in nfs3_mount()
635 svp->sv_knconf = args->knconf; in nfs3_mount()
636 args->knconf = NULL; in nfs3_mount()
708 knconf = rdma_knconf; in nfs3_mount()
847 data->knconf = kmem_alloc(sizeof (*knconf), KM_SLEEP); in nfs3_mount()
848 *data->knconf = *knconf; in nfs3_mount()
851 bcopy(knconf->knc_protofmly, pf, KNC_STRSIZE); in nfs3_mount()
852 bcopy(knconf->knc_proto, pf, KNC_STRSIZE); in nfs3_mount()
853 data->knconf->knc_protofmly = pf; in nfs3_mount()
854 data->knconf->knc_proto = p; in nfs3_mount()
1713 args.knconf = svp->sv_knconf; in nfs3_mountroot()