Lines Matching refs:cache_policy_item_
41 struct cache_policy_item_ *);
43 struct cache_policy_item_ *);
44 static struct cache_policy_item_ * cache_lfu_policy_create_item(void);
45 static void cache_lfu_policy_destroy_item(struct cache_policy_item_ *);
46 static struct cache_policy_item_ *cache_lfu_policy_get_first_item(
48 static struct cache_policy_item_ *cache_lfu_policy_get_last_item(
50 static struct cache_policy_item_ *cache_lfu_policy_get_next_item(
51 struct cache_policy_ *, struct cache_policy_item_ *);
52 static struct cache_policy_item_ *cache_lfu_policy_get_prev_item(
53 struct cache_policy_ *, struct cache_policy_item_ *);
55 struct cache_policy_item_ *);
57 struct cache_policy_item_ *);
59 struct cache_policy_item_ *);
61 struct cache_policy_item_ *);
62 static struct cache_policy_item_ * cache_queue_policy_create_item(void);
63 static void cache_queue_policy_destroy_item(struct cache_policy_item_ *);
64 static struct cache_policy_item_ *cache_queue_policy_get_first_item(
66 static struct cache_policy_item_ *cache_queue_policy_get_last_item(
68 static struct cache_policy_item_ *cache_queue_policy_get_next_item(
69 struct cache_policy_ *, struct cache_policy_item_ *);
70 static struct cache_policy_item_ *cache_queue_policy_get_prev_item(
71 struct cache_policy_ *, struct cache_policy_item_ *);
73 struct cache_policy_item_ *);
83 static struct cache_policy_item_ *
94 return ((struct cache_policy_item_ *)retval);
98 cache_queue_policy_destroy_item(struct cache_policy_item_ *item)
109 struct cache_policy_item_ *item)
123 struct cache_policy_item_ *item)
135 static struct cache_policy_item_ *
143 return ((struct cache_policy_item_ *)TAILQ_FIRST(&queue_policy->head));
146 static struct cache_policy_item_ *
154 return ((struct cache_policy_item_ *)TAILQ_LAST(&queue_policy->head,
158 static struct cache_policy_item_ *
160 struct cache_policy_item_ *item)
170 return ((struct cache_policy_item_ *)TAILQ_NEXT(queue_item, entries));
173 static struct cache_policy_item_ *
175 struct cache_policy_item_ *item)
185 return ((struct cache_policy_item_ *)TAILQ_PREV(queue_item,
233 (struct cache_policy_item_ *)queue_item);
246 struct cache_policy_item_ *item)
285 struct cache_policy_item_ *item)
333 static struct cache_policy_item_ *
344 return ((struct cache_policy_item_ *)retval);
348 cache_lfu_policy_destroy_item(struct cache_policy_item_ *item)
363 struct cache_policy_item_ *item)
384 struct cache_policy_item_ *item)
424 struct cache_policy_item_ *item)
438 static struct cache_policy_item_ *
455 return ((struct cache_policy_item_ *)lfu_item);
458 static struct cache_policy_item_ *
476 return ((struct cache_policy_item_ *)lfu_item);
479 static struct cache_policy_item_ *
481 struct cache_policy_item_ *item)
502 return ((struct cache_policy_item_ *)lfu_item);
505 static struct cache_policy_item_ *
507 struct cache_policy_item_ *item)
529 return ((struct cache_policy_item_ *)lfu_item);
585 (struct cache_policy_item_ *)lfu_item);