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