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 && zend_string_equals(entry->key, key)) { in zend_accel_hash_update()
100 if (entry->indirect) { in zend_accel_hash_update()
102 entry->data = indirect_bucket; in zend_accel_hash_update()
104 ((zend_accel_hash_entry*)entry->data)->data = data; in zend_accel_hash_update()
109 entry->data = indirect_bucket; in zend_accel_hash_update()
110 entry->indirect = 1; in zend_accel_hash_update()
112 entry->data = data; in zend_accel_hash_update()
115 return entry; in zend_accel_hash_update()
117 entry = entry->next; in zend_accel_hash_update()
125 entry = &accel_hash->hash_entries[accel_hash->num_entries++]; in zend_accel_hash_update()
127 entry->data = indirect_bucket; in zend_accel_hash_update()
128 entry->indirect = 1; in zend_accel_hash_update()
131 entry->data = data; in zend_accel_hash_update()
132 entry->indirect = 0; in zend_accel_hash_update()
134 entry->hash_value = hash_value; in zend_accel_hash_update()
135 entry->key = key; in zend_accel_hash_update()
136 entry->next = accel_hash->hash_table[index]; in zend_accel_hash_update()
137 accel_hash->hash_table[index] = entry; in zend_accel_hash_update()
138 return entry; in zend_accel_hash_update()
144 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 && zend_string_equals(entry->key, key)) { in zend_accel_hash_find_ex()
157 if (entry->indirect) { in zend_accel_hash_find_ex()
159 return ((zend_accel_hash_entry*)entry->data)->data; in zend_accel_hash_find_ex()
161 return entry->data; in zend_accel_hash_find_ex()
165 return entry->data; in zend_accel_hash_find_ex()
167 return entry; in zend_accel_hash_find_ex()
171 entry = entry->next; in zend_accel_hash_find_ex()
196 zend_accel_hash_entry *entry, *last_entry=NULL; in zend_accel_hash_unlink() local
204 entry = accel_hash->hash_table[index]; in zend_accel_hash_unlink()
205 while (entry) { in zend_accel_hash_unlink()
206 if (entry->hash_value == hash_value in zend_accel_hash_unlink()
207 && zend_string_equals(entry->key, key)) { in zend_accel_hash_unlink()
208 if (!entry->indirect) { in zend_accel_hash_unlink()
212 last_entry->next = entry->next; in zend_accel_hash_unlink()
214 accel_hash->hash_table[index] = entry->next; in zend_accel_hash_unlink()
218 last_entry = entry; in zend_accel_hash_unlink()
219 entry = entry->next; in zend_accel_hash_unlink()