Lines Matching refs:payload
96 struct ipmi_v2_payload * payload);
99 struct ipmi_v2_payload * payload, /* in */
107 struct ipmi_v2_payload * payload);
119 struct ipmi_v2_payload * payload);
709 rsp->payload.ipmi_response.rq_addr); in ipmi_lan_poll_single()
711 rsp->payload.ipmi_response.netfn); in ipmi_lan_poll_single()
713 rsp->payload.ipmi_response.rq_lun); in ipmi_lan_poll_single()
715 rsp->payload.ipmi_response.rs_addr); in ipmi_lan_poll_single()
717 rsp->payload.ipmi_response.rq_seq); in ipmi_lan_poll_single()
719 rsp->payload.ipmi_response.rs_lun); in ipmi_lan_poll_single()
721 rsp->payload.ipmi_response.cmd); in ipmi_lan_poll_single()
726 entry = ipmi_req_lookup_entry(rsp->payload.ipmi_response.rq_seq, in ipmi_lan_poll_single()
727 rsp->payload.ipmi_response.cmd); in ipmi_lan_poll_single()
775 ipmi_req_remove_entry(rsp->payload.ipmi_response.rq_seq, in ipmi_lan_poll_single()
776 rsp->payload.ipmi_response.cmd); in ipmi_lan_poll_single()
900 memset(&rsp->payload.open_session_response, 0, in read_open_session_response()
901 sizeof(rsp->payload.open_session_response)); in read_open_session_response()
904 rsp->payload.open_session_response.message_tag = rsp->data[offset]; in read_open_session_response()
907 rsp->payload.open_session_response.rakp_return_code = rsp->data[offset + 1]; in read_open_session_response()
910 rsp->payload.open_session_response.max_priv_level = rsp->data[offset + 2]; in read_open_session_response()
915 memcpy(&(rsp->payload.open_session_response.console_id), in read_open_session_response()
919 rsp->payload.open_session_response.console_id = in read_open_session_response()
920 BSWAP_32(rsp->payload.open_session_response.console_id); in read_open_session_response()
924 if (rsp->payload.open_session_response.rakp_return_code != in read_open_session_response()
929 memcpy(&(rsp->payload.open_session_response.bmc_id), in read_open_session_response()
933 rsp->payload.open_session_response.bmc_id = in read_open_session_response()
934 BSWAP_32(rsp->payload.open_session_response.bmc_id); in read_open_session_response()
938 rsp->payload.open_session_response.auth_alg = rsp->data[offset + 16]; in read_open_session_response()
939 rsp->payload.open_session_response.integrity_alg = rsp->data[offset + 24]; in read_open_session_response()
940 rsp->payload.open_session_response.crypt_alg = rsp->data[offset + 32]; in read_open_session_response()
971 rsp->payload.rakp2_message.message_tag = rsp->data[offset]; in read_rakp2_message()
974 rsp->payload.rakp2_message.rakp_return_code = rsp->data[offset + 1]; in read_rakp2_message()
977 memcpy(&(rsp->payload.rakp2_message.console_id), in read_rakp2_message()
981 rsp->payload.rakp2_message.console_id = in read_rakp2_message()
982 BSWAP_32(rsp->payload.rakp2_message.console_id); in read_rakp2_message()
986 memcpy(&(rsp->payload.rakp2_message.bmc_rand), in read_rakp2_message()
990 lanplus_swap(rsp->payload.rakp2_message.bmc_rand, 16); in read_rakp2_message()
994 memcpy(&(rsp->payload.rakp2_message.bmc_guid), in read_rakp2_message()
998 lanplus_swap(rsp->payload.rakp2_message.bmc_guid, 16); in read_rakp2_message()
1011 rsp->payload.rakp2_message.key_exchange_auth_code[i] = in read_rakp2_message()
1052 rsp->payload.rakp4_message.message_tag = rsp->data[offset]; in read_rakp4_message()
1055 rsp->payload.rakp4_message.rakp_return_code = rsp->data[offset + 1]; in read_rakp4_message()
1058 memcpy(&(rsp->payload.rakp4_message.console_id), in read_rakp4_message()
1062 rsp->payload.rakp4_message.console_id = in read_rakp4_message()
1063 BSWAP_32(rsp->payload.rakp4_message.console_id); in read_rakp4_message()
1077 rsp->payload.rakp4_message.integrity_check_value[i] = in read_rakp4_message()
1251 rsp->payload.ipmi_response.rq_addr = rsp->data[(*offset)++]; in read_ipmi_response()
1252 rsp->payload.ipmi_response.netfn = rsp->data[*offset] >> 2; in read_ipmi_response()
1253 rsp->payload.ipmi_response.rq_lun = rsp->data[(*offset)++] & 0x3; in read_ipmi_response()
1255 rsp->payload.ipmi_response.rs_addr = rsp->data[(*offset)++]; in read_ipmi_response()
1256 rsp->payload.ipmi_response.rq_seq = rsp->data[*offset] >> 2; in read_ipmi_response()
1257 rsp->payload.ipmi_response.rs_lun = rsp->data[(*offset)++] & 0x3; in read_ipmi_response()
1258 rsp->payload.ipmi_response.cmd = rsp->data[(*offset)++]; in read_ipmi_response()
1284 rsp->payload.sol_packet.packet_sequence_number = in read_sol_packet()
1287 rsp->payload.sol_packet.acked_packet_number = in read_sol_packet()
1290 rsp->payload.sol_packet.accepted_character_count = in read_sol_packet()
1293 rsp->payload.sol_packet.is_nack = in read_sol_packet()
1296 rsp->payload.sol_packet.transfer_unavailable = in read_sol_packet()
1299 rsp->payload.sol_packet.sol_inactive = in read_sol_packet()
1302 rsp->payload.sol_packet.transmit_overrun = in read_sol_packet()
1305 rsp->payload.sol_packet.break_detected = in read_sol_packet()
1310 rsp->payload.sol_packet.packet_sequence_number); in read_sol_packet()
1312 rsp->payload.sol_packet.acked_packet_number); in read_sol_packet()
1314 rsp->payload.sol_packet.accepted_character_count); in read_sol_packet()
1316 rsp->payload.sol_packet.is_nack? "true" : "false"); in read_sol_packet()
1318 rsp->payload.sol_packet.transfer_unavailable? "true" : "false"); in read_sol_packet()
1320 rsp->payload.sol_packet.sol_inactive? "true" : "false"); in read_sol_packet()
1322 rsp->payload.sol_packet.transmit_overrun? "true" : "false"); in read_sol_packet()
1324 rsp->payload.sol_packet.break_detected? "true" : "false"); in read_sol_packet()
1343 struct ipmi_v2_payload * payload, /* in */ in getIpmiPayloadWireRep() argument
1387 payload->payload_length += 7; in getIpmiPayloadWireRep()
1408 payload->payload_length += 7; in getIpmiPayloadWireRep()
1461 payload->payload_length += 1; in getIpmiPayloadWireRep()
1468 payload->payload_length += 1; in getIpmiPayloadWireRep()
1483 struct ipmi_v2_payload * payload) /* input */ in getSolPayloadWireRep() argument
1489 payload->payload.sol_packet.packet_sequence_number); in getSolPayloadWireRep()
1491 payload->payload.sol_packet.acked_packet_number); in getSolPayloadWireRep()
1493 payload->payload.sol_packet.accepted_character_count); in getSolPayloadWireRep()
1495 payload->payload.sol_packet.is_nack ? "true" : "false"); in getSolPayloadWireRep()
1497 payload->payload.sol_packet.assert_ring_wor ? "true" : "false"); in getSolPayloadWireRep()
1499 payload->payload.sol_packet.generate_break ? "true" : "false"); in getSolPayloadWireRep()
1501 payload->payload.sol_packet.deassert_cts ? "true" : "false"); in getSolPayloadWireRep()
1503 payload->payload.sol_packet.deassert_dcd_dsr ? "true" : "false"); in getSolPayloadWireRep()
1505 payload->payload.sol_packet.flush_inbound ? "true" : "false"); in getSolPayloadWireRep()
1507 payload->payload.sol_packet.flush_outbound ? "true" : "false"); in getSolPayloadWireRep()
1509 msg[i++] = payload->payload.sol_packet.packet_sequence_number; in getSolPayloadWireRep()
1510 msg[i++] = payload->payload.sol_packet.acked_packet_number; in getSolPayloadWireRep()
1511 msg[i++] = payload->payload.sol_packet.accepted_character_count; in getSolPayloadWireRep()
1513 msg[i] = payload->payload.sol_packet.is_nack ? 0x40 : 0; in getSolPayloadWireRep()
1514 msg[i] |= payload->payload.sol_packet.assert_ring_wor ? 0x20 : 0; in getSolPayloadWireRep()
1515 msg[i] |= payload->payload.sol_packet.generate_break ? 0x10 : 0; in getSolPayloadWireRep()
1516 msg[i] |= payload->payload.sol_packet.deassert_cts ? 0x08 : 0; in getSolPayloadWireRep()
1517 msg[i] |= payload->payload.sol_packet.deassert_dcd_dsr ? 0x04 : 0; in getSolPayloadWireRep()
1518 msg[i] |= payload->payload.sol_packet.flush_inbound ? 0x02 : 0; in getSolPayloadWireRep()
1519 msg[i++] |= payload->payload.sol_packet.flush_outbound ? 0x01 : 0; in getSolPayloadWireRep()
1523 payload->payload.sol_packet.data, in getSolPayloadWireRep()
1524 payload->payload.sol_packet.character_count); in getSolPayloadWireRep()
1527 payload->payload.sol_packet.character_count); in getSolPayloadWireRep()
1530 if (verbose >= 5 && payload->payload.sol_packet.character_count) in getSolPayloadWireRep()
1531 …printbuf(payload->payload.sol_packet.data, payload->payload.sol_packet.character_count, "SOL SEND … in getSolPayloadWireRep()
1538 payload->payload_length = payload->payload.sol_packet.character_count + 4; in getSolPayloadWireRep()
1581 struct ipmi_v2_payload * payload, /* in */ in ipmi_lanplus_build_v2x_msg() argument
1603 payload->payload_length + // The actual payload in ipmi_lanplus_build_v2x_msg()
1635 msg[IPMI_LANPLUS_OFFSET_PAYLOAD_TYPE] = payload->payload_type; in ipmi_lanplus_build_v2x_msg()
1675 switch (payload->payload_type) in ipmi_lanplus_build_v2x_msg()
1679 payload, /* in */ in ipmi_lanplus_build_v2x_msg()
1681 payload->payload.ipmi_request.request, in ipmi_lanplus_build_v2x_msg()
1682 payload->payload.ipmi_request.rq_seq, in ipmi_lanplus_build_v2x_msg()
1689 payload); in ipmi_lanplus_build_v2x_msg()
1694 len += payload->payload_length; in ipmi_lanplus_build_v2x_msg()
1701 payload->payload.open_session_request.request, in ipmi_lanplus_build_v2x_msg()
1702 payload->payload_length); in ipmi_lanplus_build_v2x_msg()
1703 len += payload->payload_length; in ipmi_lanplus_build_v2x_msg()
1709 payload->payload.rakp_1_message.message, in ipmi_lanplus_build_v2x_msg()
1710 payload->payload_length); in ipmi_lanplus_build_v2x_msg()
1711 len += payload->payload_length; in ipmi_lanplus_build_v2x_msg()
1717 payload->payload.rakp_3_message.message, in ipmi_lanplus_build_v2x_msg()
1718 payload->payload_length); in ipmi_lanplus_build_v2x_msg()
1719 len += payload->payload_length; in ipmi_lanplus_build_v2x_msg()
1724 payload->payload_type); in ipmi_lanplus_build_v2x_msg()
1743 payload->payload_length, /* input */ in ipmi_lanplus_build_v2x_msg()
1745 &(payload->payload_length)); /* output */ in ipmi_lanplus_build_v2x_msg()
1751 payload->payload_length & 0xff; in ipmi_lanplus_build_v2x_msg()
1753 (payload->payload_length >> 8) & 0xff; in ipmi_lanplus_build_v2x_msg()
1768 payload->payload_length; in ipmi_lanplus_build_v2x_msg()
1780 payload->payload_length; in ipmi_lanplus_build_v2x_msg()
1784 payload->payload_length + in ipmi_lanplus_build_v2x_msg()
1804 payload->payload_length + in ipmi_lanplus_build_v2x_msg()
1811 payload->payload_length + in ipmi_lanplus_build_v2x_msg()
1847 payload->payload_length + in ipmi_lanplus_build_v2x_msg()
1913 v2_payload.payload.ipmi_request.request = req; in ipmi_lanplus_build_v2x_ipmi_cmd()
1914 v2_payload.payload.ipmi_request.rq_seq = curr_seq; in ipmi_lanplus_build_v2x_ipmi_cmd()
2083 struct ipmi_v2_payload * payload) in sol_response_acks_packet() argument
2086 payload && in sol_response_acks_packet()
2087 (payload->payload_type == IPMI_PAYLOAD_TYPE_SOL) && in sol_response_acks_packet()
2088 (rsp->payload.sol_packet.acked_packet_number == in sol_response_acks_packet()
2089 payload->payload.sol_packet.packet_sequence_number)); in sol_response_acks_packet()
2101 struct ipmi_v2_payload * payload) in ipmi_lanplus_send_payload() argument
2127 if (payload->payload_type == IPMI_PAYLOAD_TYPE_IPMI) in ipmi_lanplus_send_payload()
2132 struct ipmi_rq * ipmi_request = payload->payload.ipmi_request.request; in ipmi_lanplus_send_payload()
2179 else if (payload->payload_type == IPMI_PAYLOAD_TYPE_RMCP_OPEN_REQUEST) in ipmi_lanplus_send_payload()
2186 payload, /* in */ in ipmi_lanplus_send_payload()
2193 else if (payload->payload_type == IPMI_PAYLOAD_TYPE_RAKP_1) in ipmi_lanplus_send_payload()
2200 payload, /* in */ in ipmi_lanplus_send_payload()
2207 else if (payload->payload_type == IPMI_PAYLOAD_TYPE_RAKP_3) in ipmi_lanplus_send_payload()
2214 payload, /* in */ in ipmi_lanplus_send_payload()
2221 else if (payload->payload_type == IPMI_PAYLOAD_TYPE_SOL) in ipmi_lanplus_send_payload()
2227 payload, /* in */ in ipmi_lanplus_send_payload()
2236 payload->payload_type); in ipmi_lanplus_send_payload()
2254 switch (payload->payload_type) in ipmi_lanplus_send_payload()
2277 if (payload->payload_type == IPMI_PAYLOAD_TYPE_SOL) in ipmi_lanplus_send_payload()
2279 if (! payload->payload.sol_packet.packet_sequence_number) in ipmi_lanplus_send_payload()
2288 if (sol_response_acks_packet(rsp, payload)) in ipmi_lanplus_send_payload()
2320 if ((payload->payload_type == IPMI_PAYLOAD_TYPE_IPMI) && entry) { in ipmi_lanplus_send_payload()
2340 switch (payload->payload_type) { in ipmi_lanplus_send_payload()
2374 (rs->payload.sol_packet.accepted_character_count < in is_sol_partial_ack()
2375 v2_payload->payload.sol_packet.character_count)) in is_sol_partial_ack()
2378 rs->payload.sol_packet.accepted_character_count == 0) in is_sol_partial_ack()
2382 v2_payload->payload.sol_packet.character_count - in is_sol_partial_ack()
2383 rs->payload.sol_packet.accepted_character_count; in is_sol_partial_ack()
2402 v2_payload->payload.sol_packet.packet_sequence_number = in set_sol_packet_sequence_number()
2436 v2_payload->payload_length = v2_payload->payload.sol_packet.character_count; in ipmi_lanplus_send_sol()
2438 v2_payload->payload.sol_packet.acked_packet_number = 0; /* NA */ in ipmi_lanplus_send_sol()
2442 v2_payload->payload.sol_packet.accepted_character_count = 0; /* NA */ in ipmi_lanplus_send_sol()
2449 while (rs && !rs->payload.sol_packet.transfer_unavailable && in ipmi_lanplus_send_sol()
2450 !rs->payload.sol_packet.is_nack && in ipmi_lanplus_send_sol()
2463 memmove(v2_payload->payload.sol_packet.data, in ipmi_lanplus_send_sol()
2464 v2_payload->payload.sol_packet.data + in ipmi_lanplus_send_sol()
2465 rs->payload.sol_packet.accepted_character_count, in ipmi_lanplus_send_sol()
2468 v2_payload->payload.sol_packet.character_count = chars_to_resend; in ipmi_lanplus_send_sol()
2470 v2_payload->payload_length = v2_payload->payload.sol_packet.character_count; in ipmi_lanplus_send_sol()
2512 if (rsp->payload.sol_packet.packet_sequence_number == in check_sol_packet_for_new_data()
2538 if (rsp->payload.sol_packet.packet_sequence_number) in check_sol_packet_for_new_data()
2541 rsp->payload.sol_packet.packet_sequence_number; in check_sol_packet_for_new_data()
2566 (rsp->payload.sol_packet.packet_sequence_number)) in ack_sol_packet()
2581 ack.payload.sol_packet.packet_sequence_number = 0; in ack_sol_packet()
2583 ack.payload.sol_packet.acked_packet_number = in ack_sol_packet()
2584 rsp->payload.sol_packet.packet_sequence_number; in ack_sol_packet()
2586 ack.payload.sol_packet.accepted_character_count = rsp->data_len; in ack_sol_packet()
2633 v2_payload.payload.ipmi_request.request = req; in ipmi_lanplus_send_ipmi_cmd()
2873 v2_payload.payload.open_session_request.request = msg; in ipmi_lanplus_open_session()
2886 if (rsp->payload.open_session_response.rakp_return_code != in ipmi_lanplus_open_session()
2890 val2str(rsp->payload.open_session_response.rakp_return_code, in ipmi_lanplus_open_session()
2896 if (rsp->payload.open_session_response.console_id != in ipmi_lanplus_open_session()
2903 rsp->payload.open_session_response.max_priv_level; in ipmi_lanplus_open_session()
2905 rsp->payload.open_session_response.bmc_id; in ipmi_lanplus_open_session()
2907 rsp->payload.open_session_response.auth_alg; in ipmi_lanplus_open_session()
2909 rsp->payload.open_session_response.integrity_alg; in ipmi_lanplus_open_session()
2911 rsp->payload.open_session_response.crypt_alg; in ipmi_lanplus_open_session()
2919 if (rsp->payload.open_session_response.auth_alg != in ipmi_lanplus_open_session()
2924 rsp->payload.open_session_response.auth_alg, in ipmi_lanplus_open_session()
2928 else if (rsp->payload.open_session_response.integrity_alg != in ipmi_lanplus_open_session()
2933 rsp->payload.open_session_response.integrity_alg, in ipmi_lanplus_open_session()
2937 else if (rsp->payload.open_session_response.crypt_alg != in ipmi_lanplus_open_session()
2942 rsp->payload.open_session_response.crypt_alg, in ipmi_lanplus_open_session()
3058 v2_payload.payload.rakp_1_message.message = msg; in ipmi_lanplus_rakp1()
3078 if (rsp->payload.rakp2_message.rakp_return_code != IPMI_RAKP_STATUS_NO_ERRORS) in ipmi_lanplus_rakp1()
3081 val2str(rsp->payload.rakp2_message.rakp_return_code, in ipmi_lanplus_rakp1()
3088 memcpy(session->v2_data.bmc_rand, rsp->payload.rakp2_message.bmc_rand, 16); in ipmi_lanplus_rakp1()
3089 memcpy(session->v2_data.bmc_guid, rsp->payload.rakp2_message.bmc_guid, 16); in ipmi_lanplus_rakp1()
3099 rsp->payload.rakp2_message.key_exchange_auth_code, in ipmi_lanplus_rakp1()
3170 v2_payload.payload.rakp_3_message.message = msg; in ipmi_lanplus_rakp3()
3252 if (rsp->payload.open_session_response.rakp_return_code != IPMI_RAKP_STATUS_NO_ERRORS) in ipmi_lanplus_rakp3()
3255 val2str(rsp->payload.rakp4_message.rakp_return_code, in ipmi_lanplus_rakp3()
3264 rsp->payload.rakp4_message.integrity_check_value, in ipmi_lanplus_rakp3()