power_state
lm_power_state_t power_state,
if(power_state == LM_POWER_STATE_D0)
lm_power_state_t power_state,
lm_power_state_t power_state,
switch( power_state )
lm_power_state_t power_state,
static void *power_state;
if ((error = ddi_soft_state_init(&power_state,
ddi_soft_state_fini(&power_state);
ddi_soft_state_fini(&power_state);
if ((softsp = ddi_get_soft_state(power_state, power_inst))
if (ddi_soft_state_zalloc(power_state, power_inst) != DDI_SUCCESS)
softsp = ddi_get_soft_state(power_state, power_inst);
ddi_soft_state_free(power_state, power_inst);
if ((softsp = ddi_get_soft_state(power_state, power_inst)) ==
if ((softsp = ddi_get_soft_state(power_state, power_inst)) ==
if ((softsp = ddi_get_soft_state(power_state, power_inst)) ==
if ((softsp = ddi_get_soft_state(power_state, power_inst)) == NULL)
if ((softsp = ddi_get_soft_state(power_state, power_inst)) == NULL) {
int rval, reason, power_state = 0;
power_state = SATA_POWER_STOPPED;
power_state = SATA_POWER_STANDBY;
power_state = SATA_POWER_IDLE;
power_state = SATA_POWER_IDLE;
power_state = SATA_POWER_ACTIVE;
switch (power_state) {
int power_state;
power_state = scmd->satacmd_sec_count_lsb;
if (power_state == SATA_PWRMODE_STANDBY &&
enum power_state compute_power_state(struct sysctrl_soft_state *softsp,
enum power_state current_power_state;
if (softsp->power_state != current_power_state) {
if (softsp->power_state == REDUNDANT) {
} else if (softsp->power_state == BELOW_MINIMUM) {
if (softsp->power_state != BOOT) {
softsp->power_state = current_power_state;
if (softsp->power_state == BELOW_MINIMUM &&
enum power_state
kstat_named_init(&sysksp->power_state, POWER_KSTAT_NAMED,
sysksp->power_state.value.i32 = softsp->power_state;
extern enum power_state compute_power_state(struct sysctrl_soft_state *, int);
enum power_state power_state; /* redundant power state */
struct kstat_named power_state; /* redundant power status */