Lines Matching refs:test_param

140 	struct test_params test_param;  in mctp_core_test_simple_rx()  local
145 test_param.seen = false; in mctp_core_test_simple_rx()
146 test_param.message_size = 0; in mctp_core_test_simple_rx()
148 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_simple_rx()
157 assert(test_param.seen); in mctp_core_test_simple_rx()
158 assert(test_param.message_size == 2 * MCTP_BTU); in mctp_core_test_simple_rx()
168 struct test_params test_param; in mctp_core_test_receive_equal_length_fragments() local
175 test_param.seen = false; in mctp_core_test_receive_equal_length_fragments()
176 test_param.message_size = 0; in mctp_core_test_receive_equal_length_fragments()
178 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_receive_equal_length_fragments()
198 assert(test_param.seen); in mctp_core_test_receive_equal_length_fragments()
199 assert(test_param.message_size == 3 * MCTP_BTU); in mctp_core_test_receive_equal_length_fragments()
209 struct test_params test_param; in mctp_core_test_receive_unexpected_smaller_middle_fragment() local
216 test_param.seen = false; in mctp_core_test_receive_unexpected_smaller_middle_fragment()
217 test_param.message_size = 0; in mctp_core_test_receive_unexpected_smaller_middle_fragment()
219 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_receive_unexpected_smaller_middle_fragment()
239 assert(!test_param.seen); in mctp_core_test_receive_unexpected_smaller_middle_fragment()
249 struct test_params test_param; in mctp_core_test_receive_unexpected_bigger_middle_fragment() local
256 test_param.seen = false; in mctp_core_test_receive_unexpected_bigger_middle_fragment()
257 test_param.message_size = 0; in mctp_core_test_receive_unexpected_bigger_middle_fragment()
259 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_receive_unexpected_bigger_middle_fragment()
279 assert(!test_param.seen); in mctp_core_test_receive_unexpected_bigger_middle_fragment()
289 struct test_params test_param; in mctp_core_test_receive_smaller_end_fragment() local
297 test_param.seen = false; in mctp_core_test_receive_smaller_end_fragment()
298 test_param.message_size = 0; in mctp_core_test_receive_smaller_end_fragment()
300 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_receive_smaller_end_fragment()
319 assert(test_param.seen); in mctp_core_test_receive_smaller_end_fragment()
320 assert(test_param.message_size == in mctp_core_test_receive_smaller_end_fragment()
331 struct test_params test_param; in mctp_core_test_receive_bigger_end_fragment() local
339 test_param.seen = false; in mctp_core_test_receive_bigger_end_fragment()
340 test_param.message_size = 0; in mctp_core_test_receive_bigger_end_fragment()
342 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_receive_bigger_end_fragment()
361 assert(!test_param.seen); in mctp_core_test_receive_bigger_end_fragment()
371 struct test_params test_param; in mctp_core_test_drop_large_fragments() local
376 test_param.seen = false; in mctp_core_test_drop_large_fragments()
377 test_param.message_size = 0; in mctp_core_test_drop_large_fragments()
379 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_drop_large_fragments()
391 assert(!test_param.seen); in mctp_core_test_drop_large_fragments()
401 struct test_params test_param; in mctp_core_test_exhaust_context_buffers() local
410 test_param.seen = false; in mctp_core_test_exhaust_context_buffers()
411 test_param.message_size = 0; in mctp_core_test_exhaust_context_buffers()
413 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_exhaust_context_buffers()
435 assert(!test_param.seen); in mctp_core_test_exhaust_context_buffers()
444 assert(test_param.seen); in mctp_core_test_exhaust_context_buffers()
445 assert(test_param.message_size == (2 * MCTP_BTU)); in mctp_core_test_exhaust_context_buffers()
455 struct test_params test_param; in mctp_core_test_rx_with_tag() local
462 test_param.seen = false; in mctp_core_test_rx_with_tag()
463 test_param.message_size = 0; in mctp_core_test_rx_with_tag()
464 test_param.msg_tag = 0; in mctp_core_test_rx_with_tag()
465 test_param.tag_owner = false; in mctp_core_test_rx_with_tag()
468 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_rx_with_tag()
479 assert(test_param.seen); in mctp_core_test_rx_with_tag()
480 assert(test_param.message_size == (MCTP_BTU)); in mctp_core_test_rx_with_tag()
481 assert(test_param.msg_tag == tag); in mctp_core_test_rx_with_tag()
482 assert(test_param.tag_owner); in mctp_core_test_rx_with_tag()
492 struct test_params test_param; in mctp_core_test_rx_with_tag_multifragment() local
499 test_param.seen = false; in mctp_core_test_rx_with_tag_multifragment()
500 test_param.message_size = 0; in mctp_core_test_rx_with_tag_multifragment()
501 test_param.msg_tag = 0; in mctp_core_test_rx_with_tag_multifragment()
502 test_param.tag_owner = false; in mctp_core_test_rx_with_tag_multifragment()
505 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_rx_with_tag_multifragment()
528 assert(test_param.seen); in mctp_core_test_rx_with_tag_multifragment()
529 assert(test_param.message_size == (3 * MCTP_BTU)); in mctp_core_test_rx_with_tag_multifragment()
530 assert(test_param.msg_tag == tag); in mctp_core_test_rx_with_tag_multifragment()
531 assert(test_param.tag_owner); in mctp_core_test_rx_with_tag_multifragment()
548 struct test_params test_param; in mctp_core_test_rx_with_null_dst_eid() local
553 test_param.seen = false; in mctp_core_test_rx_with_null_dst_eid()
554 test_param.message_size = 0; in mctp_core_test_rx_with_null_dst_eid()
556 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_rx_with_null_dst_eid()
565 assert(test_param.seen); in mctp_core_test_rx_with_null_dst_eid()
566 assert(test_param.message_size == 2 * MCTP_BTU); in mctp_core_test_rx_with_null_dst_eid()
581 struct test_params test_param; in mctp_core_test_rx_with_broadcast_dst_eid() local
586 test_param.seen = false; in mctp_core_test_rx_with_broadcast_dst_eid()
587 test_param.message_size = 0; in mctp_core_test_rx_with_broadcast_dst_eid()
589 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_rx_with_broadcast_dst_eid()
598 assert(test_param.seen); in mctp_core_test_rx_with_broadcast_dst_eid()
599 assert(test_param.message_size == 2 * MCTP_BTU); in mctp_core_test_rx_with_broadcast_dst_eid()
613 struct test_params test_param; in mctp_core_test_tx_alloc_tag() local
621 mctp_set_rx_all(mctp, rx_message, &test_param); in mctp_core_test_tx_alloc_tag()
625 test_param.seen = false; in mctp_core_test_tx_alloc_tag()
626 test_param.msg_tag = 0xff; in mctp_core_test_tx_alloc_tag()
627 test_param.tag_owner = false; in mctp_core_test_tx_alloc_tag()
634 assert(test_param.seen == true); in mctp_core_test_tx_alloc_tag()
635 assert(test_param.msg_tag == msg_tag); in mctp_core_test_tx_alloc_tag()
636 assert(test_param.tag_owner == true); in mctp_core_test_tx_alloc_tag()
642 test_param.seen = false; in mctp_core_test_tx_alloc_tag()
647 assert(test_param.seen == false); in mctp_core_test_tx_alloc_tag()
650 test_param.seen = false; in mctp_core_test_tx_alloc_tag()
658 assert(test_param.seen == true); in mctp_core_test_tx_alloc_tag()
659 assert(test_param.msg_tag == replied_tag); in mctp_core_test_tx_alloc_tag()
660 assert(test_param.tag_owner == false); in mctp_core_test_tx_alloc_tag()
663 test_param.seen = false; in mctp_core_test_tx_alloc_tag()
668 assert(test_param.seen == true); in mctp_core_test_tx_alloc_tag()