Lines Matching refs:msg

18 static void report_version(struct scmi_msg *msg)  in report_version()  argument
25 if (msg->in_size != 0U) { in report_version()
26 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in report_version()
30 scmi_write_response(msg, &return_values, sizeof(return_values)); in report_version()
33 static void report_attributes(struct scmi_msg *msg) in report_attributes() argument
42 if (msg->in_size != 0U) { in report_attributes()
43 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in report_attributes()
47 scmi_write_response(msg, &return_values, sizeof(return_values)); in report_attributes()
50 static void report_message_attributes(struct scmi_msg *msg) in report_message_attributes() argument
52 struct scmi_protocol_message_attributes_a2p *in_args = (void *)msg->in; in report_message_attributes()
59 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes()
60 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in report_message_attributes()
65 scmi_status_response(msg, SCMI_NOT_FOUND); in report_message_attributes()
69 scmi_write_response(msg, &return_values, sizeof(return_values)); in report_message_attributes()
72 static void discover_vendor(struct scmi_msg *msg) in discover_vendor() argument
79 if (msg->in_size != 0U) { in discover_vendor()
80 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in discover_vendor()
86 scmi_write_response(msg, &return_values, sizeof(return_values)); in discover_vendor()
89 static void discover_sub_vendor(struct scmi_msg *msg) in discover_sub_vendor() argument
96 if (msg->in_size != 0U) { in discover_sub_vendor()
97 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in discover_sub_vendor()
103 scmi_write_response(msg, &return_values, sizeof(return_values)); in discover_sub_vendor()
106 static void discover_implementation_version(struct scmi_msg *msg) in discover_implementation_version() argument
113 if (msg->in_size != 0U) { in discover_implementation_version()
114 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in discover_implementation_version()
118 scmi_write_response(msg, &return_values, sizeof(return_values)); in discover_implementation_version()
136 static void discover_list_protocols(struct scmi_msg *msg) in discover_list_protocols() argument
146 if (msg->in_size != sizeof(*a2p)) { in discover_list_protocols()
147 scmi_status_response(msg, SCMI_PROTOCOL_ERROR); in discover_list_protocols()
151 assert(msg->out_size > sizeof(outargs)); in discover_list_protocols()
153 a2p = (void *)msg->in; in discover_list_protocols()
155 list = plat_scmi_protocol_list(msg->agent_id); in discover_list_protocols()
168 scmi_write_response(msg, outargs, sizeof(outargs)); in discover_list_protocols()
188 scmi_msg_handler_t scmi_msg_get_base_handler(struct scmi_msg *msg) in scmi_msg_get_base_handler() argument
190 unsigned int message_id = SPECULATION_SAFE_VALUE(msg->message_id); in scmi_msg_get_base_handler()
193 VERBOSE("Base handle not found %u\n", msg->message_id); in scmi_msg_get_base_handler()