Lines Matching refs:cpu

86 typedef struct cpu {  struct
90 struct cpu *cpu_self; /* pointer to itself */ argument
109 struct cpu *cpu_next; /* next existing CPU */ argument
110 struct cpu *cpu_prev; /* prev existing CPU */ argument
111 struct cpu *cpu_next_onln; /* next online (enabled) CPU */ argument
112 struct cpu *cpu_prev_onln; /* prev online (enabled) CPU */ argument
113 struct cpu *cpu_next_part; /* next CPU in partition */ argument
114 struct cpu *cpu_prev_part; /* prev CPU in partition */ argument
115 struct cpu *cpu_next_lgrp; /* next CPU in latency group */ argument
116 struct cpu *cpu_prev_lgrp; /* prev CPU in latency group */ argument
117 struct cpu *cpu_next_lpl; /* next CPU in lgrp partition */ argument
118 struct cpu *cpu_prev_lpl; argument
353 #define CPU_ACTIVE(cpu) (((cpu)->cpu_flags & CPU_OFFLINE) == 0) argument
454 #define CPUSET_ALL_BUT(set, cpu) cpuset_all_but(&(set), cpu) argument
455 #define CPUSET_ONLY(set, cpu) cpuset_only(&(set), cpu) argument
456 #define CPU_IN_SET(set, cpu) cpu_in_set(&(set), cpu) argument
457 #define CPUSET_ADD(set, cpu) cpuset_add(&(set), cpu) argument
458 #define CPUSET_DEL(set, cpu) cpuset_del(&(set), cpu) argument
467 #define CPUSET_FIND(set, cpu) { \ argument
468 cpu = cpuset_find(&(set)); \
488 #define CPUSET_ATOMIC_DEL(set, cpu) cpuset_atomic_del(&(set), cpu) argument
489 #define CPUSET_ATOMIC_ADD(set, cpu) cpuset_atomic_add(&(set), cpu) argument
491 #define CPUSET_ATOMIC_XADD(set, cpu, result) \ argument
492 (result) = cpuset_atomic_xadd(&(set), cpu)
494 #define CPUSET_ATOMIC_XDEL(set, cpu, result) \ argument
495 (result) = cpuset_atomic_xdel(&(set), cpu)
510 extern struct cpu *cpu[]; /* indexed by CPU number */
511 extern struct cpu **cpu_seq; /* indexed by sequential CPU id */
522 extern struct cpu *cpu_inmotion; /* offline or partition move target */
527 extern struct cpu *curcpup(void);
585 #define CPU_CPR_IS_OFFLINE(cpu) (((cpu)->cpu_cpr_flags & CPU_CPR_ONLINE) == 0) argument
586 #define CPU_CPR_IS_ONLINE(cpu) ((cpu)->cpu_cpr_flags & CPU_CPR_ONLINE) argument
587 #define CPU_SET_CPR_FLAGS(cpu, flag) ((cpu)->cpu_cpr_flags |= flag) argument
691 extern void init_cpu_mstate(struct cpu *, int);
692 extern void term_cpu_mstate(struct cpu *);
694 extern void get_cpu_mstate(struct cpu *, hrtime_t *);
707 int cpu_disable_intr(struct cpu *cp); /* stop issuing interrupts to cpu */
708 void cpu_enable_intr(struct cpu *cp); /* start issuing interrupts to cpu */
794 extern void init_cpu_info(struct cpu *);
795 extern void populate_idstr(struct cpu *);
796 extern void cpu_vm_data_init(struct cpu *);
797 extern void cpu_vm_data_destroy(struct cpu *);