Lines Matching refs:msg
107 struct mpfs_mss_msg *msg = data; in mpfs_mbox_send_data() local
112 mbox->response = msg->response; in mpfs_mbox_send_data()
113 mbox->resp_offset = msg->resp_offset; in mpfs_mbox_send_data()
118 if (msg->cmd_data_size) { in mpfs_mbox_send_data()
120 u8 extra_bits = msg->cmd_data_size & 3; in mpfs_mbox_send_data()
121 u32 *word_buf = (u32 *)msg->cmd_data; in mpfs_mbox_send_data()
123 for (index = 0; index < (msg->cmd_data_size / 4); index++) in mpfs_mbox_send_data()
125 mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data()
128 u8 byte_off = ALIGN_DOWN(msg->cmd_data_size, 4); in mpfs_mbox_send_data()
129 u8 *byte_buf = msg->cmd_data + byte_off; in mpfs_mbox_send_data()
131 val = readl_relaxed(mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data()
138 writel_relaxed(val, mbox->mbox_base + msg->mbox_offset + index * 0x4); in mpfs_mbox_send_data()
142 opt_sel = ((msg->mbox_offset << 7u) | (msg->cmd_opcode & 0x7fu)); in mpfs_mbox_send_data()