Lines Matching refs:nvpair

58  * For nvlist manipulation. (from nvpair.h)
1493 * encoded size of the nvpair (4 bytes)
1494 * decoded size of the nvpair (4 bytes)
1498 * # of elements in the nvpair (4 bytes)
1500 * 2 zero's for the last nvpair
1510 char *nvpair, *nvp_name;
1524 * Loop thru the nvpair list
1530 nvpair = nvlist + 4 * 2; /* skip the encode/decode size */
1532 name_len = be32_to_cpu(*(uint32_t *) nvpair);
1533 nvpair += 4;
1535 nvp_name = nvpair;
1536 nvpair = nvpair + ((name_len + 3) & ~3); /* align */
1538 type = be32_to_cpu(*(uint32_t *) nvpair);
1539 nvpair += 4;
1541 nelm = be32_to_cpu(*(uint32_t *) nvpair);
1543 printf("empty nvpair\n");
1547 nvpair += 4;
1550 *val = nvpair;
1557 nvlist += encode_size; /* goto the next nvpair */
1569 char *nvpair;
1573 found = nvlist_find_value(nvlist, name, DATA_TYPE_UINT64, &nvpair, &size, 0);
1585 if (!is_word_aligned_ptr((void *)nvpair)) {
1589 memcpy(alignedptr, nvpair, sizeof(uint64_t));
1595 *out = be64_to_cpu(*(uint64_t *) nvpair);
1602 char *nvpair;
1608 found = nvlist_find_value(nvlist, name, DATA_TYPE_STRING, &nvpair, &size, 0);
1615 slen = be32_to_cpu(*(uint32_t *) nvpair);
1621 memcpy(ret, nvpair + 4, slen);
1629 char *nvpair;
1634 found = nvlist_find_value(nvlist, name, DATA_TYPE_NVLIST, &nvpair,
1648 memcpy(ret + sizeof(uint32_t), nvpair, size);
1655 char *nvpair;
1659 found = nvlist_find_value(nvlist, name, DATA_TYPE_NVLIST, &nvpair,
1670 char *nvpair, *nvpairptr;
1677 found = nvlist_find_value(nvlist, name, DATA_TYPE_NVLIST, &nvpair,
1686 nvpairptr = nvpair;
1694 while (nvpairptr < nvpair + size
1696 nvlist += encode_size; /* goto the next nvpair */
1701 if (nvpairptr >= nvpair + size
1703 >= nvpair + size) {