Searched refs:opal_msg (Results 1 - 12 of 12) sorted by relevance

/linux-4.1.27/drivers/char/ipmi/
H A Dipmi_powernv.c32 * updates through send & recv calls, (and consequently opal_msg, which
37 struct opal_ipmi_msg *opal_msg; member in struct:ipmi_smi_powernv
61 struct opal_ipmi_msg *opal_msg; ipmi_powernv_send() local
86 opal_msg = smi->opal_msg; ipmi_powernv_send()
87 opal_msg->version = OPAL_IPMI_MSG_FORMAT_VERSION_1; ipmi_powernv_send()
88 opal_msg->netfn = msg->data[0]; ipmi_powernv_send()
89 opal_msg->cmd = msg->data[1]; ipmi_powernv_send()
91 memcpy(opal_msg->data, msg->data + 2, msg->data_size - 2); ipmi_powernv_send()
94 size = sizeof(*opal_msg) + msg->data_size - 2; ipmi_powernv_send()
97 smi->interface_id, opal_msg, size); ipmi_powernv_send()
98 rc = opal_ipmi_send(smi->interface_id, opal_msg, size); ipmi_powernv_send()
116 struct opal_ipmi_msg *opal_msg; ipmi_powernv_recv() local
134 opal_msg = smi->opal_msg; ipmi_powernv_recv()
136 size = cpu_to_be64(sizeof(*opal_msg) + IPMI_MAX_MSG_LENGTH); ipmi_powernv_recv()
139 opal_msg, ipmi_powernv_recv()
150 if (size < sizeof(*opal_msg)) { ipmi_powernv_recv()
156 if (opal_msg->version != OPAL_IPMI_MSG_FORMAT_VERSION_1) { ipmi_powernv_recv()
159 opal_msg->version); ipmi_powernv_recv()
163 msg->rsp[0] = opal_msg->netfn; ipmi_powernv_recv()
164 msg->rsp[1] = opal_msg->cmd; ipmi_powernv_recv()
165 if (size > sizeof(*opal_msg)) ipmi_powernv_recv()
166 memcpy(&msg->rsp[2], opal_msg->data, size - sizeof(*opal_msg)); ipmi_powernv_recv()
167 msg->rsp_size = 2 + size - sizeof(*opal_msg); ipmi_powernv_recv()
252 ipmi->opal_msg = devm_kmalloc(dev, ipmi_powernv_probe()
253 sizeof(*ipmi->opal_msg) + IPMI_MAX_MSG_LENGTH, ipmi_powernv_probe()
255 if (!ipmi->opal_msg) { ipmi_powernv_probe()
272 devm_kfree(dev, ipmi->opal_msg); ipmi_powernv_probe()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-power.c25 struct opal_msg *power_msg = msg; opal_power_control_event()
H A Dopal-async.c33 static struct opal_msg *opal_async_responses;
108 int opal_async_wait_response(uint64_t token, struct opal_msg *msg) opal_async_wait_response()
130 struct opal_msg *comp_msg = msg; opal_async_comp_event()
H A Dopal-memory-errors.c40 struct opal_msg msg;
115 memcpy(&msg_node->msg, msg, sizeof(struct opal_msg)); opal_memory_err_event()
H A Dopal-sensor.c37 struct opal_msg msg; opal_get_sensor_data()
H A Dopal-sysparam.c44 struct opal_msg msg; opal_get_sys_param()
78 struct opal_msg msg; opal_set_sys_param()
H A Dopal-hmi.c141 struct opal_msg *hmi_msg = msg; opal_handle_hmi_event()
H A Dopal.c342 static struct opal_msg msg; opal_handle_message()
/linux-4.1.27/drivers/rtc/
H A Drtc-opal.c112 struct opal_msg msg; opal_get_tpo_time()
156 struct opal_msg msg; opal_set_tpo_time()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-opal.c53 struct opal_msg msg; i2c_opal_send_request()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dopal.h230 extern int opal_async_wait_response(uint64_t token, struct opal_msg *msg);
H A Dopal-api.h358 struct opal_msg { struct

Completed in 172 milliseconds