Lines Matching refs:test
29 struct mctp_binding_test *test; in mctp_binding_test_init() local
30 test = __mctp_alloc(sizeof(*test)); in mctp_binding_test_init()
31 memset(test, '\0', sizeof(*test)); in mctp_binding_test_init()
32 test->binding.name = "test"; in mctp_binding_test_init()
33 test->binding.version = 1; in mctp_binding_test_init()
34 test->binding.tx = mctp_binding_test_tx; in mctp_binding_test_init()
35 test->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_test_init()
36 test->binding.pkt_header = 0; in mctp_binding_test_init()
37 test->binding.pkt_trailer = 0; in mctp_binding_test_init()
38 return test; in mctp_binding_test_init()
41 void mctp_binding_test_destroy(struct mctp_binding_test *test) in mctp_binding_test_destroy() argument
43 __mctp_free(test); in mctp_binding_test_destroy()
46 void mctp_binding_test_rx_raw(struct mctp_binding_test *test, void *buf, in mctp_binding_test_rx_raw() argument
51 pkt = mctp_pktbuf_alloc(&test->binding, len); in mctp_binding_test_rx_raw()
54 mctp_bus_rx(&test->binding, pkt); in mctp_binding_test_rx_raw()