Lines Matching refs:sleep_flag
82 static int mpr_diag_reset(struct mpr_softc *sc, int sleep_flag);
84 static int mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag);
104 static int mpr_wait_db_ack(struct mpr_softc *sc, int timeout, int sleep_flag);
142 mpr_diag_reset(struct mpr_softc *sc,int sleep_flag) in mpr_diag_reset() argument
162 sleep_flag = NO_SLEEP; in mpr_diag_reset()
172 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_diag_reset()
175 else if (sleep_flag == CAN_SLEEP) in mpr_diag_reset()
201 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_diag_reset()
204 else if (sleep_flag == CAN_SLEEP) in mpr_diag_reset()
236 mpr_message_unit_reset(struct mpr_softc *sc, int sleep_flag) in mpr_message_unit_reset() argument
245 if (mpr_wait_db_ack(sc, 5, sleep_flag) != 0) { in mpr_message_unit_reset()
795 mpr_wait_db_ack(struct mpr_softc *sc, int timeout, int sleep_flag) in mpr_wait_db_ack() argument
802 cntdn = (sleep_flag == CAN_SLEEP) ? 1000*timeout : 2000*timeout; in mpr_wait_db_ack()
824 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_wait_db_ack()
827 else if (sleep_flag == CAN_SLEEP) in mpr_wait_db_ack()
3274 int sleep_flag) in mpr_wait_command() argument
3297 sleep_flag = NO_SLEEP; in mpr_wait_command()
3299 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) { in mpr_wait_command()
3312 if (sleep_flag == CAN_SLEEP) in mpr_wait_command()