Lines Matching refs:prev
44 node->prev = NULL; in pysqlite_new_node()
133 if (node->prev && node->count > node->prev->count) { in pysqlite_cache_get()
134 ptr = node->prev; in pysqlite_cache_get()
136 while (ptr->prev && node->count > ptr->prev->count) { in pysqlite_cache_get()
137 ptr = ptr->prev; in pysqlite_cache_get()
141 node->next->prev = node->prev; in pysqlite_cache_get()
143 self->last = node->prev; in pysqlite_cache_get()
145 if (node->prev) { in pysqlite_cache_get()
146 node->prev->next = node->next; in pysqlite_cache_get()
148 if (ptr->prev) { in pysqlite_cache_get()
149 ptr->prev->next = node; in pysqlite_cache_get()
155 node->prev = ptr->prev; in pysqlite_cache_get()
156 if (!node->prev) { in pysqlite_cache_get()
159 ptr->prev = node; in pysqlite_cache_get()
174 if (node->prev) { in pysqlite_cache_get()
175 node->prev->next = NULL; in pysqlite_cache_get()
177 self->last = node->prev; in pysqlite_cache_get()
178 node->prev = NULL; in pysqlite_cache_get()
194 node->prev = self->last; in pysqlite_cache_get()
227 if (ptr->prev) { in pysqlite_cache_display()
228 prevkey = ptr->prev->key; in pysqlite_cache_display()