Lines Matching refs:serial
1020 mutex_init(&sc->serial.lock, NULL, MUTEX_DRIVER, in zyd_serial_init()
1022 cv_init(&sc->serial.wait, NULL, CV_DRIVER, NULL); in zyd_serial_init()
1024 sc->serial.held = B_FALSE; in zyd_serial_init()
1025 sc->serial.initialized = B_TRUE; in zyd_serial_init()
1043 mutex_enter(&sc->serial.lock); in zyd_serial_enter()
1047 while (sc->serial.held != B_FALSE) { in zyd_serial_enter()
1049 res = cv_wait_sig(&sc->serial.wait, &sc->serial.lock); in zyd_serial_enter()
1051 cv_wait(&sc->serial.wait, &sc->serial.lock); in zyd_serial_enter()
1054 sc->serial.held = B_TRUE; in zyd_serial_enter()
1056 mutex_exit(&sc->serial.lock); in zyd_serial_enter()
1067 mutex_enter(&sc->serial.lock); in zyd_serial_exit()
1068 sc->serial.held = B_FALSE; in zyd_serial_exit()
1069 cv_broadcast(&sc->serial.wait); in zyd_serial_exit()
1070 mutex_exit(&sc->serial.lock); in zyd_serial_exit()
1079 cv_destroy(&sc->serial.wait); in zyd_serial_deinit()
1080 mutex_destroy(&sc->serial.lock); in zyd_serial_deinit()
1082 sc->serial.initialized = B_FALSE; in zyd_serial_deinit()