Lines Matching refs:reason_length
471 size_t reason_length; in ps_suspend_send_response() local
477 reason_length = 0; in ps_suspend_send_response()
480 reason_length = strnlen(reason, SUSPEND_MAX_REASON_SIZE - 1); in ps_suspend_send_response()
481 ASSERT(reason[reason_length] == '\0'); in ps_suspend_send_response()
483 reason_length++; in ps_suspend_send_response()
487 kmem_zalloc(sizeof (platsvc_suspend_resp_t) + reason_length, in ps_suspend_send_response()
493 if (reason_length > 0) { in ps_suspend_send_response()
494 bcopy(reason, &resp->reason, reason_length - 1); in ps_suspend_send_response()
496 resp->reason[reason_length] = '\0'; in ps_suspend_send_response()
502 sizeof (platsvc_suspend_resp_t) + reason_length); in ps_suspend_send_response()
517 reason_length)) != 0) { in ps_suspend_send_response()
530 kmem_free(resp, sizeof (platsvc_suspend_resp_t) + reason_length); in ps_suspend_send_response()