Lines Matching defs:resp
252 dr_cpu_hdr_t *resp = &err_resp;
292 if ((rv = dr_cpu_list_wrk(req, &resp, &resp_len)) != 0) {
302 if ((rv = dr_cpu_list_status(req, &resp, &resp_len)) != 0)
314 if (resp == &err_resp) {
315 resp->req_num = (req) ? req->req_num : 0;
316 resp->msg_type = DR_CPU_ERROR;
317 resp->num_records = 0;
322 DR_DBG_DUMP_MSG(resp, resp_len);
325 if (ds_cap_send(ds_handle, resp, resp_len) != 0) {
330 if (DRCPU_VERS_GTEQ(1, 1) || (resp != &err_resp)) {
332 __func__, (void *)resp, resp_len);
333 kmem_free(resp, resp_len);
345 dr_cpu_hdr_t *resp;
350 resp = kmem_alloc(size, KM_SLEEP);
352 __func__, (void *)resp, size);
354 resp->req_num = req->req_num;
355 resp->msg_type = DR_CPU_ERROR;
356 resp->num_records = 0;
358 (void) strcpy((char *)(resp) + sizeof (*resp), msg);
360 *respp = resp;
374 dr_cpu_list_wrk(dr_cpu_hdr_t *req, dr_cpu_hdr_t **resp, int *resp_len)
453 resp, drctl_resp->resp_err_msg);
522 *resp_len = dr_cpu_pack_response(req, res, resp);
627 dr_cpu_hdr_t *resp;
657 resp = kmem_zalloc(resp_len, KM_SLEEP);
659 __func__, (void *)resp, resp_len);
664 resp->req_num = req->req_num;
665 resp->msg_type = DR_CPU_OK;
666 resp->num_records = nstat;
671 resp_stat = DR_CPU_RESP_STATS(resp);
696 *respp = resp;
950 dr_cpu_list_status(dr_cpu_hdr_t *req, dr_cpu_hdr_t **resp, int *resp_len)
1043 *resp = rp;