Lines Matching refs:unit

287 			int	unit;  in sbd_cpu_flags()  local
289 unit = sbdp_portid_to_cpu_unit(cmp, core); in sbd_cpu_flags()
295 if (SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_cpu_flags()
299 dip = sbp->sb_devlist[NIX(SBD_COMP_CMP)][unit]; in sbd_cpu_flags()
303 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_cpu_flags()
342 int i, rv = 0, unit; in sbd_pre_release_cpu() local
375 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu()
376 if (unit < 0) { in sbd_pre_release_cpu()
388 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_pre_release_cpu()
397 cpuid, unit); in sbd_pre_release_cpu()
437 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu()
438 if (unit < 0) { in sbd_pre_release_cpu()
444 (void) sbd_cancel_cpu(hp, unit); in sbd_pre_release_cpu()
462 int unit; in sbd_pre_attach_cpu() local
492 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_attach_cpu()
493 if (unit < 0) { in sbd_pre_attach_cpu()
506 f, sbp->sb_num, unit); in sbd_pre_attach_cpu()
508 dstate = SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit); in sbd_pre_attach_cpu()
543 int unit; in sbd_post_attach_cpu() local
614 unit = sbdp_get_unit_num(hdp, dip); in sbd_post_attach_cpu()
615 if (unit < 0) { in sbd_post_attach_cpu()
627 cpup = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_post_attach_cpu()
647 int unit; in sbd_pre_detach_cpu() local
693 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_detach_cpu()
694 if (unit < 0) { in sbd_pre_detach_cpu()
707 f, sbp->sb_num, unit); in sbd_pre_detach_cpu()
760 int unit; in sbd_post_detach_cpu() local
789 unit = sbdp_get_unit_num(hdp, dip); in sbd_post_detach_cpu()
790 if (unit < 0) { in sbd_post_detach_cpu()
802 cpup = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_post_detach_cpu()
826 sbd_cancel_cpu(sbd_handle_t *hp, int unit) in sbd_cancel_cpu() argument
838 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_cancel_cpu()
875 SBD_SET_ERRSTR(ep, sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
882 sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
895 SBD_SET_ERRSTR(ep, sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
902 sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
958 sbd_connect_cpu(sbd_board_t *sbp, int unit) in sbd_connect_cpu() argument
972 if (SBD_DEV_IS_PRESENT(sbp, SBD_COMP_CPU, unit)) { in sbd_connect_cpu()
973 dip = sbp->sb_devlist[NIX(SBD_COMP_CPU)][unit]; in sbd_connect_cpu()
977 f, unit, sbp->sb_num); in sbd_connect_cpu()
989 if (SBD_DEV_IS_ATTACHED(sbp, SBD_COMP_CPU, unit)) { in sbd_connect_cpu()
1019 f, unit, sbp->sb_num); in sbd_connect_cpu()
1029 sbd_disconnect_cpu(sbd_handle_t *hp, int unit) in sbd_disconnect_cpu() argument
1041 ASSERT((SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_disconnect_cpu()
1043 (SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_disconnect_cpu()
1046 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_disconnect_cpu()
1050 dip = sbp->sb_devlist[NIX(SBD_COMP_CPU)][unit]; in sbd_disconnect_cpu()