Lines Matching refs:pg_tmpl

1717 scf_tmpl_get_by_pg(scf_propertygroup_t *pg, scf_pg_tmpl_t *pg_tmpl, int flags)  in scf_tmpl_get_by_pg()  argument
1733 scf_tmpl_pg_reset(pg_tmpl); in scf_tmpl_get_by_pg()
1872 pg_tmpl->pt_h = h; in scf_tmpl_get_by_pg()
1873 pg_tmpl->pt_pg = p->pw_pg; in scf_tmpl_get_by_pg()
1874 pg_tmpl->pt_inst = p->pw_inst; in scf_tmpl_get_by_pg()
1878 pg_tmpl->pt_snap = p->pw_snap; in scf_tmpl_get_by_pg()
1879 pg_tmpl->pt_svc = p->pw_svc; in scf_tmpl_get_by_pg()
1883 pg_tmpl->pt_populated = 1; in scf_tmpl_get_by_pg()
1937 const char *pg_name, const char *pg_type, scf_pg_tmpl_t *pg_tmpl, int flags) in scf_tmpl_get_by_pg_name() argument
1946 assert(pg_tmpl != NULL); in scf_tmpl_get_by_pg_name()
1947 h = pg_tmpl->pt_h; in scf_tmpl_get_by_pg_name()
1950 scf_tmpl_pg_reset(pg_tmpl); in scf_tmpl_get_by_pg_name()
2031 pg_tmpl->pt_h = h; in scf_tmpl_get_by_pg_name()
2032 pg_tmpl->pt_pg = p->pw_pg; in scf_tmpl_get_by_pg_name()
2033 pg_tmpl->pt_inst = p->pw_inst; in scf_tmpl_get_by_pg_name()
2037 pg_tmpl->pt_snap = p->pw_snap; in scf_tmpl_get_by_pg_name()
2038 pg_tmpl->pt_svc = p->pw_svc; in scf_tmpl_get_by_pg_name()
2042 pg_tmpl->pt_populated = 1; in scf_tmpl_get_by_pg_name()
2203 scf_pg_tmpl_t *pg_tmpl = NULL; in scf_tmpl_pg_create() local
2209 pg_tmpl = calloc(1, sizeof (scf_pg_tmpl_t)); in scf_tmpl_pg_create()
2210 if (pg_tmpl == NULL) in scf_tmpl_pg_create()
2213 pg_tmpl->pt_h = handle; in scf_tmpl_pg_create()
2215 return (pg_tmpl); in scf_tmpl_pg_create()
2304 scf_pg_tmpl_t *pg_tmpl = NULL; in scf_tmpl_iter_pgs() local
2385 pg_tmpl = t; in scf_tmpl_iter_pgs()
2386 pg_tmpl->pt_orig_inst = inst; in scf_tmpl_iter_pgs()
2387 pg_tmpl->pt_orig_svc = svc; in scf_tmpl_iter_pgs()
2388 pg_tmpl->pt_snap = snap; in scf_tmpl_iter_pgs()
2389 pg_tmpl->pt_is_iter = 1; in scf_tmpl_iter_pgs()
2390 pg_tmpl->pt_iter_last = SCF__TMPL_ITER_NONE; in scf_tmpl_iter_pgs()
2391 pg_tmpl->pt_pg = pg; in scf_tmpl_iter_pgs()
2392 pg_tmpl->pt_populated = 1; in scf_tmpl_iter_pgs()
2398 pg_tmpl = t; in scf_tmpl_iter_pgs()
2399 assert(pg_tmpl->pt_pg != NULL); in scf_tmpl_iter_pgs()
2402 if (pg_tmpl->pt_iter == NULL) { in scf_tmpl_iter_pgs()
2403 pg_tmpl->pt_iter = _get_next_iterator(h, pg_tmpl, snapshot, in scf_tmpl_iter_pgs()
2405 if (pg_tmpl->pt_iter == NULL) { in scf_tmpl_iter_pgs()
2414 while ((err = scf_iter_next_pg(pg_tmpl->pt_iter, in scf_tmpl_iter_pgs()
2415 pg_tmpl->pt_pg)) != 1) { in scf_tmpl_iter_pgs()
2431 scf_iter_destroy(pg_tmpl->pt_iter); in scf_tmpl_iter_pgs()
2432 pg_tmpl->pt_iter = _get_next_iterator(h, in scf_tmpl_iter_pgs()
2433 pg_tmpl, snapshot, in scf_tmpl_iter_pgs()
2435 if (pg_tmpl->pt_iter == NULL) { in scf_tmpl_iter_pgs()
2456 ret = check_target_match(pg_tmpl->pt_pg, in scf_tmpl_iter_pgs()
2460 ret = check_target_match(pg_tmpl->pt_pg, in scf_tmpl_iter_pgs()
2464 ret = check_target_match(pg_tmpl->pt_pg, in scf_tmpl_iter_pgs()
2481 if (scf_tmpl_pg_required(pg_tmpl, &required) == 0) { in scf_tmpl_iter_pgs()
2494 if (scf_tmpl_pg_type(pg_tmpl, &tmpl_type) != -1) { in scf_tmpl_iter_pgs()