Lines Matching defs:tlist_handle

62 static void hci1394_tlist_callback(void *tlist_handle);
74 hci1394_tlist_handle_t *tlist_handle)
79 ASSERT(tlist_handle != NULL);
86 *tlist_handle = list;
114 hci1394_tlist_fini(hci1394_tlist_handle_t *tlist_handle)
119 ASSERT(tlist_handle != NULL);
122 list = (hci1394_tlist_t *)*tlist_handle;
128 *tlist_handle = NULL;
140 hci1394_tlist_add(hci1394_tlist_handle_t tlist_handle,
143 ASSERT(tlist_handle != NULL);
147 mutex_enter(&tlist_handle->tl_mutex);
156 if (tlist_handle->tl_timer_enabled == B_TRUE) {
158 tlist_handle->tl_timer_info.tlt_timeout;
162 if (tlist_handle->tl_tail == NULL) {
163 tlist_handle->tl_head = node;
164 tlist_handle->tl_tail = node;
167 if ((tlist_handle->tl_timer_enabled == B_TRUE) &&
168 (tlist_handle->tl_state == HCI1394_TLIST_TIMEOUT_OFF)) {
170 tlist_handle->tl_timeout_id = timeout(
171 hci1394_tlist_callback, tlist_handle,
173 tlist_handle->tl_timer_info.tlt_timer_resolution));
174 tlist_handle->tl_state = HCI1394_TLIST_TIMEOUT_ON;
178 tlist_handle->tl_tail->tln_next = node;
179 node->tln_prev = tlist_handle->tl_tail;
180 tlist_handle->tl_tail = node;
187 mutex_exit(&tlist_handle->tl_mutex);
200 hci1394_tlist_delete(hci1394_tlist_handle_t tlist_handle,
203 ASSERT(tlist_handle != NULL);
208 mutex_enter(&tlist_handle->tl_mutex);
217 mutex_exit(&tlist_handle->tl_mutex);
223 hci1394_tlist_remove(tlist_handle, node);
224 mutex_exit(&tlist_handle->tl_mutex);
237 hci1394_tlist_get(hci1394_tlist_handle_t tlist_handle,
240 ASSERT(tlist_handle != NULL);
244 mutex_enter(&tlist_handle->tl_mutex);
247 *node = tlist_handle->tl_head;
251 hci1394_tlist_remove(tlist_handle, *node);
254 mutex_exit(&tlist_handle->tl_mutex);
266 hci1394_tlist_peek(hci1394_tlist_handle_t tlist_handle,
269 ASSERT(tlist_handle != NULL);
273 mutex_enter(&tlist_handle->tl_mutex);
274 *node = tlist_handle->tl_head;
275 mutex_exit(&tlist_handle->tl_mutex);
289 hci1394_tlist_timeout_update(hci1394_tlist_handle_t tlist_handle,
292 ASSERT(tlist_handle != NULL);
297 tlist_handle->tl_timer_info.tlt_timeout = timeout;
311 hci1394_tlist_timeout_cancel(hci1394_tlist_handle_t tlist_handle)
313 ASSERT(tlist_handle != NULL);
321 if (tlist_handle->tl_state == HCI1394_TLIST_TIMEOUT_ON) {
322 (void) untimeout(tlist_handle->tl_timeout_id);
323 tlist_handle->tl_state = HCI1394_TLIST_TIMEOUT_OFF;
339 hci1394_tlist_callback(void *tlist_handle)
346 ASSERT(tlist_handle != NULL);
350 list = (hci1394_tlist_t *)tlist_handle;