Lines Matching refs:streams
69 ARRAY_FOR_EACH(client->streams, i) { in find_http_stream_context()
70 if (client->streams[i].stream_id == stream_id) { in find_http_stream_context()
71 return &client->streams[i]; in find_http_stream_context()
81 ARRAY_FOR_EACH(client->streams, i) { in allocate_http_stream_context()
82 if (client->streams[i].stream_state == HTTP2_STREAM_IDLE) { in allocate_http_stream_context()
83 client->streams[i].stream_id = stream_id; in allocate_http_stream_context()
84 client->streams[i].stream_state = HTTP2_STREAM_OPEN; in allocate_http_stream_context()
85 client->streams[i].window_size = in allocate_http_stream_context()
87 client->streams[i].headers_sent = false; in allocate_http_stream_context()
88 client->streams[i].end_stream_sent = false; in allocate_http_stream_context()
89 return &client->streams[i]; in allocate_http_stream_context()
99 ARRAY_FOR_EACH(client->streams, i) { in release_http_stream_context()
100 if (client->streams[i].stream_id == stream_id) { in release_http_stream_context()
101 client->streams[i].stream_id = 0; in release_http_stream_context()
102 client->streams[i].stream_state = HTTP2_STREAM_IDLE; in release_http_stream_context()
103 client->streams[i].current_detail = NULL; in release_http_stream_context()