Lines Matching defs:cp
50 cpu_intr_on(cpu_t *cp)
53 return ((cp->cpu_flags & CPU_ENABLE) != 0);
60 cpu_intr_next(cpu_t *cp)
66 c = cp->cpu_next_onln;
67 while (c != cp) {
80 cpu_intr_count(cpu_t *cp)
86 c = cp;
91 } while ((c = c->cpu_next) != cp);
99 cpu_intr_enable(cpu_t *cp)
102 if (!cpu_intr_on(cp)) {
103 cpu_enable_intr(cp);
104 cpu_set_state(cp);
118 cpu_intr_disable(cpu_t *cp)
123 if ((cpu_intr_count(cp) > 1) && (cpu_intr_next(cp) != NULL)) {
124 if (cpu_intr_on(cp)) {
131 (void) cyclic_juggle(cp);
132 e = cpu_disable_intr(cp);
136 cpu_set_state(cp);