Lines Matching refs:results
165 nvlist_t *results = NULL; in door_server() local
196 rv = cmd_getinfo(args, &results); in door_server()
199 rv = cmd_changestate(args, &results); in door_server()
203 rv = cmd_private(cmd, args, &results); in door_server()
218 if (results != NULL) { in door_server()
225 if (nvlist_add_uint64(results, HPD_SEQNUM, seqnum) != 0) { in door_server()
232 if (nvlist_pack(results, &buf, &len, in door_server()
243 nvlist_free(results); in door_server()
258 if (results != NULL) in door_server()
259 nvlist_free(results); in door_server()
295 nvlist_t *results; in cmd_getinfo() local
333 if (nvlist_alloc(&results, NV_UNIQUE_NAME_TYPE, 0) != 0) { in cmd_getinfo()
340 if ((nvlist_add_int32(results, HPD_STATUS, 0) != 0) || in cmd_getinfo()
341 (nvlist_add_byte_array(results, HPD_INFO, in cmd_getinfo()
344 nvlist_free(results); in cmd_getinfo()
353 *resultsp = results; in cmd_getinfo()
368 nvlist_t *results = NULL; in cmd_changestate() local
434 if (nvlist_alloc(&results, NV_UNIQUE_NAME_TYPE, 0) != 0) { in cmd_changestate()
441 if ((nvlist_add_int32(results, HPD_STATUS, status) != 0) || in cmd_changestate()
442 (nvlist_add_byte_array(results, HPD_INFO, (uchar_t *)buf, in cmd_changestate()
445 nvlist_free(results); in cmd_changestate()
450 *resultsp = results; in cmd_changestate()
466 nvlist_t *results = NULL; in cmd_private() local
513 if (nvlist_alloc(&results, NV_UNIQUE_NAME_TYPE, 0) != 0) { in cmd_private()
520 if ((nvlist_add_int32(results, HPD_STATUS, status) != 0) || in cmd_private()
521 (nvlist_add_string(results, HPD_OPTIONS, values) != 0)) { in cmd_private()
523 nvlist_free(results); in cmd_private()
531 *resultsp = results; in cmd_private()