Lines Matching defs:up
285 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i];
287 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
295 curr_cpu = DR_UNUM2SBD_UNUM(up->sbc_cm.sbdev_unum,
299 up->sbc_cm.sbdev_path);
303 if (up->sbc_cm.sbdev_state == DR_STATE_UNCONFIGURED) {
311 up->sbc_cpu_id);
313 CPU_SGN_MAPOUT(up->sbc_cpu_id);
375 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i];
378 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
380 cp = cpu_get(up->sbc_cpu_id);
383 f, up->sbc_cpu_id);
389 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_CPUSTART);
392 PR_CPU("%s: cpu %d powered ON\n", f, up->sbc_cpu_id);
396 PR_CPU("%s: onlining cpu %d...\n", f, up->sbc_cpu_id);
399 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_ONLINE);
427 dr_cpu_unit_t *up;
444 up = (dr_cpu_unit_t *)devlist[i];
445 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
456 if (ds[c].d_cpu.cs_unit == up->sbc_cm.sbdev_unum) {
458 dr_dev_err(CE_WARN, &up->sbc_cm,
467 cpuid = up->sbc_cpu_id;
469 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_OFFLINE);
475 up->sbc_cpu_flags = cp->cpu_flags;
485 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_OFFLINE);
499 err = drmach_release(up->sbc_cm.sbdev_id);
501 DRERR_SET_C(&up->sbc_cm.sbdev_error, &err);
518 up = (dr_cpu_unit_t *)devlist[i];
519 (void) dr_cancel_cpu(up);
553 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i];
556 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
558 cp = cpu_get(up->sbc_cpu_id);
568 curr_cpu = DR_UNUM2SBD_UNUM(up->sbc_cm.sbdev_unum,
572 up->sbc_cm.sbdev_path);
581 f, up->sbc_cpu_id);
589 PR_CPU("%s: offlining cpu %d\n", f, up->sbc_cpu_id);
592 f, up->sbc_cpu_id);
593 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_OFFLINE);
602 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_CPUSTOP);
605 PR_CPU("%s: cpu %d powered OFF\n", f, up->sbc_cpu_id);
871 dr_cancel_cpu(dr_cpu_unit_t *up)
876 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up));
878 if (cpu_flagged_active(up->sbc_cpu_flags)) {
885 PR_CPU("%s: bringing cpu %d back ONLINE\n", f, up->sbc_cpu_id);
888 cp = cpu[up->sbc_cpu_id];
893 "cpu %d", f, up->sbc_cpu_id);
901 f, up->sbc_cpu_id);
907 if (cpu_flagged_nointr(up->sbc_cpu_flags)) {
911 up->sbc_cpu_id);
923 dr_disconnect_cpu(dr_cpu_unit_t *up)
930 ASSERT((up->sbc_cm.sbdev_state == DR_STATE_CONNECTED) ||
931 (up->sbc_cm.sbdev_state == DR_STATE_UNCONFIGURED));
933 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up));
935 if (up->sbc_cm.sbdev_state == DR_STATE_CONNECTED) {
940 PR_CPU("%s: cpu %d never brought in\n", f, up->sbc_cpu_id);
944 err = drmach_cpu_disconnect(up->sbc_cm.sbdev_id);
948 DRERR_SET_C(&up->sbc_cm.sbdev_error, &err);