Lines Matching refs:nelems

137     uint_t nelems)  in tdg_xml_nvint32arr()  argument
143 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvint32arr()
152 uint_t nelems) in tdg_xml_nvuint32arr() argument
158 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvuint32arr()
167 uint_t nelems) in tdg_xml_nvint64arr() argument
173 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvint64arr()
182 uint_t nelems) in tdg_xml_nvuint64arr() argument
188 for (uint_t i = 0; i < nelems; i++) { in tdg_xml_nvuint64arr()
331 uint_t nelems; in serialize_nvpair() local
334 if (nvpair_value_int32_array(nvp, &val, &nelems) != 0) in serialize_nvpair()
337 tdg_xml_nvint32arr(fp, pad + 2, pname, val, nelems); in serialize_nvpair()
342 uint_t nelems; in serialize_nvpair() local
345 if (nvpair_value_uint32_array(nvp, &val, &nelems) != 0) in serialize_nvpair()
348 tdg_xml_nvuint32arr(fp, pad + 2, pname, val, nelems); in serialize_nvpair()
353 uint_t nelems; in serialize_nvpair() local
356 if (nvpair_value_int64_array(nvp, &val, &nelems) != 0) in serialize_nvpair()
359 tdg_xml_nvint64arr(fp, pad + 2, pname, val, nelems); in serialize_nvpair()
364 uint_t nelems; in serialize_nvpair() local
367 if (nvpair_value_uint64_array(nvp, &val, &nelems) != 0) in serialize_nvpair()
370 tdg_xml_nvuint64arr(fp, pad + 2, pname, val, nelems); in serialize_nvpair()
375 uint_t nelems; in serialize_nvpair() local
378 if (nvpair_value_string_array(nvp, &val, &nelems) != 0) in serialize_nvpair()
382 for (uint_t i = 0; i < nelems; i++) { in serialize_nvpair()
393 uint_t nelems; in serialize_nvpair() local
396 if (nvpair_value_nvlist_array(nvp, &val, &nelems) != 0) in serialize_nvpair()
400 for (uint_t i = 0; i < nelems; i++) { in serialize_nvpair()
545 uint_t nelems; in serialize_property() local
549 &nelems, &err) != 0) in serialize_property()
552 tdg_xml_nvint32arr(fp, pad, pname, val, nelems); in serialize_property()
553 topo_hdl_free(thp, val, (sizeof (int32_t) * nelems)); in serialize_property()
557 uint_t nelems; in serialize_property() local
561 &nelems, &err) != 0) in serialize_property()
564 tdg_xml_nvuint32arr(fp, pad, pname, val, nelems); in serialize_property()
565 topo_hdl_free(thp, val, (sizeof (uint32_t) * nelems)); in serialize_property()
569 uint_t nelems; in serialize_property() local
573 &nelems, &err) != 0) in serialize_property()
576 tdg_xml_nvint64arr(fp, pad, pname, val, nelems); in serialize_property()
577 topo_hdl_free(thp, val, (sizeof (int64_t) * nelems)); in serialize_property()
581 uint_t nelems; in serialize_property() local
585 &nelems, &err) != 0) in serialize_property()
588 tdg_xml_nvuint64arr(fp, pad, pname, val, nelems); in serialize_property()
589 topo_hdl_free(thp, val, (sizeof (uint64_t) * nelems)); in serialize_property()
977 free_nvlist_array(topo_hdl_t *thp, nvlist_t **nvlarr, uint_t nelems) in free_nvlist_array() argument
979 for (uint_t i = 0; i < nelems; i++) { in free_nvlist_array()
983 topo_hdl_free(thp, nvlarr, nelems * sizeof (nvlist_t *)); in free_nvlist_array()