Lines Matching refs:sleep_flag
84 static int mpr_diag_reset(struct mpr_softc *sc, int sleep_flag);
87 static int mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag);
108 static int mpr_wait_db_ack(struct mpr_softc *sc, int timeout, int sleep_flag);
152 mpr_diag_reset(struct mpr_softc *sc,int sleep_flag) in mpr_diag_reset() argument
168 sleep_flag = NO_SLEEP; in mpr_diag_reset()
170 mpr_dprint(sc, MPR_INIT, "sequence start, sleep_flag=%d\n", sleep_flag); in mpr_diag_reset()
179 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_diag_reset()
182 else if (sleep_flag == CAN_SLEEP) in mpr_diag_reset()
213 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_diag_reset()
216 else if (sleep_flag == CAN_SLEEP) in mpr_diag_reset()
252 mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag) in mpr_message_unit_reset() argument
265 if (mpr_wait_db_ack(sc, 5, sleep_flag) != 0) { in mpr_message_unit_reset()
933 mpr_wait_db_ack(struct mpr_softc *sc, int timeout, int sleep_flag) in mpr_wait_db_ack() argument
940 cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout; in mpr_wait_db_ack()
962 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_wait_db_ack()
965 else if (sleep_flag == CAN_SLEEP) in mpr_wait_db_ack()
3786 int sleep_flag) in mpr_wait_command() argument
3805 sleep_flag = NO_SLEEP; in mpr_wait_command()
3807 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) { in mpr_wait_command()
3820 if (sleep_flag == CAN_SLEEP) in mpr_wait_command()