Lines Matching refs:state
61 * Other values indicate device is in an abnormal state and must be reset.
110 * bit 2: middle mechanism button state if exists
111 * bit 1: right mechanism button state if exists
112 * bit 0: left mechanism button state if exists
331 * Determine the Gen3 trackpad device's current operating state.
336 cyapa->state = CYAPA_STATE_NO_DEVICE;
345 * Normal state after power on or reset,
350 cyapa->state = CYAPA_STATE_BL_IDLE;
356 cyapa->state = CYAPA_STATE_BL_BUSY;
360 cyapa->state = CYAPA_STATE_BL_ACTIVE;
362 cyapa->state = CYAPA_STATE_BL_IDLE;
367 * Normal state when running in operational mode,
368 * may also not in full power state or
375 cyapa->state = CYAPA_STATE_OP;
379 /* Op state when first two registers overwritten with 0x00 */
381 cyapa->state = CYAPA_STATE_OP;
385 cyapa->state = CYAPA_STATE_BL_BUSY;
388 if (cyapa->gen == CYAPA_GEN3 && (cyapa->state == CYAPA_STATE_OP ||
389 cyapa->state == CYAPA_STATE_BL_IDLE ||
390 cyapa->state == CYAPA_STATE_BL_ACTIVE ||
391 cyapa->state == CYAPA_STATE_BL_BUSY))
402 * state immediately.
406 * -EAGAIN device was reset, but is not now in bootloader idle state
417 if (cyapa->state == CYAPA_STATE_BL_IDLE) {
422 if (cyapa->state != CYAPA_STATE_OP)
426 cyapa->state = CYAPA_STATE_NO_DEVICE;
443 if ((cyapa->state == CYAPA_STATE_BL_IDLE) &&
451 if ((cyapa->state != CYAPA_STATE_BL_IDLE) ||
472 if (cyapa->state != CYAPA_STATE_BL_ACTIVE)
487 /* Wait for bootloader to switch to idle state; should take < 100ms */
492 if (cyapa->state != CYAPA_STATE_BL_IDLE)
503 * the device's new state for up to 2 seconds.
532 if (cyapa->state != CYAPA_STATE_OP)
758 dev_warn(dev, "Trackpad device is busy, device state: 0x%02x\n",
813 dev_warn(dev, "Trackpad device is busy. device state = 0x%x\n",
842 dev_err(dev, "Device timed out going to Normal state.\n");
890 * Write to the field to configure power state. Power states include :
917 if (cyapa->state != CYAPA_STATE_OP)
986 if (cyapa->state != CYAPA_STATE_OP)
1054 * if ->state = CYAPA_STATE_BL_IDLE, device has invalid firmware
1063 switch (cyapa->state) {
1198 dev_err(dev, "invalid device state bytes: %02x %02x\n",