Lines Matching refs:state
145 cyapa->state = CYAPA_STATE_NO_DEVICE;
147 /* Try to wake from it deep sleep state if it is. */
182 cyapa->state = is_bootloader ? CYAPA_STATE_GEN6_BL
187 cyapa->state = is_bootloader ? CYAPA_STATE_GEN5_BL
334 /* New power state applied in device not match the set power state. */
412 static int cyapa_gen6_deep_sleep(struct cyapa *cyapa, u8 state)
416 if (state == PIP_DEEP_SLEEP_STATE_ON)
424 return cyapa_pip_deep_sleep(cyapa, state);
436 if (cyapa->state != CYAPA_STATE_GEN6_APP)
457 /* Has in correct power mode state, early return. */
477 * state directly, must be wake up from sleep firstly, then
540 dev_err(dev, "set power state to 0x%02x failed: %d\n",
673 switch (cyapa->state) {
682 cyapa->state = CYAPA_STATE_GEN6_APP;
690 * the device state is required.