Home
last modified time | relevance | path

Searched refs:MCTP_PACKET_SIZE (Results 1 – 9 of 9) sorted by relevance

/openbmc/libmctp/
H A Dastlpc.c484 astlpc->proto->packet_size(MCTP_PACKET_SIZE(MCTP_BTU))) { in mctp_astlpc_buffer_validate()
489 astlpc->proto->packet_size(MCTP_PACKET_SIZE(MCTP_BTU)), in mctp_astlpc_buffer_validate()
550 sz = astlpc->proto->packet_size(MCTP_PACKET_SIZE(sz)); in mctp_astlpc_init_bmc()
556 rpkt = astlpc->proto->packet_size(MCTP_PACKET_SIZE(rmtu)); in mctp_astlpc_init_bmc()
664 sz = astlpc->proto->packet_size(MCTP_PACKET_SIZE(rmtu)); in mctp_astlpc_negotiate_layout_host()
887 rpkt = astlpc->proto->packet_size(MCTP_PACKET_SIZE(rmtu)); in mctp_astlpc_calculate_mtu()
917 sz = astlpc->proto->packet_size(MCTP_PACKET_SIZE(mtu)); in mctp_astlpc_negotiate_layout_bmc()
944 astlpc->binding.pkt_size = MCTP_PACKET_SIZE(mtu); in mctp_astlpc_negotiate_layout_bmc()
1270 MCTP_PACKET_SIZE(mtu > MCTP_BTU ? mtu : MCTP_BTU); in __mctp_astlpc_init()
H A Dlibmctp.h47 #define MCTP_PACKET_SIZE(unit) ((unit) + sizeof(struct mctp_hdr)) macro
H A Dserial.c403 serial->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_serial_init()
H A Dcore.c739 if (binding->pkt_size < MCTP_PACKET_SIZE(MCTP_BTU)) { in mctp_binding_set_tx_enabled()
/openbmc/libmctp/tests/
H A Dtest-utils.c35 test->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_test_init()
H A Dtest_cmds.c66 test_binding->pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in setup_test_binding()
H A Dtest_bridge.c75 binding->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU); in mctp_binding_bridge_init()
H A Dtest_core.c92 rx_pkt = __mctp_alloc(sizeof(*rx_pkt) + MCTP_PACKET_SIZE(alloc_size)); in receive_ptkbuf()
96 rx_pkt->size = MCTP_PACKET_SIZE(len); in receive_ptkbuf()
98 rx_pkt->end = MCTP_PACKET_SIZE(len); in receive_ptkbuf()
H A Dtest_astlpc.c731 #define BUFFER_MIN (MCTP_PACKET_SIZE(MCTP_BTU) + 4 + 4)
1062 astlpc_layout_ctx.proto->packet_size(MCTP_PACKET_SIZE(hmtu))); in astlpc_test_negotiate_mtu_low_high()
1085 astlpc_layout_ctx.proto->packet_size(MCTP_PACKET_SIZE(bmtu))); in astlpc_test_negotiate_mtu_low_high()