Lines Matching full:bindings
27 struct mctp_binding_bridge *bindings[2]; member
89 ctx->bindings[0] = mctp_binding_bridge_init("binding0"); in main()
90 ctx->bindings[1] = mctp_binding_bridge_init("binding1"); in main()
91 mctp_bridge_busses(ctx->mctp, &ctx->bindings[0]->binding, in main()
92 &ctx->bindings[1]->binding); in main()
94 mctp_binding_set_tx_enabled(&ctx->bindings[0]->binding, true); in main()
95 mctp_binding_set_tx_enabled(&ctx->bindings[1]->binding, true); in main()
97 mctp_binding_bridge_rx(ctx->bindings[0], 0xaa); in main()
98 assert(ctx->bindings[0]->tx_count == 0); in main()
99 assert(ctx->bindings[1]->tx_count == 1); in main()
100 assert(ctx->bindings[1]->last_pkt_data == 0xaa); in main()
102 mctp_binding_bridge_rx(ctx->bindings[1], 0x55); in main()
103 assert(ctx->bindings[1]->tx_count == 1); in main()
104 assert(ctx->bindings[0]->tx_count == 1); in main()
105 assert(ctx->bindings[0]->last_pkt_data == 0x55); in main()
107 __mctp_free(ctx->bindings[1]); in main()
108 __mctp_free(ctx->bindings[0]); in main()