Lines Matching refs:hdr

247 	if (!reply->hdr.size) {
260 if (reply->hdr.size == msg->reply_size) {
262 } else if (reply->hdr.size < msg->reply_size) {
265 reply->hdr.size, msg->reply_size);
267 msg->reply_size = reply->hdr.size;
272 reply->hdr.size, msg->reply_size);
277 * get the full message if reply->hdr.size <= msg->reply_size
278 * and the reply->hdr.size > sizeof(struct sof_ipc_reply)
292 struct sof_ipc_cmd_hdr *hdr = msg->msg_data;
303 hdr->cmd, hdr->size, msg->reply_size);
311 hdr->cmd, hdr->size, msg->reply_size, ret);
314 ipc3_log_header(sdev->dev, "ipc tx succeeded", hdr->cmd);
336 struct sof_ipc_cmd_hdr *hdr = msg_data;
340 ipc3_log_header(sdev->dev, "ipc tx", hdr->cmd);
347 __func__, hdr->cmd, ret);
429 if ((cdata->rhdr.hdr.cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_COMP_MSG) {
431 __func__, cdata->rhdr.hdr.cmd);
436 if (cdata->rhdr.hdr.size <= ipc->max_payload_size)
437 return sof_ipc3_tx_msg(sdev, cdata, cdata->rhdr.hdr.size,
438 cdata, cdata->rhdr.hdr.size, false);
472 msg_bytes = cdata->rhdr.hdr.size - hdr_bytes;
486 cdata_chunk->rhdr.hdr.size = hdr_bytes + send_bytes;
495 cdata_chunk, cdata_chunk->rhdr.hdr.size,
496 cdata_chunk, cdata_chunk->rhdr.hdr.size);
531 if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) {
539 sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, GFP_KERNEL);
555 if (memcmp(sdev->cc_version, cc, cc->ext_hdr.hdr.size)) {
570 sdev->cc_version = devm_kmemdup(sdev->dev, cc, cc->ext_hdr.hdr.size, GFP_KERNEL);
575 cc->ext_hdr.hdr.size,
604 while (ext_hdr->hdr.cmd == SOF_IPC_FW_READY) {
609 ext_hdr->hdr.size - sizeof(*ext_hdr));
612 ext_hdr->type, ext_hdr->hdr.size);
629 ext_hdr->type, ext_hdr->hdr.size);
641 offset += ext_hdr->hdr.size;
940 struct sof_ipc_cmd_hdr *hdr = msg_buf;
941 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
942 u32 msg_id = SOF_IPC_MESSAGE_ID(hdr->cmd);
962 struct sof_ipc_cmd_hdr *hdr = msg_buf;
963 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
980 struct sof_ipc_cmd_hdr *hdr = msg_buf;
981 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
993 void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr, void *msg_buf)
999 ipc3_log_header(sdev->dev, "ipc rx", hdr->cmd);
1001 if (hdr->size < sizeof(*hdr) || hdr->size > SOF_IPC_MSG_MAX_SIZE) {
1003 hdr->size);
1007 cmd = hdr->cmd & SOF_GLB_TYPE_MASK;
1052 ipc3_log_header(sdev->dev, "ipc rx done", hdr->cmd);
1059 struct sof_ipc_cmd_hdr hdr;
1064 err = snd_sof_ipc_msg_data(sdev, NULL, &hdr, sizeof(hdr));
1070 if (hdr.size < sizeof(hdr) || hdr.size > SOF_IPC_MSG_MAX_SIZE) {
1076 msg_buf = kmalloc(hdr.size, GFP_KERNEL);
1080 err = snd_sof_ipc_msg_data(sdev, NULL, msg_buf, hdr.size);
1087 sof_ipc3_do_rx_work(sdev, &hdr, msg_buf);
1095 .hdr.size = sizeof(core_cfg),
1096 .hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CORE_ENABLE,
1110 .hdr.size = sizeof(pm_ctx),
1111 .hdr.cmd = SOF_IPC_GLB_PM_MSG | cmd,
1135 pm_gate.hdr.size = sizeof(pm_gate);
1136 pm_gate.hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE;