Lines Matching refs:node

59     hci1394_tlist_node_t *node);
133 hci1394_tlist_node_t *node) in hci1394_tlist_add() argument
136 ASSERT(node != NULL); in hci1394_tlist_add()
141 node->tln_next = NULL; in hci1394_tlist_add()
144 node->tln_on_list = B_TRUE; in hci1394_tlist_add()
148 node->tln_expire_time = gethrtime() + in hci1394_tlist_add()
154 tlist_handle->tl_head = node; in hci1394_tlist_add()
155 tlist_handle->tl_tail = node; in hci1394_tlist_add()
156 node->tln_prev = NULL; in hci1394_tlist_add()
169 tlist_handle->tl_tail->tln_next = node; in hci1394_tlist_add()
170 node->tln_prev = tlist_handle->tl_tail; in hci1394_tlist_add()
171 tlist_handle->tl_tail = node; in hci1394_tlist_add()
190 hci1394_tlist_node_t *node) in hci1394_tlist_delete() argument
193 ASSERT(node != NULL); in hci1394_tlist_delete()
203 if (node->tln_on_list == B_FALSE) { in hci1394_tlist_delete()
208 hci1394_tlist_remove(tlist_handle, node); in hci1394_tlist_delete()
222 hci1394_tlist_node_t **node) in hci1394_tlist_get() argument
225 ASSERT(node != NULL); in hci1394_tlist_get()
230 *node = tlist_handle->tl_head; in hci1394_tlist_get()
233 if (*node != NULL) { in hci1394_tlist_get()
234 hci1394_tlist_remove(tlist_handle, *node); in hci1394_tlist_get()
248 hci1394_tlist_node_t **node) in hci1394_tlist_peek() argument
251 ASSERT(node != NULL); in hci1394_tlist_peek()
254 *node = tlist_handle->tl_head; in hci1394_tlist_peek()
310 hci1394_tlist_node_t *node; in hci1394_tlist_callback() local
325 node = list->tl_head; in hci1394_tlist_callback()
327 while (node != NULL) { in hci1394_tlist_callback()
334 (uint64_t)node->tln_expire_time) && in hci1394_tlist_callback()
335 (((uint64_t)node->tln_expire_time - in hci1394_tlist_callback()
337 (uint64_t)node->tln_expire_time)) { in hci1394_tlist_callback()
339 hci1394_tlist_remove(list, node); in hci1394_tlist_callback()
353 list->tl_timer_info.tlt_callback(node, in hci1394_tlist_callback()
356 node = list->tl_head; in hci1394_tlist_callback()
365 (uint64_t)node->tln_expire_time) && in hci1394_tlist_callback()
370 hci1394_tlist_remove(list, node); in hci1394_tlist_callback()
384 list->tl_timer_info.tlt_callback(node, in hci1394_tlist_callback()
387 node = list->tl_head; in hci1394_tlist_callback()
403 if (node != NULL) { in hci1394_tlist_callback()
422 hci1394_tlist_remove(hci1394_tlist_t *list, hci1394_tlist_node_t *node) in hci1394_tlist_remove() argument
425 ASSERT(node != NULL); in hci1394_tlist_remove()
426 ASSERT(node->tln_on_list == B_TRUE); in hci1394_tlist_remove()
430 if ((list->tl_head == node) && in hci1394_tlist_remove()
431 (list->tl_tail == node)) { in hci1394_tlist_remove()
436 } else if (list->tl_head == node) { in hci1394_tlist_remove()
437 list->tl_head = node->tln_next; in hci1394_tlist_remove()
438 node->tln_next->tln_prev = NULL; in hci1394_tlist_remove()
441 } else if (list->tl_tail == node) { in hci1394_tlist_remove()
442 list->tl_tail = node->tln_prev; in hci1394_tlist_remove()
443 node->tln_prev->tln_next = NULL; in hci1394_tlist_remove()
447 node->tln_prev->tln_next = node->tln_next; in hci1394_tlist_remove()
448 node->tln_next->tln_prev = node->tln_prev; in hci1394_tlist_remove()
452 node->tln_on_list = B_FALSE; in hci1394_tlist_remove()
455 node->tln_prev = NULL; in hci1394_tlist_remove()
456 node->tln_next = NULL; in hci1394_tlist_remove()