Lines Matching refs:pltp
1984 struct hwc_parse_mt *pltp = hwc_parse_mtalloc(fname, pl, props); in hwc_parse() local
1988 hwc_parse_thread, pltp, 0, &p0, TS_RUN, maxclsyspri); in hwc_parse()
1989 sema_p(&pltp->sema); in hwc_parse()
1991 pltp->rv = hwc_parse_now(fname, pl, props); in hwc_parse()
1993 ret = pltp->rv; in hwc_parse()
1994 hwc_parse_mtfree(pltp); in hwc_parse()
2003 hwc_parse_thread(struct hwc_parse_mt *pltp) in hwc_parse_thread() argument
2015 pltp->rv = hwc_parse_now(pltp->name, pltp->pl, pltp->props); in hwc_parse_thread()
2016 sema_v(&pltp->sema); in hwc_parse_thread()
2029 struct hwc_parse_mt *pltp = kmem_zalloc(sizeof (*pltp), KM_SLEEP); in hwc_parse_mtalloc() local
2033 pltp->name = kmem_alloc(strlen(name) + 1, KM_SLEEP); in hwc_parse_mtalloc()
2034 bcopy(name, pltp->name, strlen(name) + 1); in hwc_parse_mtalloc()
2035 pltp->pl = pl; in hwc_parse_mtalloc()
2036 pltp->props = props; in hwc_parse_mtalloc()
2038 sema_init(&pltp->sema, 0, NULL, SEMA_DEFAULT, NULL); in hwc_parse_mtalloc()
2039 return (pltp); in hwc_parse_mtalloc()
2046 hwc_parse_mtfree(struct hwc_parse_mt *pltp) in hwc_parse_mtfree() argument
2048 sema_destroy(&pltp->sema); in hwc_parse_mtfree()
2050 kmem_free(pltp->name, strlen(pltp->name) + 1); in hwc_parse_mtfree()
2051 kmem_free(pltp, sizeof (*pltp)); in hwc_parse_mtfree()