Lines Matching refs:dep_stream
774 nghttp2_stream *dep_stream = NULL; in nghttp2_session_reprioritize_stream() local
785 dep_stream = nghttp2_session_get_stream_raw(session, pri_spec->stream_id); in nghttp2_session_reprioritize_stream()
787 if (!dep_stream && in nghttp2_session_reprioritize_stream()
792 dep_stream = nghttp2_session_open_stream( in nghttp2_session_reprioritize_stream()
796 if (dep_stream == NULL) { in nghttp2_session_reprioritize_stream()
799 } else if (!dep_stream || !nghttp2_stream_in_dep_tree(dep_stream)) { in nghttp2_session_reprioritize_stream()
806 dep_stream = &session->root; in nghttp2_session_reprioritize_stream()
807 } else if (nghttp2_stream_dep_find_ancestor(dep_stream, stream)) { in nghttp2_session_reprioritize_stream()
809 dep_stream, dep_stream->stream_id, stream, stream->stream_id); in nghttp2_session_reprioritize_stream()
811 nghttp2_stream_dep_remove_subtree(dep_stream); in nghttp2_session_reprioritize_stream()
812 rv = nghttp2_stream_dep_add_subtree(stream->dep_prev, dep_stream); in nghttp2_session_reprioritize_stream()
818 assert(dep_stream); in nghttp2_session_reprioritize_stream()
820 if (dep_stream == stream->dep_prev && !pri_spec->exclusive) { in nghttp2_session_reprioritize_stream()
833 rv = nghttp2_stream_dep_insert_subtree(dep_stream, stream); in nghttp2_session_reprioritize_stream()
835 rv = nghttp2_stream_dep_add_subtree(dep_stream, stream); in nghttp2_session_reprioritize_stream()
1033 nghttp2_stream *dep_stream = NULL; in nghttp2_session_open_stream() local
1060 dep_stream = nghttp2_session_get_stream_raw(session, pri_spec->stream_id); in nghttp2_session_open_stream()
1062 if (!dep_stream && in nghttp2_session_open_stream()
1068 dep_stream = nghttp2_session_open_stream( in nghttp2_session_open_stream()
1072 if (dep_stream == NULL) { in nghttp2_session_open_stream()
1079 } else if (!dep_stream || !nghttp2_stream_in_dep_tree(dep_stream)) { in nghttp2_session_open_stream()
1145 dep_stream = &session->root; in nghttp2_session_open_stream()
1148 assert(dep_stream); in nghttp2_session_open_stream()
1151 rv = nghttp2_stream_dep_insert(dep_stream, stream); in nghttp2_session_open_stream()
1156 nghttp2_stream_dep_add(dep_stream, stream); in nghttp2_session_open_stream()