Lines Matching defs:ssbp
317 rmcadm_send_srecord_bp_t ssbp;
553 ssbp.data_len = ssbp32.data_len;
554 ssbp.data_buf = (caddr_t)(uintptr_t)ssbp32.data_buf;
555 ssbp.resp_bp.msg_type = ssbp32.resp_bp.msg_type;
556 ssbp.resp_bp.msg_len = ssbp32.resp_bp.msg_len;
557 ssbp.resp_bp.msg_bytes = ssbp32.resp_bp.msg_bytes;
558 ssbp.resp_bp.msg_buf =
560 ssbp.wait_time = ssbp32.wait_time;
564 if (ddi_copyin((caddr_t)arg, (caddr_t)&ssbp,
565 sizeof (ssbp), mode))
570 if (ddi_copyin((caddr_t)arg, (caddr_t)&ssbp,
571 sizeof (ssbp), mode) != 0)
578 user_data_buf = ssbp.data_buf;
584 ssbp.data_buf = kmem_alloc(ssbp.data_len, KM_SLEEP);
586 if (ddi_copyin(user_data_buf, ssbp.data_buf,
587 ssbp.data_len, mode) != 0) {
589 kmem_free(ssbp.data_buf, ssbp.data_len);
590 ssbp.data_buf = user_data_buf;
600 user_resp_buf = ssbp.resp_bp.msg_buf;
602 ssbp.resp_bp.msg_buf =
603 kmem_alloc(ssbp.resp_bp.msg_len, KM_SLEEP);
606 kmem_free(ssbp.data_buf, ssbp.data_len);
615 rmc_respp->msg_type = ssbp.resp_bp.msg_type;
616 rmc_respp->msg_buf = ssbp.resp_bp.msg_buf;
617 rmc_respp->msg_len = ssbp.resp_bp.msg_len;
618 rmc_respp->msg_bytes = ssbp.resp_bp.msg_bytes;
620 ssbp.status = rmc_comm_send_srecord_bp(ssbp.data_buf,
621 ssbp.data_len, rmc_respp, ssbp.wait_time);
626 ssbp.resp_bp.msg_bytes = rmc_respp->msg_bytes;
628 if (ssbp.status != RCNOERR) {
629 retval = rmcadm_get_errno(ssbp.status);
635 if (ddi_copyout(ssbp.resp_bp.msg_buf, user_resp_buf,
636 ssbp.resp_bp.msg_bytes, mode) != 0) {
644 if (ssbp.data_buf)
645 kmem_free(ssbp.data_buf, ssbp.data_len);
646 if (ssbp.resp_bp.msg_buf)
647 kmem_free(ssbp.resp_bp.msg_buf, ssbp.resp_bp.msg_len);
649 ssbp.data_buf = user_data_buf;
650 ssbp.resp_bp.msg_buf = user_resp_buf;
662 ssbp32.data_len = ssbp.data_len;
663 ssbp32.data_buf = (caddr32_t)(uintptr_t)ssbp.data_buf;
664 ssbp32.resp_bp.msg_type = ssbp.resp_bp.msg_type;
665 ssbp32.resp_bp.msg_len = ssbp.resp_bp.msg_len;
666 ssbp32.resp_bp.msg_bytes = ssbp.resp_bp.msg_bytes;
668 (caddr32_t)(uintptr_t)ssbp.resp_bp.msg_buf;
669 ssbp32.wait_time = ssbp.wait_time;
678 if (ddi_copyout((caddr_t)&ssbp, (caddr_t)arg,
679 sizeof (ssbp), mode))
684 if (ddi_copyout((caddr_t)&ssbp, (caddr_t)arg, sizeof (ssbp),