Lines Matching refs:item
32 * two structure members of each item are the 'next' and 'prev' pointers.
55 * Returns pointer to the first item in the list (but does not remove it)
66 * Adds item to the end of the list
69 av1394_list_put_tail(av1394_list_t *lp, void *item)
71 ITEM(item)->i_next = NULL;
72 ITEM(item)->i_prev = lp->l_tail;
76 lp->l_head = lp->l_tail = item;
78 lp->l_tail->i_next = item;
79 lp->l_tail = item;
86 * Inserts item in the front of the list
89 av1394_list_put_head(av1394_list_t *lp, void *item)
91 ITEM(item)->i_next = lp->l_head;
92 ITEM(item)->i_prev = NULL;
96 lp->l_head = lp->l_tail = item;
98 lp->l_head->i_prev = item;
99 lp->l_head = item;
106 * Removes and returns an item from the front of the list
111 av1394_list_item_t *item;
113 item = lp->l_head;
114 if (item != NULL) {
115 lp->l_head = item->i_next;
116 if (item == lp->l_tail) {
123 item->i_next->i_prev = item->i_prev;
126 item->i_next = item->i_prev = NULL;
128 return (item);