Lines Matching refs:stream_name
126 const char *stream_name; member
219 #define OP_C_WRITE(stream_name, buf, buf_len) \ argument
220 {OPK_C_WRITE, (buf), (buf_len), NULL, #stream_name},
221 #define OP_S_WRITE(stream_name, buf, buf_len) \ argument
222 {OPK_S_WRITE, (buf), (buf_len), NULL, #stream_name},
223 #define OP_C_READ_EXPECT(stream_name, buf, buf_len) \ argument
224 {OPK_C_READ_EXPECT, (buf), (buf_len), NULL, #stream_name},
225 #define OP_S_READ_EXPECT(stream_name, buf, buf_len) \ argument
226 {OPK_S_READ_EXPECT, (buf), (buf_len), NULL, #stream_name},
227 #define OP_C_EXPECT_FIN(stream_name) \ argument
228 {OPK_C_EXPECT_FIN, NULL, 0, NULL, #stream_name},
229 #define OP_S_EXPECT_FIN(stream_name) \ argument
230 {OPK_S_EXPECT_FIN, NULL, 0, NULL, #stream_name},
231 #define OP_C_CONCLUDE(stream_name) \ argument
232 {OPK_C_CONCLUDE, NULL, 0, NULL, #stream_name},
233 #define OP_S_CONCLUDE(stream_name) \ argument
234 {OPK_S_CONCLUDE, NULL, 0, NULL, #stream_name},
235 #define OP_C_DETACH(stream_name) \ argument
236 {OPK_C_DETACH, NULL, 0, NULL, #stream_name},
237 #define OP_C_ATTACH(stream_name) \ argument
238 {OPK_C_ATTACH, NULL, 0, NULL, #stream_name},
239 #define OP_C_NEW_STREAM_BIDI(stream_name, expect_id) \ argument
240 {OPK_C_NEW_STREAM, NULL, 0, NULL, #stream_name, (expect_id)},
241 #define OP_C_NEW_STREAM_BIDI_EX(stream_name, expect_id, flags) \ argument
242 {OPK_C_NEW_STREAM, NULL, (flags), NULL, #stream_name, (expect_id)},
243 #define OP_C_NEW_STREAM_UNI(stream_name, expect_id) \ argument
245 NULL, #stream_name, (expect_id)},
246 #define OP_C_NEW_STREAM_UNI_EX(stream_name, expect_id, flags) \ argument
248 NULL, #stream_name, (expect_id)},
249 #define OP_S_NEW_STREAM_BIDI(stream_name, expect_id) \ argument
250 {OPK_S_NEW_STREAM, NULL, 0, NULL, #stream_name, (expect_id)},
251 #define OP_S_NEW_STREAM_UNI(stream_name, expect_id) \ argument
252 {OPK_S_NEW_STREAM, NULL, 1, NULL, #stream_name, (expect_id)},
253 #define OP_C_ACCEPT_STREAM_WAIT(stream_name) \ argument
254 {OPK_C_ACCEPT_STREAM_WAIT, NULL, 0, NULL, #stream_name},
257 #define OP_C_FREE_STREAM(stream_name) \ argument
258 {OPK_C_FREE_STREAM, NULL, 0, NULL, #stream_name},
275 #define OP_S_BIND_STREAM_ID(stream_name, stream_id) \ argument
276 {OPK_S_BIND_STREAM_ID, NULL, 0, NULL, #stream_name, (stream_id)},
277 #define OP_C_WAIT_FOR_DATA(stream_name) \ argument
278 {OPK_C_WAIT_FOR_DATA, NULL, 0, NULL, #stream_name},
279 #define OP_C_WRITE_FAIL(stream_name) \ argument
280 {OPK_C_WRITE_FAIL, NULL, 0, NULL, #stream_name},
281 #define OP_S_WRITE_FAIL(stream_name) \ argument
282 {OPK_S_WRITE_FAIL, NULL, 0, NULL, #stream_name},
283 #define OP_C_READ_FAIL(stream_name) \ argument
284 {OPK_C_READ_FAIL, NULL, 0, NULL, #stream_name},
285 #define OP_S_READ_FAIL(stream_name, allow_zero_len) \ argument
286 {OPK_S_READ_FAIL, NULL, (allow_zero_len), NULL, #stream_name},
287 #define OP_C_STREAM_RESET(stream_name, aec) \ argument
288 {OPK_C_STREAM_RESET, NULL, 0, NULL, #stream_name, (aec)},
289 #define OP_C_STREAM_RESET_FAIL(stream_name, aec) \ argument
290 {OPK_C_STREAM_RESET_FAIL, NULL, 0, NULL, #stream_name, (aec)},
291 #define OP_S_ACCEPT_STREAM_WAIT(stream_name) \ argument
292 {OPK_S_ACCEPT_STREAM_WAIT, NULL, 0, NULL, #stream_name},
299 #define OP_S_UNBIND_STREAM_ID(stream_name) \ argument
300 {OPK_S_UNBIND_STREAM_ID, NULL, 0, NULL, #stream_name},
301 #define OP_C_READ_FAIL_WAIT(stream_name) \ argument
302 {OPK_C_READ_FAIL_WAIT, NULL, 0, NULL, #stream_name},
305 #define OP_C_EXPECT_SSL_ERR(stream_name, err) \ argument
306 {OPK_C_EXPECT_SSL_ERR, NULL, (err), NULL, #stream_name},
319 #define OP_C_SET_WRITE_BUF_SIZE(stream_name, size) \ argument
320 {OPK_C_SET_WRITE_BUF_SIZE, NULL, (size), NULL, #stream_name},
325 #define OP_C_SKIP_IF_UNBOUND(stream_name, n) \ argument
326 {OPK_C_SKIP_IF_UNBOUND, NULL, (n), NULL, #stream_name},
333 #define OP_C_WRITE_EX2(stream_name, buf, buf_len, flags) \ argument
334 {OPK_C_WRITE_EX2, (buf), (buf_len), NULL, #stream_name, (flags)},
881 const char *stream_name) in get_stream_info() argument
885 if (!TEST_ptr(stream_name)) in get_stream_info()
888 if (!strcmp(stream_name, "DEFAULT")) in get_stream_info()
891 key.name = stream_name; in get_stream_info()
898 info->name = stream_name; in get_stream_info()
907 const char *stream_name, in helper_local_set_c_stream() argument
910 STREAM_INFO *info = get_stream_info(hl->c_streams, stream_name); in helper_local_set_c_stream()
921 const char *stream_name) in helper_local_get_c_stream() argument
925 if (!strcmp(stream_name, "DEFAULT")) in helper_local_get_c_stream()
928 info = get_stream_info(hl->c_streams, stream_name); in helper_local_get_c_stream()
936 helper_set_s_stream(struct helper *h, const char *stream_name, in helper_set_s_stream() argument
941 if (!strcmp(stream_name, "DEFAULT")) in helper_set_s_stream()
944 info = get_stream_info(h->s_streams, stream_name); in helper_set_s_stream()
953 static uint64_t helper_get_s_stream(struct helper *h, const char *stream_name) in helper_get_s_stream() argument
957 if (!strcmp(stream_name, "DEFAULT")) in helper_get_s_stream()
960 info = get_stream_info(h->s_streams, stream_name); in helper_get_s_stream()
1093 if (op->stream_name != NULL) { in run_script_worker()
1094 c_tgt = helper_local_get_c_stream(hl, op->stream_name); in run_script_worker()
1096 s_stream_id = helper_get_s_stream(h, op->stream_name); in run_script_worker()
1467 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1473 if (!TEST_true(helper_local_set_c_stream(hl, op->stream_name, c_stream))) in run_script_worker()
1483 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1489 if (!TEST_true(helper_local_set_c_stream(hl, op->stream_name, NULL))) in run_script_worker()
1505 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1526 if (!TEST_true(helper_local_set_c_stream(hl, op->stream_name, c_stream))) in run_script_worker()
1538 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1550 if (!TEST_true(helper_set_s_stream(h, op->stream_name, in run_script_worker()
1563 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1569 if (!TEST_true(helper_local_set_c_stream(hl, op->stream_name, in run_script_worker()
1582 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1589 if (!TEST_true(helper_set_s_stream(h, op->stream_name, new_stream_id))) in run_script_worker()
1612 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1615 if (!TEST_true(helper_local_set_c_stream(hl, op->stream_name, NULL))) in run_script_worker()
1731 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1734 if (!TEST_true(helper_set_s_stream(h, op->stream_name, op->arg2))) in run_script_worker()
1744 if (!TEST_ptr(op->stream_name)) in run_script_worker()
1747 if (!TEST_true(helper_set_s_stream(h, op->stream_name, UINT64_MAX))) in run_script_worker()