Lines Matching defs:msg
45 struct ipmi_smi_msg *msg, u8 completion_code)
47 msg->rsp[0] = msg->data[0] | 0x4;
48 msg->rsp[1] = msg->data[1];
49 msg->rsp[2] = completion_code;
50 msg->rsp_size = 3;
51 ipmi_smi_msg_received(smi->intf, msg);
54 static void ipmi_powernv_send(void *send_info, struct ipmi_smi_msg *msg)
63 if (msg->data_size > IPMI_MAX_MSG_LENGTH) {
69 if (msg->data_size < 2) {
84 opal_msg->netfn = msg->data[0];
85 opal_msg->cmd = msg->data[1];
86 if (msg->data_size > 2)
87 memcpy(opal_msg->data, msg->data + 2, msg->data_size - 2);
90 size = sizeof(*opal_msg) + msg->data_size - 2;
98 smi->cur_msg = msg;
107 send_error_reply(smi, msg, comp);
113 struct ipmi_smi_msg *msg;
118 pr_devel("%s: opal_ipmi_recv(%llx, msg, sz)\n", __func__,
129 msg = smi->cur_msg;
149 send_error_reply(smi, msg, IPMI_ERR_UNSPECIFIED);
166 msg->rsp[0] = opal_msg->netfn;
167 msg->rsp[1] = opal_msg->cmd;
169 memcpy(&msg->rsp[2], opal_msg->data, size - sizeof(*opal_msg));
170 msg->rsp_size = 2 + size - sizeof(*opal_msg);
174 ipmi_smi_msg_received(smi->intf, msg);