Lines Matching refs:val
333 pool_value_t val = POOL_VALUE_INITIALIZER;
359 if (pool_get_ns_property(pe, c_name, &val) == POC_STRING) {
360 (void) pool_value_get_string(&val, &sres);
399 if (pool_get_ns_property(elem, c_name, &val) !=
405 (void) pool_value_get_string(&val, &str);
854 const char *name, pool_value_t *val)
862 if (pool_value_set_name(val, name) != PO_SUCCESS) {
872 if (prop_info->pp_op.ppo_get_value(pe, val) == PO_FAIL)
875 return (pool_value_get_type(val));
877 return (pe->pe_get_prop(pe, name, val));
889 pool_get_ns_property(const pool_elem_t *pe, const char *name, pool_value_t *val)
901 ret = pool_get_property(TO_CONF(pe), pe, cb->cb_buf, val);
914 const pool_value_t *val)
942 (void) pool_value_get_string(val, &s2);
964 prop_info->pp_op.ppo_set_value(pe, val) == PO_FAIL)
968 return (pe->pe_put_prop(pe, name, val));
982 pool_value_t *val;
999 if ((val = pool_value_alloc()) == NULL)
1002 pool_value_set_bool(val, (uchar_t)1);
1004 res = pe->pe_put_prop(pe, name, val);
1006 pool_value_free(val);
1021 const pool_value_t *val)
1033 ret = pool_put_property(TO_CONF(pe), pe, cb->cb_buf, val);
1050 const pool_value_t *val)
1057 return (pe->pe_put_prop(pe, name, val));
1070 const pool_value_t *val)
1082 ret = pool_put_any_property(pe, cb->cb_buf, val);
1164 pool_value_t val = POOL_VALUE_INITIALIZER;
1194 if (pool_value_set_string(&val, name) != PO_SUCCESS) {
1199 if (pool_put_property(conf, pe, "pool.name", &val) == PO_FAIL) {
1225 pool_value_t val = POOL_VALUE_INITIALIZER;
1257 props[0] = &val;
1307 if (pool_value_set_string(&val, name) != PO_SUCCESS ||
1308 pool_put_ns_property(pe, "name", &val) != PO_SUCCESS) {
1313 pool_value_set_bool(&val, PO_TRUE);
1314 if (pool_put_any_ns_property(pe, c_default, &val) !=
1342 pool_value_t val = POOL_VALUE_INITIALIZER;
1381 pool_value_set_int64(&val, sys_id);
1382 if (pool_put_any_ns_property(pe, c_sys_prop, &val) != PO_SUCCESS) {
1391 if (pool_value_set_string(&val, refbuf) != PO_SUCCESS) {
1395 if (pool_put_any_ns_property(pe, c_ref_id, &val) != PO_SUCCESS) {
1731 pool_value_t val = POOL_VALUE_INITIALIZER;
1733 if (pool_value_set_name(&val, props[i].pp_pname) ==
1738 if (props[i].pp_op.ppo_get_value(elem, &val) ==
1745 &val, arg) != PO_SUCCESS) {
1821 pool_value_t val = POOL_VALUE_INITIALIZER;
1823 props[0] = &val;
2395 pool_value_t val = POOL_VALUE_INITIALIZER;
2399 pool_value_set_uint64(&val, src_size);
2401 &val);
2402 pool_value_set_uint64(&val, tgt_size);
2404 &val);
2458 pool_value_t val = POOL_VALUE_INITIALIZER;
2467 pool_value_set_uint64(&val, src_size);
2469 &val);
2470 pool_value_set_uint64(&val, tgt_size);
2472 &val);
2809 pool_value_t val = POOL_VALUE_INITIALIZER;
2831 if (pool_get_ns_property(e1, c_sys_prop, &val) == POC_INVAL) {
2834 (void) pool_value_get_int64(&val, &sys_id1);
2835 if (pool_get_ns_property(e2, c_sys_prop, &val) == POC_INVAL) {
2838 (void) pool_value_get_int64(&val, &sys_id2);
2841 if (pool_get_ns_property(e1, "name", &val) == POC_INVAL) {
2844 (void) pool_value_get_string(&val, (const char **)&name1);
2849 if (pool_get_ns_property(e2, "name", &val) == POC_INVAL) {
2853 (void) pool_value_get_string(&val, (const char **)&name2);
2870 pool_value_t val = POOL_VALUE_INITIALIZER;
2889 if (pool_get_ns_property(e1, c_sys_prop, &val) == POC_INVAL) {
2892 (void) pool_value_get_int64(&val, &sys_id1);
2893 if (pool_get_ns_property(e2, c_sys_prop, &val) == POC_INVAL) {
2896 (void) pool_value_get_int64(&val, &sys_id2);