Lines Matching refs:newch
312 struct chhead *ch, *newch; in clget_impl() local
327 newch = NULL; in clget_impl()
356 if (newch == NULL) { in clget_impl()
358 newch = kmem_alloc(sizeof (*newch), KM_SLEEP); in clget_impl()
359 newch->ch_timesused = 0; in clget_impl()
360 newch->ch_prog = ci->cl_prog; in clget_impl()
361 newch->ch_vers = ci->cl_vers; in clget_impl()
362 newch->ch_dev = svp->sv_knconf->knc_rdev; in clget_impl()
363 newch->ch_protofmly = kmem_alloc( in clget_impl()
366 (void) strcpy(newch->ch_protofmly, in clget_impl()
368 newch->ch_list = NULL; in clget_impl()
371 ch = newch; in clget_impl()
372 newch = NULL; in clget_impl()
394 if (newch != NULL) { in clget_impl()
395 kmem_free(newch->ch_protofmly, in clget_impl()
396 strlen(newch->ch_protofmly) + 1); in clget_impl()
397 kmem_free(newch, sizeof (*newch)); in clget_impl()
424 if (newch != NULL) { in clget_impl()
425 kmem_free(newch->ch_protofmly, strlen(newch->ch_protofmly) + 1); in clget_impl()
426 kmem_free(newch, sizeof (*newch)); in clget_impl()