Lines Matching refs:item

678 	struct cachekey_disklist *item,
683 if (item == NULL) return;
685 /* Handle previous item, if any */
686 if (item->prev == 0)
687 *head = item->next;
689 item->prev->next = item->next;
691 /* Take care of the next item, if any */
692 if (item->next != 0)
693 item->next->prev = item->prev;
696 if (tail != 0 && *tail == item)
697 *tail = item->prev;
699 item->prev = item->next = 0;
707 struct cachekey_disklist *item,
712 if (item == NULL) return;
714 /* Handle previous item, if any */
715 if (item->prevhash == 0)
716 *head = item->nexthash;
718 item->prevhash->nexthash = item->nexthash;
720 /* Take care of the next item, if any */
721 if (item->nexthash != 0)
722 item->nexthash->prevhash = item->prevhash;
725 if (tail != 0 && *tail == item)
726 *tail = item->prevhash;
728 item->prevhash = item->nexthash = 0;
736 struct cachekey_disklist *item,
741 if (item == NULL) return;
745 item->prev = *tail;
746 if (item->prev != 0)
747 item->prev->next = item;
748 item->next = 0;
749 *tail = item;
751 *head = item;
753 item->next = *head;
754 if (item->next != 0)
755 item->next->prev = item;
756 item->prev = 0;
757 *head = item;
765 struct cachekey_disklist *item,
770 if (item == NULL) return;
774 item->prevhash = *tail;
775 if (item->prevhash != 0)
776 item->prevhash->nexthash = item;
777 item->nexthash = 0;
778 *tail = item;
780 *head = item;
782 item->nexthash = *head;
783 if (item->nexthash != 0)
784 item->nexthash->prevhash = item;
785 item->prevhash = 0;
786 *head = item;
794 * Find the cache item specified by the header, uid, and public key. If
795 * no such uid/public item exists, return a pointer to an empty record.
796 * In either case, the item returned has been removed from any and all
837 /* Sacrifice the LRU item, if there is one */
887 * The item may have been free, or may have been the LRU sacrificial
1025 /* On to the next item */
1037 * Remove specified item. 'public' == 0 => remove all items for uid.
1077 * the same after removal of an item. If this isn't
1088 /* On to the next item */