Lines Matching refs:cp

75 sbd_cpu_set_prop(sbd_cpu_unit_t *cp, dev_info_t *dip)
91 switch (cp->sbc_cpu_impl) {
104 "is an unknown %d value", cp->sbc_cpu_impl);
122 cp->sbc_speed = (clock_freq + 500000) / 1000000;
123 cp->sbc_ecache = ecache_size / (1024 * 1024);
127 sbd_fill_cpu_stat(sbd_cpu_unit_t *cp, dev_info_t *dip, sbd_cpu_stat_t *csp)
132 csp->cs_type = cp->sbc_cm.sbdev_type;
133 csp->cs_unit = cp->sbc_cm.sbdev_unum;
137 csp->cs_busy = cp->sbc_cm.sbdev_busy;
138 csp->cs_time = cp->sbc_cm.sbdev_time;
139 csp->cs_ostate = cp->sbc_cm.sbdev_ostate;
140 csp->cs_cpuid = cp->sbc_cpu_id;
154 if ((cp->sbc_speed == 0) || (cp->sbc_ecache == 0))
155 sbd_cpu_set_prop(cp, dip);
158 csp->cs_speed = cp->sbc_speed;
159 csp->cs_ecache = cp->sbc_ecache;
276 sbd_cpu_unit_t *cp;
301 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit);
303 sbd_fill_cpu_stat(cp, dip, &cstat[ncores++]);
318 if (CPU_IMPL_IS_CMP(cp->sbc_cpu_impl)) {
320 sbd_fill_cmp_stat(cstat, ncores, cp->sbc_cpu_impl, psp);
346 sbd_cpu_unit_t *cp;
386 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit);
387 cp->sbc_cpu_flags = cpu[cpuid]->cpu_flags;
389 if (cpu_flagged_active(cp->sbc_cpu_flags)) {
538 struct cpu *cp;
564 cp = cpu_get(cpuid);
566 if (cp == NULL) {
579 if (cpu_is_poweredoff(cp)) {
580 if (cpu_poweron(cp) != 0) {
595 if (cpu_is_offline(cp)) {
598 if (cpu_online(cp) != 0) {
603 f, cp->cpu_id);
832 sbd_cpu_unit_t *cp;
839 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit);
844 if (cpu_flagged_poweredoff(cp->sbc_cpu_flags))
862 cpup = cpu[cp->sbc_cpu_id];
874 f, cp->sbc_cpu_id);
888 if (cpu_flagged_offline(cp->sbc_cpu_flags)) {
890 f, cp->sbc_cpu_id);
894 f, cp->sbc_cpu_id);
909 if (cpu_flagged_online(cp->sbc_cpu_flags)) {
911 f, cp->sbc_cpu_id);
912 } else if (cpu_flagged_offline(cp->sbc_cpu_flags)) {
916 " cpu %d", f, cp->sbc_cpu_id);
920 } else if (cpu_flagged_nointr(cp->sbc_cpu_flags)) {
924 f, cp->sbc_cpu_id);
929 f, cp->sbc_cpu_id);
937 if (cpu_flagged_online(cp->sbc_cpu_flags)) {
941 f, cp->sbc_cpu_id);
943 if (cpu_flagged_offline(cp->sbc_cpu_flags)) {
947 " cpu %d", f, cp->sbc_cpu_id);
1036 sbd_cpu_unit_t *cp;
1047 cp = SBD_GET_BOARD_CPUUNIT(sbp, unit);
1049 cpuid = cp->sbc_cpu_id;