Lines Matching defs:state

334 				 uint8_t state)
340 ret = pnv_pci_set_power_state(php_slot->id, state, &msg);
343 be64_to_cpu(msg.params[2]) != state) {
358 if (state == OPAL_PCI_SLOT_POWER_OFF || state == OPAL_PCI_SLOT_OFFLINE)
367 ret, (state == OPAL_PCI_SLOT_POWER_ON) ? "on" : "off");
372 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state)
388 *state = power_state;
394 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state)
406 *state = presence;
415 static int pnv_php_get_attention_state(struct hotplug_slot *slot, u8 *state)
419 *state = php_slot->attention_state;
423 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state)
429 php_slot->attention_state = state;
435 if (state)
453 if (php_slot->state != PNV_PHP_STATE_REGISTERED)
463 * we should leave the slot in registered state at the
479 * adapter presence state. That means we have to turn the
480 * slot on before going to probe slot's presence state.
520 php_slot->state = PNV_PHP_STATE_POPULATED;
524 php_slot->state = PNV_PHP_STATE_POPULATED;
550 /* clear any state changes that happened due to the reset */
574 * Allow to disable a slot already in the registered state to
576 * reached the populated state
578 if (php_slot->state != PNV_PHP_STATE_POPULATED &&
579 php_slot->state != PNV_PHP_STATE_REGISTERED)
593 php_slot->state = PNV_PHP_STATE_REGISTERED;
656 php_slot->state = PNV_PHP_STATE_INITIALIZED;
716 php_slot->state = PNV_PHP_STATE_REGISTERED;
818 * The PE is left in frozen state if the event is missed. It's
996 php_slot->state = PNV_PHP_STATE_OFFLINE;