PSM_ACK
if (c == PSM_ACK) /* aux dev is about to reset... */
if ((b == PSM_ACK) || (b == PSM_RESEND)
if (res == PSM_ACK)
if (res == PSM_ACK)
case PSM_ACK:
case PSM_ACK:
if (send_aux_command(sc->kbdc, 0xe7) != PSM_ACK) {
if (send_aux_command(sc->kbdc, seq[i]) != PSM_ACK) {
if (send_aux_command(kbdc, 0xe1) != PSM_ACK)
res = send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, readcmd) != PSM_ACK;
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, reg) != PSM_ACK;
res = send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, writecmd) != PSM_ACK;
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, reg) != PSM_ACK;
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, writecmd) != PSM_ACK;
res |= send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, val) != PSM_ACK;
res = send_aux_command(kbdc, ELANTECH_CUSTOM_CMD) != PSM_ACK;
res |= send_aux_command(kbdc, cmd) != PSM_ACK;
return (res == PSM_ACK);
return (res == PSM_ACK);
if (res != PSM_ACK)
if (res != PSM_ACK)
return ((res == PSM_ACK) ? rate : -1);
return (res == PSM_ACK);
return ((res == PSM_ACK) ? val : -1);
return (res == PSM_ACK);