Lines Matching refs:chain

316 PHPAPI int php_stream_filter_prepend_ex(php_stream_filter_chain *chain, php_stream_filter *filter T…  in php_stream_filter_prepend_ex()  argument
318 filter->next = chain->head; in php_stream_filter_prepend_ex()
321 if (chain->head) { in php_stream_filter_prepend_ex()
322 chain->head->prev = filter; in php_stream_filter_prepend_ex()
324 chain->tail = filter; in php_stream_filter_prepend_ex()
326 chain->head = filter; in php_stream_filter_prepend_ex()
327 filter->chain = chain; in php_stream_filter_prepend_ex()
332 PHPAPI void _php_stream_filter_prepend(php_stream_filter_chain *chain, php_stream_filter *filter TS… in _php_stream_filter_prepend() argument
334 php_stream_filter_prepend_ex(chain, filter TSRMLS_CC); in _php_stream_filter_prepend()
337 PHPAPI int php_stream_filter_append_ex(php_stream_filter_chain *chain, php_stream_filter *filter TS… in php_stream_filter_append_ex() argument
339 php_stream *stream = chain->stream; in php_stream_filter_append_ex()
341 filter->prev = chain->tail; in php_stream_filter_append_ex()
343 if (chain->tail) { in php_stream_filter_append_ex()
344 chain->tail->next = filter; in php_stream_filter_append_ex()
346 chain->head = filter; in php_stream_filter_append_ex()
348 chain->tail = filter; in php_stream_filter_append_ex()
349 filter->chain = chain; in php_stream_filter_append_ex()
351 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) { in php_stream_filter_append_ex()
418 PHPAPI void _php_stream_filter_append(php_stream_filter_chain *chain, php_stream_filter *filter TSR… in _php_stream_filter_append() argument
420 if (php_stream_filter_append_ex(chain, filter TSRMLS_CC) != SUCCESS) { in _php_stream_filter_append()
421 if (chain->head == filter) { in _php_stream_filter_append()
422 chain->head = NULL; in _php_stream_filter_append()
423 chain->tail = NULL; in _php_stream_filter_append()
426 chain->tail = filter->prev; in _php_stream_filter_append()
435 php_stream_filter_chain *chain; in _php_stream_filter_flush() local
441 if (!filter->chain || !filter->chain->stream) { in _php_stream_filter_flush()
446 chain = filter->chain; in _php_stream_filter_flush()
447 stream = chain->stream; in _php_stream_filter_flush()
483 if (chain == &(stream->readfilters)) { in _php_stream_filter_flush()
501 } else if (chain == &(stream->writefilters)) { in _php_stream_filter_flush()
518 filter->chain->head = filter->next; in php_stream_filter_remove()
523 filter->chain->tail = filter->prev; in php_stream_filter_remove()