Lines Matching refs:sleep_flag
81 static int mps_diag_reset(struct mps_softc *sc, int sleep_flag);
84 static int mps_message_unit_reset(struct mps_softc *sc, int sleep_flag);
104 static int mps_wait_db_ack(struct mps_softc *sc, int timeout, int sleep_flag);
149 mps_diag_reset(struct mps_softc *sc,int sleep_flag) in mps_diag_reset() argument
165 sleep_flag = NO_SLEEP; in mps_diag_reset()
167 mps_dprint(sc, MPS_INIT, "sequence start, sleep_flag= %d\n", sleep_flag); in mps_diag_reset()
176 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP) in mps_diag_reset()
179 else if (sleep_flag == CAN_SLEEP) in mps_diag_reset()
210 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP) in mps_diag_reset()
213 else if (sleep_flag == CAN_SLEEP) in mps_diag_reset()
249 mps_message_unit_reset(struct mps_softc *sc, int sleep_flag) in mps_message_unit_reset() argument
262 if (mps_wait_db_ack(sc, 5, sleep_flag) != 0) { in mps_message_unit_reset()
905 mps_wait_db_ack(struct mps_softc *sc, int timeout, int sleep_flag) in mps_wait_db_ack() argument
913 cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout; in mps_wait_db_ack()
934 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP) in mps_wait_db_ack()
937 else if (sleep_flag == CAN_SLEEP) in mps_wait_db_ack()
3069 int sleep_flag) in mps_wait_command() argument
3090 sleep_flag = NO_SLEEP; in mps_wait_command()
3092 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP) { in mps_wait_command()
3106 if (sleep_flag == CAN_SLEEP) in mps_wait_command()