Lines Matching refs:state

332 				 uint8_t state)
338 ret = pnv_pci_set_power_state(php_slot->id, state, &msg);
341 be64_to_cpu(msg.params[2]) != state) {
356 if (state == OPAL_PCI_SLOT_POWER_OFF || state == OPAL_PCI_SLOT_OFFLINE)
365 ret, (state == OPAL_PCI_SLOT_POWER_ON) ? "on" : "off");
370 static int pnv_php_get_power_state(struct hotplug_slot *slot, u8 *state)
386 *state = power_state;
392 static int pnv_php_get_adapter_state(struct hotplug_slot *slot, u8 *state)
404 *state = presence;
413 static int pnv_php_get_attention_state(struct hotplug_slot *slot, u8 *state)
417 *state = php_slot->attention_state;
421 static int pnv_php_set_attention_state(struct hotplug_slot *slot, u8 state)
427 php_slot->attention_state = state;
433 if (state)
451 if (php_slot->state != PNV_PHP_STATE_REGISTERED)
461 * we should leave the slot in registered state at the
477 * adapter presence state. That means we have to turn the
478 * slot on before going to probe slot's presence state.
518 php_slot->state = PNV_PHP_STATE_POPULATED;
522 php_slot->state = PNV_PHP_STATE_POPULATED;
548 /* clear any state changes that happened due to the reset */
572 * Allow to disable a slot already in the registered state to
574 * reached the populated state
576 if (php_slot->state != PNV_PHP_STATE_POPULATED &&
577 php_slot->state != PNV_PHP_STATE_REGISTERED)
591 php_slot->state = PNV_PHP_STATE_REGISTERED;
654 php_slot->state = PNV_PHP_STATE_INITIALIZED;
714 php_slot->state = PNV_PHP_STATE_REGISTERED;
816 * The PE is left in frozen state if the event is missed. It's
994 php_slot->state = PNV_PHP_STATE_OFFLINE;