Lines Matching refs:hdp

757 		sbdp_handle_t		*hdp;
768 hdp = sbd_get_sbdp_handle(sbp, hp);
769 rv = sbdp_ioctl(hdp, iap);
771 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
774 sbd_release_sbdp_handle(hdp);
855 sbdp_handle_t *hdp;
861 hdp = sbd_get_sbdp_handle(sbp, hp);
882 unit = sbdp_get_unit_num(hdp, dip);
884 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
894 sbd_release_sbdp_handle(hdp);
922 sbd_release_sbdp_handle(hdp);
932 sbdp_handle_t *hdp;
939 hdp = sbd_get_sbdp_handle(sbp, hp);
959 unit = sbdp_get_unit_num(hdp, dip);
961 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
986 sbd_release_sbdp_handle(hdp);
1001 sbdp_handle_t *hdp;
1010 hdp = sbd_get_sbdp_handle(sbp, hp);
1037 unit = sbdp_get_unit_num(hdp, dip);
1039 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
1074 sbd_release_sbdp_handle(hdp);
1111 sbdp_handle_t *hdp;
1127 hdp = sbd_get_sbdp_handle(sbp, hp);
1128 cpuid = sbdp_get_cpuid(hdp, dip);
1131 SBD_GET_PERR(hdp->h_err, ep);
1138 sbd_release_sbdp_handle(hdp);
1190 sbdp_handle_t *hdp;
1198 hdp = sbd_get_sbdp_handle(sbp, hp);
1199 spe = hdp->h_err;
1200 cpuid = sbdp_get_cpuid(hdp, dip);
1203 sbd_release_sbdp_handle(hdp);
1213 sbd_release_sbdp_handle(hdp);
1216 sbd_release_sbdp_handle(hdp);
1548 sbdp_handle_t *hdp;
1550 hdp = kmem_zalloc(sizeof (sbdp_handle_t), KM_SLEEP);
1551 hdp->h_err = kmem_zalloc(sizeof (sbd_error_t), KM_SLEEP);
1553 hdp->h_board = -1;
1554 hdp->h_wnode = -1;
1556 hdp->h_board = sbp->sb_num;
1557 hdp->h_wnode = sbp->sb_wnode;
1561 hdp->h_flags = 0;
1562 hdp->h_opts = NULL;
1564 hdp->h_flags = SBD_2_SBDP_FLAGS(hp->h_flags);
1565 hdp->h_opts = &hp->h_opts;
1568 return (hdp);
1572 sbd_release_sbdp_handle(sbdp_handle_t *hdp)
1574 if (hdp == NULL)
1577 kmem_free(hdp->h_err, sizeof (sbd_error_t));
1578 kmem_free(hdp, sizeof (sbdp_handle_t));
1582 sbd_reset_error_sbdph(sbdp_handle_t *hdp)
1584 if ((hdp != NULL) && (hdp->h_err != NULL)) {
1585 bzero(hdp->h_err, sizeof (sbd_error_t));
2028 sbdp_handle_t *hdp;
2037 hdp = sbd_get_sbdp_handle(sbp, hp);
2039 if ((rv = sbdp_connect_board(hdp)) != 0) {
2042 SBD_GET_PERR(hdp->h_err, ep);
2056 sbd_release_sbdp_handle(hdp);
2065 sbdp_handle_t *hdp;
2073 hdp = sbd_get_sbdp_handle(sbp, hp);
2075 if ((rv = sbdp_disconnect_board(hdp)) != 0) {
2078 SBD_GET_PERR(hdp->h_err, ep);
2088 sbd_release_sbdp_handle(hdp);
2124 sbdp_handle_t *hdp;
2135 hdp = sbd_get_sbdp_handle(sbp, hp);
2136 if (sbdp_get_board_num(hdp, dip) != sbp->sb_num) {
2137 sbd_release_sbdp_handle(hdp);
2150 sbd_release_sbdp_handle(hdp);
2157 sbd_release_sbdp_handle(hdp);
2164 sbd_release_sbdp_handle(hdp);
2168 unit = sbdp_get_unit_num(hdp, dip);
2172 sbd_release_sbdp_handle(hdp);
2176 sbd_release_sbdp_handle(hdp);
2297 sbdp_handle_t *hdp;
2310 hdp = sbd_get_sbdp_handle(sbp, hp);
2312 if (sbdphw_get_base_physaddr(hdp, mc_dip, &mc_pa)) {
2337 sbd_release_sbdp_handle(hdp);
2358 if (sbdphw_get_base_physaddr(hdp, mc_dip, &mc_pa)) {
2370 sbd_release_sbdp_handle(hdp);
2511 sbdp_handle_t *hdp;
2527 hdp = sbd_get_sbdp_handle(sbp, hp);
2529 cpuid = sbdp_get_cpuid(hdp, dip);
2534 cp->sbc_cpu_impl = sbdp_cpu_get_impl(hdp, dip);
2548 sbd_release_sbdp_handle(hdp);
2692 sbdp_handle_t *hdp;
2699 hdp = sbd_get_sbdp_handle(sbp, hp);
2701 if (sbdp_test_board(hdp, &hp->h_opts) != 0) {
2704 SBD_GET_PERR(hdp->h_err, ep);
2710 sbd_release_sbdp_handle(hdp);
2717 sbdp_handle_t *hdp;
2723 hdp = sbd_get_sbdp_handle(sbp, hp);
2725 if (sbdp_assign_board(hdp) != 0) {
2728 SBD_GET_PERR(hdp->h_err, ep);
2734 sbd_release_sbdp_handle(hdp);
2741 sbdp_handle_t *hdp;
2747 hdp = sbd_get_sbdp_handle(sbp, hp);
2749 if (sbdp_unassign_board(hdp) != 0) {
2752 SBD_GET_PERR(hdp->h_err, ep);
2758 sbd_release_sbdp_handle(hdp);
2765 sbdp_handle_t *hdp;
2771 hdp = sbd_get_sbdp_handle(sbp, hp);
2773 if (sbdp_poweron_board(hdp) != 0) {
2776 SBD_GET_PERR(hdp->h_err, ep);
2782 sbd_release_sbdp_handle(hdp);
2789 sbdp_handle_t *hdp;
2795 hdp = sbd_get_sbdp_handle(sbp, hp);
2797 if (sbdp_poweroff_board(hdp) != 0) {
2800 SBD_GET_PERR(hdp->h_err, ep);
2806 sbd_release_sbdp_handle(hdp);
2822 sbdp_handle_t *hdp;
2839 hdp = sbd_get_sbdp_handle(sbp, hp);
2872 ut = sbdp_get_unit_num(hdp, dip);
2875 SBD_GET_PERR(hdp->h_err, ep);
2896 sbd_release_sbdp_handle(hdp);
3077 sbdp_handle_t *hdp;
3086 hdp = sbd_get_sbdp_handle(sbp, hp);
3127 unit = sbdp_get_unit_num(hdp, dip);
3130 SBD_GET_PERR(hdp->h_err, ep);
3146 sbd_release_sbdp_handle(hdp);
3425 sbdp_handle_t *hdp;
3469 hdp = sbd_get_sbdp_handle(sbp, hp);
3470 spe = hdp->h_err;
3482 unit = sbdp_get_unit_num(hdp, devlist[i].dv_dip);
3484 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
3490 sbd_release_sbdp_handle(hdp);
3528 sbdp_handle_t *hdp;
3532 hdp = sbd_get_sbdp_handle(sbp, hp);
3535 if ((unit = sbdp_get_unit_num(hdp, dip)) < 0) {
3539 SBD_GET_PERR(hdp->h_err, ep);
3540 sbd_release_sbdp_handle(hdp);
3543 sbd_release_sbdp_handle(hdp);
3720 sbdp_handle_t *hdp;
3725 hdp = sbd_get_sbdp_handle(sbp, hp);
3767 unit = sbdp_get_unit_num(hdp, dip);
3772 SBD_GET_PERR(hdp->h_err, ep);
3796 sbd_release_sbdp_handle(hdp);
3849 sbdp_handle_t *hdp;
3853 hdp = sbd_get_sbdp_handle(sbp, hp);
3858 cpuid = sbdp_get_cpuid(hdp, dip);
3869 if (sbdphw_get_base_physaddr(hdp, dip, &basepa)) {
3872 if (sbdp_get_mem_alignment(hdp, dip, &endpa)) {
3933 SBD_GET_PERR(hdp->h_err, ep);
3935 sbd_release_sbdp_handle(hdp);
3949 sbdp_handle_t *hdp;
3955 hdp = sbd_get_sbdp_handle(sbp, hp);
3957 unit = sbdp_get_unit_num(hdp, dip);
3959 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
3960 sbd_release_sbdp_handle(hdp);
3963 sbd_release_sbdp_handle(hdp);
4300 sbdp_handle_t *hdp;
4422 hdp = sbd_get_sbdp_handle(sbp, hp);
4424 if (sbdp_get_board_status(hdp, dstatp) != 0) {
4425 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp));
4426 sbd_release_sbdp_handle(hdp);
4447 sbd_release_sbdp_handle(hdp);
4653 sbdp_handle_t *hdp;
4671 hdp = sbd_get_sbdp_handle(sbp, hp);
4682 cpuid = sbdp_get_cpuid(hdp, dip);
4685 SBD_GET_PERR(hdp->h_err,
4717 if (sbdphw_get_base_physaddr(hdp, dip, &basepa)) {
4731 if (sbdp_get_mem_alignment(hdp, dip, &endpa)) {
4759 sbd_release_sbdp_handle(hdp);