Lines Matching refs:header

298 	struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->tx.header);  in skl_ipc_tx_msg()  local
303 header->extension); in skl_ipc_tx_msg()
305 header->primary | SKL_ADSP_REG_HIPCI_BUSY); in skl_ipc_tx_msg()
329 struct skl_ipc_header *header = (struct skl_ipc_header *)(&ipc_header); in skl_ipc_reply_get_msg() local
333 header->primary); in skl_ipc_reply_get_msg()
346 struct skl_ipc_header header) in skl_ipc_process_notification() argument
350 if (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_notification()
351 switch (IPC_GLB_NOTIFY_TYPE(header.primary)) { in skl_ipc_process_notification()
354 dev_err(ipc->dev, "FW Underrun %x\n", header.primary); in skl_ipc_process_notification()
359 header.primary); in skl_ipc_process_notification()
382 header.primary); in skl_ipc_process_notification()
434 struct skl_ipc_header header) in skl_ipc_process_reply() argument
437 u32 reply = header.primary & IPC_GLB_REPLY_STATUS_MASK; in skl_ipc_process_reply()
438 u64 *ipc_header = (u64 *)(&header); in skl_ipc_process_reply()
450 msg->rx.header = *ipc_header; in skl_ipc_process_reply()
453 dev_dbg(ipc->dev, "ipc FW reply %x: success\n", header.primary); in skl_ipc_process_reply()
456 switch (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_reply()
470 switch (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_reply()
494 struct skl_ipc_header header = {0}; in skl_dsp_irq_thread_handler() local
527 header.primary = hipct; in skl_dsp_irq_thread_handler()
528 header.extension = hipcte; in skl_dsp_irq_thread_handler()
530 header.primary); in skl_dsp_irq_thread_handler()
532 header.extension); in skl_dsp_irq_thread_handler()
534 if (IPC_GLB_NOTIFY_RSP_TYPE(header.primary)) { in skl_dsp_irq_thread_handler()
536 skl_ipc_process_reply(ipc, header); in skl_dsp_irq_thread_handler()
539 skl_ipc_process_notification(ipc, header); in skl_dsp_irq_thread_handler()
638 struct skl_ipc_header header = {0}; in skl_ipc_create_pipeline() local
642 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_create_pipeline()
643 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_create_pipeline()
644 header.primary |= IPC_GLB_TYPE(IPC_GLB_CREATE_PPL); in skl_ipc_create_pipeline()
645 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_create_pipeline()
646 header.primary |= IPC_PPL_TYPE(ppl_type); in skl_ipc_create_pipeline()
647 header.primary |= IPC_PPL_MEM_SIZE(ppl_mem_size); in skl_ipc_create_pipeline()
649 header.extension = IPC_PPL_LP_MODE(lp_mode); in skl_ipc_create_pipeline()
650 request.header = *(u64 *)(&header); in skl_ipc_create_pipeline()
652 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_create_pipeline()
665 struct skl_ipc_header header = {0}; in skl_ipc_delete_pipeline() local
669 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_delete_pipeline()
670 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_delete_pipeline()
671 header.primary |= IPC_GLB_TYPE(IPC_GLB_DELETE_PPL); in skl_ipc_delete_pipeline()
672 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_delete_pipeline()
673 request.header = *(u64 *)(&header); in skl_ipc_delete_pipeline()
675 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_delete_pipeline()
689 struct skl_ipc_header header = {0}; in skl_ipc_set_pipeline_state() local
693 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_set_pipeline_state()
694 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_pipeline_state()
695 header.primary |= IPC_GLB_TYPE(IPC_GLB_SET_PPL_STATE); in skl_ipc_set_pipeline_state()
696 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_set_pipeline_state()
697 header.primary |= IPC_PPL_STATE(state); in skl_ipc_set_pipeline_state()
698 request.header = *(u64 *)(&header); in skl_ipc_set_pipeline_state()
700 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_set_pipeline_state()
713 struct skl_ipc_header header = {0}; in skl_ipc_save_pipeline() local
717 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_save_pipeline()
718 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_save_pipeline()
719 header.primary |= IPC_GLB_TYPE(IPC_GLB_SAVE_PPL); in skl_ipc_save_pipeline()
720 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_save_pipeline()
722 header.extension = IPC_DMA_ID(dma_id); in skl_ipc_save_pipeline()
723 request.header = *(u64 *)(&header); in skl_ipc_save_pipeline()
725 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_save_pipeline()
738 struct skl_ipc_header header = {0}; in skl_ipc_restore_pipeline() local
742 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_restore_pipeline()
743 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_restore_pipeline()
744 header.primary |= IPC_GLB_TYPE(IPC_GLB_RESTORE_PPL); in skl_ipc_restore_pipeline()
745 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_restore_pipeline()
746 request.header = *(u64 *)(&header); in skl_ipc_restore_pipeline()
748 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_restore_pipeline()
762 struct skl_ipc_header header = {0}; in skl_ipc_set_dx() local
766 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_set_dx()
767 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_dx()
768 header.primary |= IPC_GLB_TYPE(IPC_MOD_SET_DX); in skl_ipc_set_dx()
769 header.primary |= IPC_MOD_INSTANCE_ID(instance_id); in skl_ipc_set_dx()
770 header.primary |= IPC_MOD_ID(module_id); in skl_ipc_set_dx()
772 request.header = *(u64 *)(&header); in skl_ipc_set_dx()
777 header.primary, header.extension); in skl_ipc_set_dx()
791 struct skl_ipc_header header = {0}; in skl_ipc_init_instance() local
801 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_init_instance()
802 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_init_instance()
803 header.primary |= IPC_GLB_TYPE(IPC_MOD_INIT_INSTANCE); in skl_ipc_init_instance()
804 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_init_instance()
805 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_init_instance()
807 header.extension = IPC_CORE_ID(msg->core_id); in skl_ipc_init_instance()
808 header.extension |= IPC_PPL_INSTANCE_ID(msg->ppl_instance_id); in skl_ipc_init_instance()
809 header.extension |= IPC_PARAM_BLOCK_SIZE(param_block_size); in skl_ipc_init_instance()
810 header.extension |= IPC_DOMAIN(msg->domain); in skl_ipc_init_instance()
812 request.header = *(u64 *)(&header); in skl_ipc_init_instance()
817 header.primary, header.extension); in skl_ipc_init_instance()
832 struct skl_ipc_header header = {0}; in skl_ipc_bind_unbind() local
837 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_bind_unbind()
838 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_bind_unbind()
839 header.primary |= IPC_GLB_TYPE(bind_unbind); in skl_ipc_bind_unbind()
840 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_bind_unbind()
841 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_bind_unbind()
843 header.extension = IPC_DST_MOD_ID(msg->dst_module_id); in skl_ipc_bind_unbind()
844 header.extension |= IPC_DST_MOD_INSTANCE_ID(msg->dst_instance_id); in skl_ipc_bind_unbind()
845 header.extension |= IPC_DST_QUEUE(msg->dst_queue); in skl_ipc_bind_unbind()
846 header.extension |= IPC_SRC_QUEUE(msg->src_queue); in skl_ipc_bind_unbind()
847 request.header = *(u64 *)(&header); in skl_ipc_bind_unbind()
849 dev_dbg(ipc->dev, "In %s hdr=%x ext=%x\n", __func__, header.primary, in skl_ipc_bind_unbind()
850 header.extension); in skl_ipc_bind_unbind()
870 struct skl_ipc_header header = {0}; in skl_ipc_load_modules() local
874 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_load_modules()
875 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_load_modules()
876 header.primary |= IPC_GLB_TYPE(IPC_GLB_LOAD_MULTIPLE_MODS); in skl_ipc_load_modules()
877 header.primary |= IPC_LOAD_MODULE_CNT(module_cnt); in skl_ipc_load_modules()
879 request.header = *(u64 *)(&header); in skl_ipc_load_modules()
894 struct skl_ipc_header header = {0}; in skl_ipc_unload_modules() local
898 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_unload_modules()
899 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_unload_modules()
900 header.primary |= IPC_GLB_TYPE(IPC_GLB_UNLOAD_MULTIPLE_MODS); in skl_ipc_unload_modules()
901 header.primary |= IPC_LOAD_MODULE_CNT(module_cnt); in skl_ipc_unload_modules()
903 request.header = *(u64 *)(&header); in skl_ipc_unload_modules()
918 struct skl_ipc_header header = {0}; in skl_ipc_set_large_config() local
923 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_set_large_config()
924 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_large_config()
925 header.primary |= IPC_GLB_TYPE(IPC_MOD_LARGE_CONFIG_SET); in skl_ipc_set_large_config()
926 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_set_large_config()
927 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_set_large_config()
929 header.extension = IPC_DATA_OFFSET_SZ(msg->param_data_size); in skl_ipc_set_large_config()
930 header.extension |= IPC_LARGE_PARAM_ID(msg->large_param_id); in skl_ipc_set_large_config()
931 header.extension |= IPC_FINAL_BLOCK(0); in skl_ipc_set_large_config()
932 header.extension |= IPC_INITIAL_BLOCK(1); in skl_ipc_set_large_config()
940 header.extension |= IPC_FINAL_BLOCK(1); in skl_ipc_set_large_config()
943 header.primary, header.extension); in skl_ipc_set_large_config()
947 request.header = *(u64 *)(&header); in skl_ipc_set_large_config()
960 header.extension &= IPC_INITIAL_BLOCK_CLEAR; in skl_ipc_set_large_config()
961 header.extension &= IPC_DATA_OFFSET_SZ_CLEAR; in skl_ipc_set_large_config()
963 header.extension |= IPC_INITIAL_BLOCK(0); in skl_ipc_set_large_config()
964 header.extension |= IPC_DATA_OFFSET_SZ(data_offset); in skl_ipc_set_large_config()
975 struct skl_ipc_header header = {0}; in skl_ipc_get_large_config() local
984 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_get_large_config()
985 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_get_large_config()
986 header.primary |= IPC_GLB_TYPE(IPC_MOD_LARGE_CONFIG_GET); in skl_ipc_get_large_config()
987 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_get_large_config()
988 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_get_large_config()
990 header.extension = IPC_DATA_OFFSET_SZ(msg->param_data_size); in skl_ipc_get_large_config()
991 header.extension |= IPC_LARGE_PARAM_ID(msg->large_param_id); in skl_ipc_get_large_config()
992 header.extension |= IPC_FINAL_BLOCK(1); in skl_ipc_get_large_config()
993 header.extension |= IPC_INITIAL_BLOCK(1); in skl_ipc_get_large_config()
995 request.header = *(u64 *)&header; in skl_ipc_get_large_config()
1004 reply.size = (reply.header >> 32) & IPC_DATA_OFFSET_SZ_MASK; in skl_ipc_get_large_config()
1020 struct skl_ipc_header header = {0}; in skl_sst_ipc_load_library() local
1024 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_sst_ipc_load_library()
1025 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_sst_ipc_load_library()
1026 header.primary |= IPC_GLB_TYPE(IPC_GLB_LOAD_LIBRARY); in skl_sst_ipc_load_library()
1027 header.primary |= IPC_MOD_INSTANCE_ID(table_id); in skl_sst_ipc_load_library()
1028 header.primary |= IPC_MOD_ID(dma_id); in skl_sst_ipc_load_library()
1029 request.header = *(u64 *)(&header); in skl_sst_ipc_load_library()
1045 struct skl_ipc_header header = {0}; in skl_ipc_set_d0ix() local
1049 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_set_d0ix()
1050 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_d0ix()
1051 header.primary |= IPC_GLB_TYPE(IPC_MOD_SET_D0IX); in skl_ipc_set_d0ix()
1052 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_set_d0ix()
1053 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_set_d0ix()
1055 header.extension = IPC_D0IX_WAKE(msg->wake); in skl_ipc_set_d0ix()
1056 header.extension |= IPC_D0IX_STREAMING(msg->streaming); in skl_ipc_set_d0ix()
1057 request.header = *(u64 *)(&header); in skl_ipc_set_d0ix()
1060 header.primary, header.extension); in skl_ipc_set_d0ix()