Lines Matching defs:up
229 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i];
231 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
239 if ((up->sbc_cm.sbdev_unum % MAX_CORES_PER_CMP) == 0) {
241 up->sbc_cm.sbdev_path);
285 dr_cpu_unit_t *up = (dr_cpu_unit_t *)cp;
286 up->sbc_cpu_id = cpuid;
306 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i];
309 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
311 cp = cpu_get(up->sbc_cpu_id);
314 f, up->sbc_cpu_id);
320 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_CPUSTART);
323 PR_CPU("%s: cpu %d powered ON\n", f, up->sbc_cpu_id);
327 PR_CPU("%s: onlining cpu %d...\n", f, up->sbc_cpu_id);
330 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_ONLINE);
358 dr_cpu_unit_t *up;
375 up = (dr_cpu_unit_t *)devlist[i];
376 if (!DR_DEV_IS_ATTACHED(&up->sbc_cm)) {
379 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
389 if (ds[c].d_cpu.cs_unit == up->sbc_cm.sbdev_unum) {
391 dr_dev_err(CE_WARN, &up->sbc_cm,
401 cpuid = up->sbc_cpu_id;
403 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_OFFLINE);
409 up->sbc_cpu_flags = cp->cpu_flags;
419 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_OFFLINE);
433 err = drmach_release(up->sbc_cm.sbdev_id);
435 DRERR_SET_C(&up->sbc_cm.sbdev_error, &err);
452 up = (dr_cpu_unit_t *)devlist[i];
453 (void) dr_cancel_cpu(up);
485 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i];
488 if (!DR_DEV_IS_ATTACHED(&up->sbc_cm)) {
492 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up));
494 cp = cpu_get(up->sbc_cpu_id);
504 if ((up->sbc_cm.sbdev_unum % MAX_CORES_PER_CMP) == 0) {
506 up->sbc_cm.sbdev_path);
514 f, up->sbc_cpu_id);
522 PR_CPU("%s: offlining cpu %d\n", f, up->sbc_cpu_id);
525 f, up->sbc_cpu_id);
526 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_OFFLINE);
535 dr_dev_err(CE_WARN, &up->sbc_cm, ESBD_CPUSTOP);
538 PR_CPU("%s: cpu %d powered OFF\n", f, up->sbc_cpu_id);
557 dr_cpu_unit_t *up = (dr_cpu_unit_t *)cp;
561 if (!DR_DEV_IS_ATTACHED(&up->sbc_cm)) {
575 up->sbc_cpu_id = -1;
804 dr_cancel_cpu(dr_cpu_unit_t *up)
809 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up));
811 if (cpu_flagged_active(up->sbc_cpu_flags)) {
818 PR_CPU("%s: bringing cpu %d back ONLINE\n", f, up->sbc_cpu_id);
821 cp = cpu[up->sbc_cpu_id];
826 "cpu %d", f, up->sbc_cpu_id);
834 f, up->sbc_cpu_id);
840 if (cpu_flagged_nointr(up->sbc_cpu_flags)) {
844 up->sbc_cpu_id);
856 dr_disconnect_cpu(dr_cpu_unit_t *up)
863 ASSERT((up->sbc_cm.sbdev_state == DR_STATE_CONNECTED) ||
864 (up->sbc_cm.sbdev_state == DR_STATE_UNCONFIGURED));
866 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up));
868 if (up->sbc_cm.sbdev_state == DR_STATE_CONNECTED) {
873 PR_CPU("%s: cpu %d never brought in\n", f, up->sbc_cpu_id);
877 err = drmach_cpu_disconnect(up->sbc_cm.sbdev_id);
881 DRERR_SET_C(&up->sbc_cm.sbdev_error, &err);