Lines Matching refs:prop_hd

250 	vs_prop_hd_t prop_hd;  in vs_props_get()  local
255 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_get()
256 prop_hd.vp_type = VS_PTYPE_GEN; in vs_props_get()
257 prop_hd.vp_ids = propids; in vs_props_get()
258 prop_hd.vp_all = VS_PROPID_GEN_ALL; in vs_props_get()
260 rc = vs_scf_values_get(VS_PGNAME_GENERAL, &prop_hd); in vs_props_get()
262 *vp = prop_hd.vp_gen; in vs_props_get()
283 vs_prop_hd_t prop_hd; in vs_props_set() local
288 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_set()
289 prop_hd.vp_type = VS_PTYPE_GEN; in vs_props_set()
290 prop_hd.vp_ids = propids; in vs_props_set()
291 prop_hd.vp_all = VS_PROPID_GEN_ALL; in vs_props_set()
292 prop_hd.vp_gen = *vp; in vs_props_set()
293 return (vs_scf_values_set(VS_PGNAME_GENERAL, &prop_hd)); in vs_props_set()
318 vs_prop_hd_t prop_hd; in vs_props_se_get() local
327 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_se_get()
328 prop_hd.vp_type = VS_PTYPE_SE; in vs_props_se_get()
329 prop_hd.vp_ids = propids; in vs_props_se_get()
330 prop_hd.vp_all = VS_PROPID_SE_ALL; in vs_props_se_get()
331 (void) strlcpy(prop_hd.vp_se.vep_engid, engid, VS_SE_NAME_LEN); in vs_props_se_get()
335 prop_hd.vp_ids |= VS_PROPID_SE_HOST; in vs_props_se_get()
339 rc = vs_scf_values_get(pgname, &prop_hd); in vs_props_se_get()
347 if ((prop_hd.vp_ids & VS_PROPID_SE_HOST) && in vs_props_se_get()
348 (vs_validate(&prop_hd, VS_PROPID_SE_HOST) != VS_ERR_NONE)) { in vs_props_se_get()
349 prop_hd.vp_se.vep_enable = B_FALSE; in vs_props_se_get()
352 *sep = prop_hd.vp_se; in vs_props_se_get()
380 vs_prop_hd_t prop_hd; in vs_props_se_set() local
389 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_se_set()
390 prop_hd.vp_type = VS_PTYPE_SE; in vs_props_se_set()
391 prop_hd.vp_all = VS_PROPID_SE_ALL; in vs_props_se_set()
402 prop_hd.vp_ids = VS_PROPID_SE_HOST; in vs_props_se_set()
403 if ((rc = vs_scf_values_get(pgname, &prop_hd)) != VS_ERR_NONE) in vs_props_se_set()
406 if (vs_validate(&prop_hd, VS_PROPID_SE_HOST) != VS_ERR_NONE) in vs_props_se_set()
410 prop_hd.vp_ids = propids; in vs_props_se_set()
411 prop_hd.vp_se = *sep; in vs_props_se_set()
413 return (vs_scf_values_set(pgname, &prop_hd)); in vs_props_se_set()
425 vs_prop_hd_t prop_hd; in vs_props_se_create() local
442 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_se_create()
443 prop_hd.vp_type = VS_PTYPE_SE; in vs_props_se_create()
444 prop_hd.vp_all = VS_PROPID_SE_ALL; in vs_props_se_create()
445 prop_hd.vp_ids = propids | VS_PROPID_VALUE_AUTH; in vs_props_se_create()
446 prop_hd.vp_se = *sep; in vs_props_se_create()
450 (void) strlcpy(prop_hd.vp_se.vep_host, engid, MAXHOSTNAMELEN); in vs_props_se_create()
451 prop_hd.vp_ids |= VS_PROPID_SE_HOST; in vs_props_se_create()
454 return (vs_scf_pg_create(pgname, &prop_hd)); in vs_props_se_create()
537 vs_default_value(vs_prop_hd_t *prop_hd, const uint64_t propid) in vs_default_value() argument
539 vs_props_t *vp = &prop_hd->vp_gen; in vs_default_value()
540 vs_props_se_t *vep = &prop_hd->vp_se; in vs_default_value()
589 vs_scf_values_get(const char *pgname, vs_prop_hd_t *prop_hd) in vs_scf_values_get() argument
615 if ((prop_hd->vp_ids & propid) == 0) in vs_scf_values_get()
634 vs_default_value(prop_hd, vpd->vpd_id); in vs_scf_values_get()
641 if ((rc = vs_scf_get(vpd, prop_hd, &vsc, np)) != VS_ERR_NONE) in vs_scf_values_get()
661 vs_scf_get(const vs_propdef_t *vpd, vs_prop_hd_t *prop_hd, in vs_scf_get() argument
667 vs_props_t *vp = &prop_hd->vp_gen; in vs_scf_get()
668 vs_props_se_t *vep = &prop_hd->vp_se; in vs_scf_get()
674 vs_default_value(prop_hd, vpd->vpd_id); in vs_scf_get()
737 (vs_validate(prop_hd, vpd->vpd_id) != VS_ERR_NONE)) { in vs_scf_get()
738 vs_default_value(prop_hd, vpd->vpd_id); in vs_scf_get()
749 vs_scf_pg_create(const char *pgname, vs_prop_hd_t *prop_hd) in vs_scf_pg_create() argument
775 if ((propid & prop_hd->vp_all) && !(propid & prop_hd->vp_ids)) in vs_scf_pg_create()
776 vs_default_value(prop_hd, propid); in vs_scf_pg_create()
779 prop_hd->vp_ids = prop_hd->vp_all; in vs_scf_pg_create()
780 prop_hd->vp_ids |= VS_PROPID_VALUE_AUTH; in vs_scf_pg_create()
782 rc = vs_scf_values_set(pgname, prop_hd); in vs_scf_pg_create()
853 vs_scf_values_set(const char *pgname, vs_prop_hd_t *prop_hd) in vs_scf_values_set() argument
890 if ((prop_hd->vp_ids & propid) == 0) in vs_scf_values_set()
916 if ((rc = vs_scf_set(vpd, prop_hd, &vsc, np)) != VS_ERR_NONE) in vs_scf_values_set()
952 vs_scf_set(const vs_propdef_t *vpd, vs_prop_hd_t *prop_hd, in vs_scf_set() argument
956 vs_props_t *vp = &prop_hd->vp_gen; in vs_scf_set()
957 vs_props_se_t *vep = &prop_hd->vp_se; in vs_scf_set()
959 if ((rc = vs_validate(prop_hd, vpd->vpd_id)) != VS_ERR_NONE) in vs_scf_set()
1096 vs_validate(const vs_prop_hd_t *prop_hd, uint64_t propid) in vs_validate() argument
1099 const vs_props_t *vp = &prop_hd->vp_gen; in vs_validate()
1100 const vs_props_se_t *vep = &prop_hd->vp_se; in vs_validate()
1152 vs_prop_hd_t prop_hd; in vs_props_validate() local
1157 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_validate()
1158 prop_hd.vp_gen = *props; in vs_props_validate()
1159 prop_hd.vp_type = VS_PTYPE_GEN; in vs_props_validate()
1160 prop_hd.vp_ids = propids; in vs_props_validate()
1161 prop_hd.vp_all = VS_PROPID_GEN_ALL; in vs_props_validate()
1167 if (vs_validate(&prop_hd, propid) != VS_ERR_NONE) in vs_props_validate()
1188 vs_prop_hd_t prop_hd; in vs_props_se_validate() local
1193 (void) memset(&prop_hd, 0, sizeof (vs_prop_hd_t)); in vs_props_se_validate()
1194 prop_hd.vp_se = *se_props; in vs_props_se_validate()
1195 prop_hd.vp_type = VS_PTYPE_SE; in vs_props_se_validate()
1196 prop_hd.vp_ids = propids; in vs_props_se_validate()
1197 prop_hd.vp_all = VS_PROPID_SE_ALL; in vs_props_se_validate()
1203 if (vs_validate(&prop_hd, propid) != VS_ERR_NONE) in vs_props_se_validate()