Lines Matching refs:active
116 static int session_device_open(SessionDevice *sd, bool active) { in session_device_open() argument
131 if (active) { in session_device_open()
146 if (!active) in session_device_open()
165 if (sd->active) in session_device_start()
199 sd->active = true; in session_device_start()
206 if (!sd->active) in session_device_stop()
238 sd->active = false; in session_device_stop()
352 sd->active = session_is_active(s); in session_device_new()
353 r = session_device_open(sd, sd->active); in session_device_new()
356 if (sd->active && r == -EINVAL) { in session_device_new()
357 sd->active = false; in session_device_new()
408 if (!sd->active) in session_device_complete_pause()
415 if (iter->active) in session_device_complete_pause()
428 if (sd->active) in session_device_resume_all()
446 if (!sd->active) in session_device_pause_all()
461 if (!sd->active) in session_device_try_pause_all()
506 void session_device_attach_fd(SessionDevice *sd, int fd, bool active) { in session_device_attach_fd() argument
510 assert(!sd->active); in session_device_attach_fd()
514 sd->active = active; in session_device_attach_fd()