Lines Matching refs:unit
285 int unit; in sbd_cpu_flags() local
287 unit = sbdp_portid_to_cpu_unit(cmp, core); in sbd_cpu_flags()
293 if (SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_cpu_flags()
297 dip = sbp->sb_devlist[NIX(SBD_COMP_CMP)][unit]; in sbd_cpu_flags()
301 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_cpu_flags()
340 int i, rv = 0, unit; in sbd_pre_release_cpu() local
373 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu()
374 if (unit < 0) { in sbd_pre_release_cpu()
386 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_pre_release_cpu()
395 cpuid, unit); in sbd_pre_release_cpu()
435 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu()
436 if (unit < 0) { in sbd_pre_release_cpu()
442 (void) sbd_cancel_cpu(hp, unit); in sbd_pre_release_cpu()
460 int unit; in sbd_pre_attach_cpu() local
490 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_attach_cpu()
491 if (unit < 0) { in sbd_pre_attach_cpu()
504 f, sbp->sb_num, unit); in sbd_pre_attach_cpu()
506 dstate = SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit); in sbd_pre_attach_cpu()
544 int unit; in sbd_post_attach_cpu() local
615 unit = sbdp_get_unit_num(hdp, dip); in sbd_post_attach_cpu()
616 if (unit < 0) { in sbd_post_attach_cpu()
628 cpup = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_post_attach_cpu()
648 int unit; in sbd_pre_detach_cpu() local
694 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_detach_cpu()
695 if (unit < 0) { in sbd_pre_detach_cpu()
708 f, sbp->sb_num, unit); in sbd_pre_detach_cpu()
761 int unit; in sbd_post_detach_cpu() local
790 unit = sbdp_get_unit_num(hdp, dip); in sbd_post_detach_cpu()
791 if (unit < 0) { in sbd_post_detach_cpu()
803 cpup = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_post_detach_cpu()
827 sbd_cancel_cpu(sbd_handle_t *hp, int unit) in sbd_cancel_cpu() argument
839 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_cancel_cpu()
876 SBD_SET_ERRSTR(ep, sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
883 sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
896 SBD_SET_ERRSTR(ep, sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
903 sbp->sb_cpupath[unit]); in sbd_cancel_cpu()
959 sbd_connect_cpu(sbd_board_t *sbp, int unit) in sbd_connect_cpu() argument
973 if (SBD_DEV_IS_PRESENT(sbp, SBD_COMP_CPU, unit)) { in sbd_connect_cpu()
974 dip = sbp->sb_devlist[NIX(SBD_COMP_CPU)][unit]; in sbd_connect_cpu()
978 f, unit, sbp->sb_num); in sbd_connect_cpu()
990 if (SBD_DEV_IS_ATTACHED(sbp, SBD_COMP_CPU, unit)) { in sbd_connect_cpu()
1020 f, unit, sbp->sb_num); in sbd_connect_cpu()
1030 sbd_disconnect_cpu(sbd_handle_t *hp, int unit) in sbd_disconnect_cpu() argument
1042 ASSERT((SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_disconnect_cpu()
1044 (SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, unit) == in sbd_disconnect_cpu()
1047 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit); in sbd_disconnect_cpu()
1051 dip = sbp->sb_devlist[NIX(SBD_COMP_CPU)][unit]; in sbd_disconnect_cpu()