Lines Matching defs: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);
139 * sleep_flag can be either CAN_SLEEP or NO_SLEEP.
149 mps_diag_reset(struct mps_softc *sc,int sleep_flag)
165 sleep_flag = NO_SLEEP;
167 mps_dprint(sc, MPS_INIT, "sequence start, sleep_flag= %d\n", sleep_flag);
176 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP)
179 else if (sleep_flag == CAN_SLEEP)
210 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP)
213 else if (sleep_flag == CAN_SLEEP)
249 mps_message_unit_reset(struct mps_softc *sc, int sleep_flag)
262 if (mps_wait_db_ack(sc, 5, sleep_flag) != 0) {
905 mps_wait_db_ack(struct mps_softc *sc, int timeout, int sleep_flag)
913 cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout;
934 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP)
937 else if (sleep_flag == CAN_SLEEP)
3069 int sleep_flag)
3090 sleep_flag = NO_SLEEP;
3092 if (mtx_owned(&sc->mps_mtx) && sleep_flag == CAN_SLEEP) {
3106 if (sleep_flag == CAN_SLEEP)