CAN_SLEEP
int sleep_flags = CAN_SLEEP;
if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
? CAN_SLEEP : NO_SLEEP;
if (mtx_owned(&sc->mpr_mtx) && 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 (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == 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);
error = mpr_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mpr_wait_command(sc, &cm, MPR_ATA_ID_TIMEOUT, 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);
if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
? CAN_SLEEP:NO_SLEEP;
if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP) {
if (sleep_flag == CAN_SLEEP)
error = mps_wait_command(sc, &cm, 0, CAN_SLEEP);
error = mps_diag_reset(sc, CAN_SLEEP);
cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout;
if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP)
else if (sleep_flag == CAN_SLEEP)
int sleep_flags = CAN_SLEEP;
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
error = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
mps_wait_command(sc, &cm, 5, CAN_SLEEP);
error = mps_wait_command(sc, &cm, MPS_ATA_ID_TIMEOUT, CAN_SLEEP);
status = mps_wait_command(sc, &cm, 30, CAN_SLEEP);
status = mps_wait_command(sc, &cm, 30, CAN_SLEEP);
err = mps_wait_command(sc, &cm, 60, CAN_SLEEP);
err = mps_wait_command(sc, &cm, 30, CAN_SLEEP);
err = mps_wait_command(sc, &cm, 30, CAN_SLEEP);
if (ECORE_MB_FLAGS_IS_SET(p_mb_params, CAN_SLEEP)) {
if (ECORE_MB_FLAGS_IS_SET(p_mb_params, CAN_SLEEP)) {
if (ECORE_MB_FLAGS_IS_SET(p_mb_params, CAN_SLEEP)) {