CAN_SLEEP
if (lockowned(&sc->mpr_lock) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
if (lockowned(&sc->mpr_lock) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
? CAN_SLEEP : NO_SLEEP;
if (lockowned(&sc->mpr_lock) && sleep_flag == CAN_SLEEP) {
if (sleep_flag == CAN_SLEEP)
error = mpr_wait_command(sc, &cm, 0, CAN_SLEEP);
error = mpr_diag_reset(sc, CAN_SLEEP);
cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout;
if (lockowned(&sc->mpr_lock) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
int sleep_flags = CAN_SLEEP;
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
mpr_wait_command(sc, &cm, 5, CAN_SLEEP);
err = mpr_wait_command(sc, &cm, 30, CAN_SLEEP);
status = mpr_wait_command(sc, &cm, 30, CAN_SLEEP);
status = mpr_wait_command(sc, &cm, 30, CAN_SLEEP);
err = mpr_wait_command(sc, &cm, 30, CAN_SLEEP);
err = mpr_wait_command(sc, &cm, 30, CAN_SLEEP);
cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout;
if (sleep_flag == CAN_SLEEP)