mbox_msg
union mbox_msg msg;
union mbox_msg msg;
static void dump_mbox_msg(struct otx_cpt_mbox *mbox_msg, int vf_id)
hex_dump_to_buffer(mbox_msg, sizeof(struct otx_cpt_mbox), 16, 8,
get_mbox_opcode_str(mbox_msg->msg), vf_id,
get_mbox_opcode_str(mbox_msg->msg), raw_data_str);
static void dump_mbox_msg(struct otx_cpt_mbox *mbox_msg, int vf_id)
hex_dump_to_buffer(mbox_msg, sizeof(struct otx_cpt_mbox), 16, 8,
get_mbox_opcode_str(mbox_msg->msg), vf_id,
get_mbox_opcode_str(mbox_msg->msg), raw_data_str);
struct ti_msgmgr_message *mbox_msg = m;
struct ti_sci_msg_hdr *hdr = (struct ti_sci_msg_hdr *)mbox_msg->buf;
if (mbox_msg->len > info->desc->max_msg_size) {
mbox_msg->len, info->desc->max_msg_size);
if (mbox_msg->len < xfer->rx_len) {
mbox_msg->len, xfer->rx_len);
memcpy(xfer->xfer_buf, mbox_msg->buf, xfer->rx_len);
struct hns_roce_mbox_msg *mbox_msg)
mbox_msg->token = context->token;
ret = hns_roce_cmd_mbox_post_hw(hr_dev, mbox_msg);
mbox_msg->cmd, ret);
context->token, mbox_msg->cmd);
context->token, mbox_msg->cmd, ret);
struct hns_roce_mbox_msg *mbox_msg)
ret = __hns_roce_cmd_mbox_wait(hr_dev, mbox_msg);
struct hns_roce_mbox_msg mbox_msg = {};
mbox_msg.in_param = in_param;
mbox_msg.out_param = out_param;
mbox_msg.cmd = cmd;
mbox_msg.tag = tag;
mbox_msg.event_en = 1;
return hns_roce_cmd_mbox_wait(hr_dev, &mbox_msg);
mbox_msg.event_en = 0;
mbox_msg.token = CMD_POLL_TOKEN;
return hns_roce_cmd_mbox_poll(hr_dev, &mbox_msg);
struct hns_roce_mbox_msg *mbox_msg)
ret = hr_dev->hw->post_mbox(hr_dev, mbox_msg);
struct hns_roce_mbox_msg *mbox_msg)
ret = hns_roce_cmd_mbox_post_hw(hr_dev, mbox_msg);
mbox_msg->cmd, ret);
struct hns_roce_mbox_msg *mbox_msg)
ret = __hns_roce_cmd_mbox_poll(hr_dev, mbox_msg);
struct hns_roce_mbox_msg *mbox_msg);
struct hns_roce_mbox_msg *mbox_msg)
mb->in_param_l = cpu_to_le32(mbox_msg->in_param);
mb->in_param_h = cpu_to_le32(mbox_msg->in_param >> 32);
mb->out_param_l = cpu_to_le32(mbox_msg->out_param);
mb->out_param_h = cpu_to_le32(mbox_msg->out_param >> 32);
mb->cmd_tag = cpu_to_le32(mbox_msg->tag << 8 | mbox_msg->cmd);
mb->token_event_en = cpu_to_le32(mbox_msg->event_en << 16 |
mbox_msg->token);
struct hns_roce_mbox_msg *mbox_msg)
ret = hns_roce_mbox_post(hr_dev, mbox_msg);
__le32 mbox_msg[4];