Lines Matching refs:prev
43 node->prev = NULL; in pysqlite_new_node()
132 if (node->prev && node->count > node->prev->count) { in pysqlite_cache_get()
133 ptr = node->prev; in pysqlite_cache_get()
135 while (ptr->prev && node->count > ptr->prev->count) { in pysqlite_cache_get()
136 ptr = ptr->prev; in pysqlite_cache_get()
140 node->next->prev = node->prev; in pysqlite_cache_get()
142 self->last = node->prev; in pysqlite_cache_get()
144 if (node->prev) { in pysqlite_cache_get()
145 node->prev->next = node->next; in pysqlite_cache_get()
147 if (ptr->prev) { in pysqlite_cache_get()
148 ptr->prev->next = node; in pysqlite_cache_get()
154 node->prev = ptr->prev; in pysqlite_cache_get()
155 if (!node->prev) { in pysqlite_cache_get()
158 ptr->prev = node; in pysqlite_cache_get()
173 if (node->prev) { in pysqlite_cache_get()
174 node->prev->next = NULL; in pysqlite_cache_get()
176 self->last = node->prev; in pysqlite_cache_get()
177 node->prev = NULL; in pysqlite_cache_get()
193 node->prev = self->last; in pysqlite_cache_get()
224 if (ptr->prev) { in pysqlite_cache_display()
225 prevkey = ptr->prev->key; in pysqlite_cache_display()