Lines Matching refs:pltp
2017 struct hwc_parse_mt *pltp = hwc_parse_mtalloc(fname, pl, props); in hwc_parse() local
2021 hwc_parse_thread, pltp, 0, &p0, TS_RUN, maxclsyspri); in hwc_parse()
2022 sema_p(&pltp->sema); in hwc_parse()
2024 pltp->rv = hwc_parse_now(fname, pl, props); in hwc_parse()
2026 ret = pltp->rv; in hwc_parse()
2027 hwc_parse_mtfree(pltp); in hwc_parse()
2036 hwc_parse_thread(struct hwc_parse_mt *pltp) in hwc_parse_thread() argument
2048 pltp->rv = hwc_parse_now(pltp->name, pltp->pl, pltp->props); in hwc_parse_thread()
2049 sema_v(&pltp->sema); in hwc_parse_thread()
2062 struct hwc_parse_mt *pltp = kmem_zalloc(sizeof (*pltp), KM_SLEEP); in hwc_parse_mtalloc() local
2066 pltp->name = kmem_alloc(strlen(name) + 1, KM_SLEEP); in hwc_parse_mtalloc()
2067 bcopy(name, pltp->name, strlen(name) + 1); in hwc_parse_mtalloc()
2068 pltp->pl = pl; in hwc_parse_mtalloc()
2069 pltp->props = props; in hwc_parse_mtalloc()
2071 sema_init(&pltp->sema, 0, NULL, SEMA_DEFAULT, NULL); in hwc_parse_mtalloc()
2072 return (pltp); in hwc_parse_mtalloc()
2079 hwc_parse_mtfree(struct hwc_parse_mt *pltp) in hwc_parse_mtfree() argument
2081 sema_destroy(&pltp->sema); in hwc_parse_mtfree()
2083 kmem_free(pltp->name, strlen(pltp->name) + 1); in hwc_parse_mtfree()
2084 kmem_free(pltp, sizeof (*pltp)); in hwc_parse_mtfree()