Lines Matching refs:binding

18 	struct mctp_binding binding;  member
32 struct mctp_binding_bridge *binding = in mctp_binding_bridge_tx() local
33 container_of(b, struct mctp_binding_bridge, binding); in mctp_binding_bridge_tx()
35 binding->tx_count++; in mctp_binding_bridge_tx()
37 binding->last_pkt_data = *(uint8_t *)mctp_pktbuf_data(pkt); in mctp_binding_bridge_tx()
42 static void mctp_binding_bridge_rx(struct mctp_binding_bridge *binding, in mctp_binding_bridge_rx() argument
49 pkt = mctp_pktbuf_alloc(&binding->binding, sizeof(struct mctp_hdr) + 1); in mctp_binding_bridge_rx()
62 binding->rx_count++; in mctp_binding_bridge_rx()
63 mctp_bus_rx(&binding->binding, pkt); in mctp_binding_bridge_rx()
68 struct mctp_binding_bridge *binding; in mctp_binding_bridge_init() local
70 binding = __mctp_alloc(sizeof(*binding)); in mctp_binding_bridge_init()
71 memset(binding, 0, sizeof(*binding)); in mctp_binding_bridge_init()
72 binding->binding.name = name; in mctp_binding_bridge_init()
73 binding->binding.version = 1; in mctp_binding_bridge_init()
74 binding->binding.tx = mctp_binding_bridge_tx; in mctp_binding_bridge_init()
75 binding->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_bridge_init()
76 binding->binding.pkt_header = 0; in mctp_binding_bridge_init()
77 binding->binding.pkt_trailer = 0; in mctp_binding_bridge_init()
78 return binding; in mctp_binding_bridge_init()
88 mctp_bridge_busses(ctx->mctp, &ctx->bindings[0]->binding, in main()
89 &ctx->bindings[1]->binding); in main()
91 mctp_binding_set_tx_enabled(&ctx->bindings[0]->binding, true); in main()
92 mctp_binding_set_tx_enabled(&ctx->bindings[1]->binding, true); in main()