Lines Matching refs:brigade
92 bucket->brigade = NULL; in php_stream_bucket_new()
160 PHPAPI void php_stream_bucket_prepend(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket) in php_stream_bucket_prepend() argument
162 bucket->next = brigade->head; in php_stream_bucket_prepend()
165 if (brigade->head) { in php_stream_bucket_prepend()
166 brigade->head->prev = bucket; in php_stream_bucket_prepend()
168 brigade->tail = bucket; in php_stream_bucket_prepend()
170 brigade->head = bucket; in php_stream_bucket_prepend()
171 bucket->brigade = brigade; in php_stream_bucket_prepend()
174 PHPAPI void php_stream_bucket_append(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket) in php_stream_bucket_append() argument
176 if (brigade->tail == bucket) { in php_stream_bucket_append()
180 bucket->prev = brigade->tail; in php_stream_bucket_append()
183 if (brigade->tail) { in php_stream_bucket_append()
184 brigade->tail->next = bucket; in php_stream_bucket_append()
186 brigade->head = bucket; in php_stream_bucket_append()
188 brigade->tail = bucket; in php_stream_bucket_append()
189 bucket->brigade = brigade; in php_stream_bucket_append()
196 } else if (bucket->brigade) { in php_stream_bucket_unlink()
197 bucket->brigade->head = bucket->next; in php_stream_bucket_unlink()
201 } else if (bucket->brigade) { in php_stream_bucket_unlink()
202 bucket->brigade->tail = bucket->prev; in php_stream_bucket_unlink()
204 bucket->brigade = NULL; in php_stream_bucket_unlink()