• Home
  • Raw
  • Download

Lines Matching refs:opal_msg

33 	struct opal_ipmi_msg	*opal_msg;  member
57 struct opal_ipmi_msg *opal_msg; in ipmi_powernv_send() local
82 opal_msg = smi->opal_msg; in ipmi_powernv_send()
83 opal_msg->version = OPAL_IPMI_MSG_FORMAT_VERSION_1; in ipmi_powernv_send()
84 opal_msg->netfn = msg->data[0]; in ipmi_powernv_send()
85 opal_msg->cmd = msg->data[1]; in ipmi_powernv_send()
87 memcpy(opal_msg->data, msg->data + 2, msg->data_size - 2); in ipmi_powernv_send()
90 size = sizeof(*opal_msg) + msg->data_size - 2; in ipmi_powernv_send()
93 smi->interface_id, opal_msg, size); in ipmi_powernv_send()
94 rc = opal_ipmi_send(smi->interface_id, opal_msg, size); in ipmi_powernv_send()
112 struct opal_ipmi_msg *opal_msg; in ipmi_powernv_recv() local
130 opal_msg = smi->opal_msg; in ipmi_powernv_recv()
132 size = cpu_to_be64(sizeof(*opal_msg) + IPMI_MAX_MSG_LENGTH); in ipmi_powernv_recv()
135 opal_msg, in ipmi_powernv_recv()
153 if (size < sizeof(*opal_msg)) { in ipmi_powernv_recv()
159 if (opal_msg->version != OPAL_IPMI_MSG_FORMAT_VERSION_1) { in ipmi_powernv_recv()
162 opal_msg->version); in ipmi_powernv_recv()
166 msg->rsp[0] = opal_msg->netfn; in ipmi_powernv_recv()
167 msg->rsp[1] = opal_msg->cmd; in ipmi_powernv_recv()
168 if (size > sizeof(*opal_msg)) in ipmi_powernv_recv()
169 memcpy(&msg->rsp[2], opal_msg->data, size - sizeof(*opal_msg)); in ipmi_powernv_recv()
170 msg->rsp_size = 2 + size - sizeof(*opal_msg); in ipmi_powernv_recv()
256 ipmi->opal_msg = devm_kmalloc(dev, in ipmi_powernv_probe()
257 sizeof(*ipmi->opal_msg) + IPMI_MAX_MSG_LENGTH, in ipmi_powernv_probe()
259 if (!ipmi->opal_msg) { in ipmi_powernv_probe()
274 devm_kfree(dev, ipmi->opal_msg); in ipmi_powernv_probe()