Lines Matching refs:timeout
81 struct DBusTimeout *timeout = data; in dbus_timeout_callback() local
85 t = cras_tm_create_timer(tm, dbus_timeout_get_interval(timeout), in dbus_timeout_callback()
86 dbus_timeout_callback, timeout); in dbus_timeout_callback()
87 dbus_timeout_set_data(timeout, t, NULL); in dbus_timeout_callback()
89 if (!dbus_timeout_handle(timeout)) in dbus_timeout_callback()
93 static dbus_bool_t dbus_timeout_add(DBusTimeout *timeout, void *arg) in dbus_timeout_add() argument
96 struct cras_timer *t = dbus_timeout_get_data(timeout); in dbus_timeout_add()
99 dbus_timeout_set_data(timeout, NULL, NULL); in dbus_timeout_add()
103 if (dbus_timeout_get_enabled(timeout)) { in dbus_timeout_add()
104 t = cras_tm_create_timer(tm, dbus_timeout_get_interval(timeout), in dbus_timeout_add()
105 dbus_timeout_callback, timeout); in dbus_timeout_add()
106 dbus_timeout_set_data(timeout, t, NULL); in dbus_timeout_add()
114 static void dbus_timeout_remove(DBusTimeout *timeout, void *arg) in dbus_timeout_remove() argument
117 struct cras_timer *t = dbus_timeout_get_data(timeout); in dbus_timeout_remove()
120 dbus_timeout_set_data(timeout, NULL, NULL); in dbus_timeout_remove()
125 static void dbus_timeout_toggled(DBusTimeout *timeout, void *arg) in dbus_timeout_toggled() argument
127 if (dbus_timeout_get_enabled(timeout)) in dbus_timeout_toggled()
128 dbus_timeout_add(timeout, NULL); in dbus_timeout_toggled()
130 dbus_timeout_remove(timeout, NULL); in dbus_timeout_toggled()