Lines Matching refs:size
138 size_t size = 0;
164 if (ap_list_pack(hdl->aps, &buf, &size, encoding) != 0 ||
165 nvlist_add_byte_array(nvl, RI_HDL_APS, (uchar_t *)buf, size) != 0) {
170 if (client_list_pack(hdl->cpu_cap_clients, &buf, &size,
173 size) != 0) {
178 if (client_list_pack(hdl->mem_cap_clients, &buf, &size,
181 size) != 0) {
186 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
193 *sizep = size;
213 size_t size;
227 if (ap_pack(aplist, &buf, &size, encoding) != 0)
231 size) != 0) {
240 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
247 *sizep = size;
267 size_t size = 0;
281 if (dev_pack(devlist, &buf, &size, encoding) != 0)
285 size) != 0) {
294 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
301 *sizep = size;
322 size_t size = 0;
336 if (client_pack(client_list, &buf, &size, encoding) != 0)
340 size) != 0) {
349 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
356 *sizep = size;
373 size_t size = 0;
384 if (dev_list_pack(ap->cpus, &buf, &size, encoding) != 0)
388 size) != 0) {
394 if (dev_list_pack(ap->mems, &buf, &size, encoding) != 0)
398 size) != 0) {
404 if (dev_list_pack(ap->ios, &buf, &size, encoding) != 0)
408 size) != 0) {
414 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
421 *sizep = size;
438 size_t size = 0;
449 if (client_list_pack(dev->rcm_clients, &buf, &size, encoding) != 0)
453 size) != 0) {
460 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
467 *sizep = size;
484 size_t size = 0;
505 if (nvlist_pack(nvl, &buf, &size, encoding, 0) != 0) {
512 *sizep = size;
532 size_t size = 0;
534 if (nvlist_pack(nvl_packme, &buf, &size, encoding, 0) != 0) {
540 if (nvlist_add_byte_array(nvl, name, (uchar_t *)buf, size) != 0) {
553 ri_unpack(caddr_t buf, size_t size, ri_hdl_t **hdlp)
567 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
579 size = 0;
581 (uint_t *)&size) != 0) {
587 if (ap_list_unpack(buf, size, &ri_hdl->aps) != 0)
591 size = 0;
593 (uint_t *)&size) != 0) {
599 if (client_list_unpack(buf, size, &ri_hdl->cpu_cap_clients) != 0)
603 size = 0;
605 (uint_t *)&size) != 0) {
611 if (client_list_unpack(buf, size, &ri_hdl->mem_cap_clients) != 0)
627 ap_list_unpack(char *buf, size_t size, ri_ap_t **aps)
635 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
650 size = 0;
652 (uint_t *)&size) != 0) {
657 if (ap_unpack(buf, size, tmp) != 0)
687 dev_list_unpack(char *buf, size_t size, ri_dev_t **devs)
695 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
710 (uint_t *)&size) != 0) {
715 if (dev_unpack(buf, size, tmp) != 0)
745 client_list_unpack(char *buf, size_t size, ri_client_t **clients)
753 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
768 size = 0;
770 (uint_t *)&size) != 0) {
775 if (client_unpack(buf, size, tmp) != 0)
805 client_unpack(char *buf, size_t size, ri_client_t *client)
809 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
829 size = 0;
831 (uchar_t **)&buf, (uint_t *)&size) == 0) {
832 if (nvlist_unpack(buf, size, &client->v_props, 0) != 0) {
846 dev_unpack(char *buf, size_t size, ri_dev_t *dev)
850 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
866 (uint_t *)&size) != 0) {
873 if (client_list_unpack(buf, size, &dev->rcm_clients) != 0) {
884 ap_unpack(char *buf, size_t size, ri_ap_t *ap)
888 if (nvlist_unpack(buf, size, &nvl, 0) != 0) {
903 (uint_t *)&size) != 0) {
910 if (dev_list_unpack(buf, size, &ap->cpus) != 0) {
916 (uint_t *)&size) != 0) {
923 if (dev_list_unpack(buf, size, &ap->mems) != 0) {
929 (uint_t *)&size) != 0) {
936 if (dev_list_unpack(buf, size, &ap->ios) != 0) {
953 size_t size = 0;
956 (uint_t *)&size) != 0) {
962 if (nvlist_unpack(buf, size, new_nvl, 0) != 0) {