Lines Matching refs:val
305 int32_t val;
306 (void) nvpair_value_int32(pv_nvp, &val);
307 (void) printf(" %d", val);
311 uint32_t val, type;
315 (void) nvpair_value_uint32(pv_nvp, &val);
339 topo_sensor_type_name(val, val_str, 48);
340 (void) printf(" 0x%x (%s)", val, val_str);
344 topo_led_type_name(val, val_str, 48);
345 (void) printf(" 0x%x (%s)", val, val_str);
348 topo_sensor_units_name(val, val_str, 48);
349 (void) printf(" 0x%x (%s)", val, val_str);
352 topo_led_state_name(val, val_str, 48);
353 (void) printf(" 0x%x (%s)", val, val_str);
362 topo_sensor_state_name(type, val, val_str, 48);
363 (void) printf(" 0x%x (%s)", val, val_str);
367 (void) printf(" 0x%x", val);
372 int64_t val;
373 (void) nvpair_value_int64(pv_nvp, &val);
374 (void) printf(" %lld", (longlong_t)val);
378 uint64_t val;
379 (void) nvpair_value_uint64(pv_nvp, &val);
380 (void) printf(" 0x%llx", (u_longlong_t)val);
384 double val;
385 (void) nvpair_value_double(pv_nvp, &val);
386 (void) printf(" %lf", (double)val);
390 char *val;
391 (void) nvpair_value_string(pv_nvp, &val);
392 if (!opt_V && strlen(val) > 48) {
393 (void) snprintf(buf, 48, "%s...", val);
396 (void) printf(" %s", val);
401 nvlist_t *val;
403 (void) nvpair_value_nvlist(pv_nvp, &val);
404 if (topo_fmri_nvl2str(thp, val, &fmri, &err) != 0) {
422 int32_t *val;
424 (void) nvpair_value_int32_array(pv_nvp, &val, &nelem);
427 (void) printf("%d ", val[i]);
432 uint32_t *val;
434 (void) nvpair_value_uint32_array(pv_nvp, &val, &nelem);
437 (void) printf("%u ", val[i]);
442 int64_t *val;
444 (void) nvpair_value_int64_array(pv_nvp, &val, &nelem);
447 (void) printf("%lld ", val[i]);
452 uint64_t *val;
454 (void) nvpair_value_uint64_array(pv_nvp, &val, &nelem);
457 (void) printf("%llu ", val[i]);
462 char **val;
464 (void) nvpair_value_string_array(pv_nvp, &val, &nelem);
467 (void) printf("\"%s\" ", val[i]);
629 int32_t val;
631 val = strtol(pp->value, &end, 0);
636 ret = nvlist_add_int32(nvl, TOPO_PROP_VAL_VAL, val);
641 uint32_t val;
643 val = strtoul(pp->value, &end, 0);
648 ret = nvlist_add_uint32(nvl, TOPO_PROP_VAL_VAL, val);
653 int64_t val;
655 val = strtoll(pp->value, &end, 0);
660 ret = nvlist_add_int64(nvl, TOPO_PROP_VAL_VAL, val);
665 uint64_t val;
667 val = strtoull(pp->value, &end, 0);
672 ret = nvlist_add_uint64(nvl, TOPO_PROP_VAL_VAL, val);
683 nvlist_t *val = NULL;
685 if ((ret = topo_fmri_str2nvl(thp, pp->value, &val,
690 val)) != 0)
693 nvlist_free(val);