Lines Matching defs:msg
28 * The msg member must be at the end of the struct, as it's followed by the
33 struct opal_prd_msg_header msg;
162 if (count < sizeof(item->msg))
192 size = be16_to_cpu(item->msg.size);
198 rc = copy_to_user(buf, &item->msg, size);
221 void *msg;
236 msg = memdup_user(buf, size);
237 if (IS_ERR(msg))
238 return PTR_ERR(msg);
240 rc = opal_prd_msg(msg);
246 kfree(msg);
253 struct opal_prd_msg_header msg;
255 msg.size = cpu_to_be16(sizeof(msg));
256 msg.type = OPAL_PRD_MSG_TYPE_FINI;
258 opal_prd_msg((struct opal_prd_msg *)&msg);
341 struct opal_msg *msg = _msg;
350 hdr = (void *)msg->params;
352 item_size = msg_size + sizeof(*item) - sizeof(item->msg);
358 memcpy(&item->msg, msg->params, msg_size);