Lines Matching refs:msg

59 	void *msg;  member
156 void *data __unused, void *msg, size_t len) in astlpc_test_rx_message() argument
160 mctp_prdebug("MCTP message received: msg: %p, len %zd", msg, len); in astlpc_test_rx_message()
163 assert(msg); in astlpc_test_rx_message()
165 assert(test->msg); in astlpc_test_rx_message()
166 assert(!memcmp(test->msg, msg, len)); in astlpc_test_rx_message()
247 uint8_t msg[2 * MCTP_BTU]; in astlpc_test_packetised_message_bmc_to_host() local
254 memset(&msg[0], 0x5a, MCTP_BTU); in astlpc_test_packetised_message_bmc_to_host()
255 memset(&msg[MCTP_BTU], 0xa5, MCTP_BTU); in astlpc_test_packetised_message_bmc_to_host()
257 ctx.msg = &msg[0]; in astlpc_test_packetised_message_bmc_to_host()
262 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_SRC, 0, msg, in astlpc_test_packetised_message_bmc_to_host()
263 sizeof(msg)); in astlpc_test_packetised_message_bmc_to_host()
277 astlpc_assert_tx_packet(&ctx.bmc, &msg[MCTP_BTU], MCTP_BTU); in astlpc_test_packetised_message_bmc_to_host()
289 uint8_t msg[MCTP_BTU]; in astlpc_test_simple_message_host_to_bmc() local
297 memset(&msg[0], 0xa5, MCTP_BTU); in astlpc_test_simple_message_host_to_bmc()
299 ctx.msg = &msg[0]; in astlpc_test_simple_message_host_to_bmc()
304 rc = mctp_message_tx(ctx.host.mctp, 8, MCTP_MESSAGE_TO_DST, tag, msg, in astlpc_test_simple_message_host_to_bmc()
305 sizeof(msg)); in astlpc_test_simple_message_host_to_bmc()
310 astlpc_assert_tx_packet(&ctx.host, &msg[0], MCTP_BTU); in astlpc_test_simple_message_host_to_bmc()
331 uint8_t msg[MCTP_BTU]; in astlpc_test_simple_message_bmc_to_host() local
339 memset(&msg[0], 0x5a, MCTP_BTU); in astlpc_test_simple_message_bmc_to_host()
341 ctx.msg = &msg[0]; in astlpc_test_simple_message_bmc_to_host()
346 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_SRC, tag, msg, in astlpc_test_simple_message_bmc_to_host()
347 sizeof(msg)); in astlpc_test_simple_message_bmc_to_host()
352 astlpc_assert_tx_packet(&ctx.bmc, &msg[0], MCTP_BTU); in astlpc_test_simple_message_bmc_to_host()
558 uint8_t msg[MCTP_BTU]; in astlpc_test_simple_indirect_message_bmc_to_host() local
566 memset(&msg[0], 0x5a, MCTP_BTU); in astlpc_test_simple_indirect_message_bmc_to_host()
600 ctx.msg = &msg[0]; in astlpc_test_simple_indirect_message_bmc_to_host()
605 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_SRC, tag, msg, in astlpc_test_simple_indirect_message_bmc_to_host()
606 sizeof(msg)); in astlpc_test_simple_indirect_message_bmc_to_host()
626 uint8_t msg[MCTP_BTU]; in astlpc_test_host_tx_bmc_gone() local
634 memset(&msg[0], 0x5a, sizeof(msg)); in astlpc_test_host_tx_bmc_gone()
637 ctx.msg = &msg[0]; in astlpc_test_host_tx_bmc_gone()
647 rc = mctp_message_tx(ctx.host.mctp, 8, MCTP_MESSAGE_TO_DST, tag, msg, in astlpc_test_host_tx_bmc_gone()
648 sizeof(msg)); in astlpc_test_host_tx_bmc_gone()
1127 ctx.msg = malloc(2 * MCTP_BODY_SIZE(8192)); in astlpc_test_send_large_packet()
1128 assert(ctx.msg); in astlpc_test_send_large_packet()
1130 memset(ctx.msg, 0x5a, 2 * MCTP_BODY_SIZE(8192)); in astlpc_test_send_large_packet()
1132 rc = mctp_message_tx(host->mctp, 8, MCTP_MESSAGE_TO_DST, tag, ctx.msg, in astlpc_test_send_large_packet()
1146 free(ctx.msg); in astlpc_test_send_large_packet()
1154 uint8_t msg[3 * MCTP_BTU] = { 0 }; in astlpc_test_negotiate_mtu_high_low() local
1161 memset(&msg[0], 0xa5, sizeof(msg)); in astlpc_test_negotiate_mtu_high_low()
1180 ctx.msg = &msg[0]; in astlpc_test_negotiate_mtu_high_low()
1195 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_DST, tag, msg, in astlpc_test_negotiate_mtu_high_low()
1196 sizeof(msg)); in astlpc_test_negotiate_mtu_high_low()
1204 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_DST, tag, msg, in astlpc_test_negotiate_mtu_high_low()
1205 sizeof(msg)); in astlpc_test_negotiate_mtu_high_low()
1217 ctx.msg = &msg[0]; in astlpc_test_negotiate_mtu_high_low()
1239 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_DST, tag, msg, in astlpc_test_negotiate_mtu_high_low()
1266 uint8_t msg[MCTP_BTU]; in astlpc_test_tx_before_channel_init() local
1282 memset(msg, '\0', sizeof(msg)); in astlpc_test_tx_before_channel_init()
1291 mctp_message_tx(bmc->mctp, 9, MCTP_MESSAGE_TO_SRC, tag, msg, in astlpc_test_tx_before_channel_init()
1292 sizeof(msg)); in astlpc_test_tx_before_channel_init()
1303 uint8_t msg[MCTP_BTU]; in astlpc_test_corrupt_host_tx() local
1314 memset(&msg[0], 0xa5, MCTP_BTU); in astlpc_test_corrupt_host_tx()
1316 ctx.msg = &msg[0]; in astlpc_test_corrupt_host_tx()
1321 rc = mctp_message_tx(ctx.host.mctp, 8, MCTP_MESSAGE_TO_DST, tag, msg, in astlpc_test_corrupt_host_tx()
1322 sizeof(msg)); in astlpc_test_corrupt_host_tx()
1327 astlpc_assert_tx_packet(&ctx.host, &msg[0], MCTP_BTU); in astlpc_test_corrupt_host_tx()
1332 tlr = (uint8_t *)&ctx.lpc_mem[offset] + 4 + sizeof(msg); in astlpc_test_corrupt_host_tx()
1357 uint8_t msg[MCTP_BTU]; in astlpc_test_corrupt_bmc_tx() local
1368 memset(&msg[0], 0x5a, MCTP_BTU); in astlpc_test_corrupt_bmc_tx()
1370 ctx.msg = &msg[0]; in astlpc_test_corrupt_bmc_tx()
1375 rc = mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_SRC, tag, msg, in astlpc_test_corrupt_bmc_tx()
1376 sizeof(msg)); in astlpc_test_corrupt_bmc_tx()
1382 astlpc_assert_tx_packet(&ctx.bmc, &msg[0], MCTP_BTU); in astlpc_test_corrupt_bmc_tx()
1387 tlr = (uint8_t *)&ctx.lpc_mem[offset] + 4 + sizeof(msg); in astlpc_test_corrupt_bmc_tx()
1411 uint8_t msg[MCTP_BTU]; in astlpc_test_async_exchange() local
1417 memset(&msg[0], 0x5a, MCTP_BTU); in astlpc_test_async_exchange()
1423 mctp_message_tx(ctx.bmc.mctp, 9, MCTP_MESSAGE_TO_SRC, tag, msg, in astlpc_test_async_exchange()
1424 sizeof(msg)); in astlpc_test_async_exchange()
1437 mctp_message_tx(ctx.host.mctp, 8, MCTP_MESSAGE_TO_SRC, tag, msg, in astlpc_test_async_exchange()
1438 sizeof(msg)); in astlpc_test_async_exchange()