Lines Matching refs:entry
78 zend_accel_hash_entry *entry; in zend_accel_hash_update() local
95 entry = accel_hash->hash_table[index]; in zend_accel_hash_update()
96 while (entry) { in zend_accel_hash_update()
97 if (entry->hash_value == hash_value in zend_accel_hash_update()
98 && entry->key_length == key_length in zend_accel_hash_update()
99 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_update()
101 if (entry->indirect) { in zend_accel_hash_update()
103 entry->data = indirect_bucket; in zend_accel_hash_update()
105 ((zend_accel_hash_entry*)entry->data)->data = data; in zend_accel_hash_update()
110 entry->data = indirect_bucket; in zend_accel_hash_update()
111 entry->indirect = 1; in zend_accel_hash_update()
113 entry->data = data; in zend_accel_hash_update()
116 return entry; in zend_accel_hash_update()
118 entry = entry->next; in zend_accel_hash_update()
126 entry = &accel_hash->hash_entries[accel_hash->num_entries++]; in zend_accel_hash_update()
128 entry->data = indirect_bucket; in zend_accel_hash_update()
129 entry->indirect = 1; in zend_accel_hash_update()
132 entry->data = data; in zend_accel_hash_update()
133 entry->indirect = 0; in zend_accel_hash_update()
135 entry->hash_value = hash_value; in zend_accel_hash_update()
136 entry->key = key; in zend_accel_hash_update()
137 entry->key_length = key_length; in zend_accel_hash_update()
138 entry->next = accel_hash->hash_table[index]; in zend_accel_hash_update()
139 accel_hash->hash_table[index] = entry; in zend_accel_hash_update()
140 return entry; in zend_accel_hash_update()
146 zend_accel_hash_entry *entry; in zend_accel_hash_find_ex() local
153 entry = accel_hash->hash_table[index]; in zend_accel_hash_find_ex()
154 while (entry) { in zend_accel_hash_find_ex()
155 if (entry->hash_value == hash_value in zend_accel_hash_find_ex()
156 && entry->key_length == key_length in zend_accel_hash_find_ex()
157 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find_ex()
158 if (entry->indirect) { in zend_accel_hash_find_ex()
160 return ((zend_accel_hash_entry*)entry->data)->data; in zend_accel_hash_find_ex()
162 return entry->data; in zend_accel_hash_find_ex()
166 return entry->data; in zend_accel_hash_find_ex()
168 return entry; in zend_accel_hash_find_ex()
172 entry = entry->next; in zend_accel_hash_find_ex()
233 zend_accel_hash_entry *entry, *last_entry=NULL; in zend_accel_hash_unlink() local
241 entry = accel_hash->hash_table[index]; in zend_accel_hash_unlink()
242 while (entry) { in zend_accel_hash_unlink()
243 if (entry->hash_value == hash_value in zend_accel_hash_unlink()
244 && entry->key_length == key_length in zend_accel_hash_unlink()
245 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_unlink()
246 if (!entry->indirect) { in zend_accel_hash_unlink()
250 last_entry->next = entry->next; in zend_accel_hash_unlink()
252 accel_hash->hash_table[index] = entry->next; in zend_accel_hash_unlink()
256 last_entry = entry; in zend_accel_hash_unlink()
257 entry = entry->next; in zend_accel_hash_unlink()