Lines Matching refs:header
304 struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->header); in skl_ipc_tx_msg() local
309 header->extension); in skl_ipc_tx_msg()
311 header->primary | SKL_ADSP_REG_HIPCI_BUSY); in skl_ipc_tx_msg()
335 struct skl_ipc_header *header = (struct skl_ipc_header *)(&ipc_header); in skl_ipc_reply_get_msg() local
339 header->primary); in skl_ipc_reply_get_msg()
351 struct skl_ipc_header header) in skl_ipc_process_notification() argument
355 if (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_notification()
356 switch (IPC_GLB_NOTIFY_TYPE(header.primary)) { in skl_ipc_process_notification()
359 dev_err(ipc->dev, "FW Underrun %x\n", header.primary); in skl_ipc_process_notification()
364 header.primary); in skl_ipc_process_notification()
387 header.primary); in skl_ipc_process_notification()
410 struct skl_ipc_header header) in skl_ipc_process_reply() argument
413 u32 reply = header.primary & IPC_GLB_REPLY_STATUS_MASK; in skl_ipc_process_reply()
414 u64 *ipc_header = (u64 *)(&header); in skl_ipc_process_reply()
428 dev_dbg(ipc->dev, "ipc FW reply %x: success\n", header.primary); in skl_ipc_process_reply()
431 switch (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_reply()
448 switch (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_reply()
473 struct skl_ipc_header header = {0}; in skl_dsp_irq_thread_handler() local
506 header.primary = hipct; in skl_dsp_irq_thread_handler()
507 header.extension = hipcte; in skl_dsp_irq_thread_handler()
509 header.primary); in skl_dsp_irq_thread_handler()
511 header.extension); in skl_dsp_irq_thread_handler()
513 if (IPC_GLB_NOTIFY_RSP_TYPE(header.primary)) { in skl_dsp_irq_thread_handler()
515 skl_ipc_process_reply(ipc, header); in skl_dsp_irq_thread_handler()
518 skl_ipc_process_notification(ipc, header); in skl_dsp_irq_thread_handler()
617 struct skl_ipc_header header = {0}; in skl_ipc_create_pipeline() local
618 u64 *ipc_header = (u64 *)(&header); in skl_ipc_create_pipeline()
621 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_create_pipeline()
622 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_create_pipeline()
623 header.primary |= IPC_GLB_TYPE(IPC_GLB_CREATE_PPL); in skl_ipc_create_pipeline()
624 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_create_pipeline()
625 header.primary |= IPC_PPL_TYPE(ppl_type); in skl_ipc_create_pipeline()
626 header.primary |= IPC_PPL_MEM_SIZE(ppl_mem_size); in skl_ipc_create_pipeline()
628 header.extension = IPC_PPL_LP_MODE(lp_mode); in skl_ipc_create_pipeline()
630 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_create_pipeline()
643 struct skl_ipc_header header = {0}; in skl_ipc_delete_pipeline() local
644 u64 *ipc_header = (u64 *)(&header); in skl_ipc_delete_pipeline()
647 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_delete_pipeline()
648 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_delete_pipeline()
649 header.primary |= IPC_GLB_TYPE(IPC_GLB_DELETE_PPL); in skl_ipc_delete_pipeline()
650 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_delete_pipeline()
652 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_delete_pipeline()
666 struct skl_ipc_header header = {0}; in skl_ipc_set_pipeline_state() local
667 u64 *ipc_header = (u64 *)(&header); in skl_ipc_set_pipeline_state()
670 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_set_pipeline_state()
671 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_pipeline_state()
672 header.primary |= IPC_GLB_TYPE(IPC_GLB_SET_PPL_STATE); in skl_ipc_set_pipeline_state()
673 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_set_pipeline_state()
674 header.primary |= IPC_PPL_STATE(state); in skl_ipc_set_pipeline_state()
676 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_set_pipeline_state()
689 struct skl_ipc_header header = {0}; in skl_ipc_save_pipeline() local
690 u64 *ipc_header = (u64 *)(&header); in skl_ipc_save_pipeline()
693 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_save_pipeline()
694 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_save_pipeline()
695 header.primary |= IPC_GLB_TYPE(IPC_GLB_SAVE_PPL); in skl_ipc_save_pipeline()
696 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_save_pipeline()
698 header.extension = IPC_DMA_ID(dma_id); in skl_ipc_save_pipeline()
699 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_save_pipeline()
712 struct skl_ipc_header header = {0}; in skl_ipc_restore_pipeline() local
713 u64 *ipc_header = (u64 *)(&header); in skl_ipc_restore_pipeline()
716 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_restore_pipeline()
717 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_restore_pipeline()
718 header.primary |= IPC_GLB_TYPE(IPC_GLB_RESTORE_PPL); in skl_ipc_restore_pipeline()
719 header.primary |= IPC_INSTANCE_ID(instance_id); in skl_ipc_restore_pipeline()
721 dev_dbg(ipc->dev, "In %s header=%d\n", __func__, header.primary); in skl_ipc_restore_pipeline()
735 struct skl_ipc_header header = {0}; in skl_ipc_set_dx() local
736 u64 *ipc_header = (u64 *)(&header); in skl_ipc_set_dx()
739 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_set_dx()
740 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_dx()
741 header.primary |= IPC_GLB_TYPE(IPC_MOD_SET_DX); in skl_ipc_set_dx()
742 header.primary |= IPC_MOD_INSTANCE_ID(instance_id); in skl_ipc_set_dx()
743 header.primary |= IPC_MOD_ID(module_id); in skl_ipc_set_dx()
746 header.primary, header.extension); in skl_ipc_set_dx()
761 struct skl_ipc_header header = {0}; in skl_ipc_init_instance() local
762 u64 *ipc_header = (u64 *)(&header); in skl_ipc_init_instance()
771 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_init_instance()
772 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_init_instance()
773 header.primary |= IPC_GLB_TYPE(IPC_MOD_INIT_INSTANCE); in skl_ipc_init_instance()
774 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_init_instance()
775 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_init_instance()
777 header.extension = IPC_CORE_ID(msg->core_id); in skl_ipc_init_instance()
778 header.extension |= IPC_PPL_INSTANCE_ID(msg->ppl_instance_id); in skl_ipc_init_instance()
779 header.extension |= IPC_PARAM_BLOCK_SIZE(param_block_size); in skl_ipc_init_instance()
780 header.extension |= IPC_DOMAIN(msg->domain); in skl_ipc_init_instance()
783 header.primary, header.extension); in skl_ipc_init_instance()
799 struct skl_ipc_header header = {0}; in skl_ipc_bind_unbind() local
800 u64 *ipc_header = (u64 *)(&header); in skl_ipc_bind_unbind()
804 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_bind_unbind()
805 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_bind_unbind()
806 header.primary |= IPC_GLB_TYPE(bind_unbind); in skl_ipc_bind_unbind()
807 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_bind_unbind()
808 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_bind_unbind()
810 header.extension = IPC_DST_MOD_ID(msg->dst_module_id); in skl_ipc_bind_unbind()
811 header.extension |= IPC_DST_MOD_INSTANCE_ID(msg->dst_instance_id); in skl_ipc_bind_unbind()
812 header.extension |= IPC_DST_QUEUE(msg->dst_queue); in skl_ipc_bind_unbind()
813 header.extension |= IPC_SRC_QUEUE(msg->src_queue); in skl_ipc_bind_unbind()
815 dev_dbg(ipc->dev, "In %s hdr=%x ext=%x\n", __func__, header.primary, in skl_ipc_bind_unbind()
816 header.extension); in skl_ipc_bind_unbind()
836 struct skl_ipc_header header = {0}; in skl_ipc_load_modules() local
837 u64 *ipc_header = (u64 *)(&header); in skl_ipc_load_modules()
840 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_load_modules()
841 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_load_modules()
842 header.primary |= IPC_GLB_TYPE(IPC_GLB_LOAD_MULTIPLE_MODS); in skl_ipc_load_modules()
843 header.primary |= IPC_LOAD_MODULE_CNT(module_cnt); in skl_ipc_load_modules()
857 struct skl_ipc_header header = {0}; in skl_ipc_unload_modules() local
858 u64 *ipc_header = (u64 *)(&header); in skl_ipc_unload_modules()
861 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_ipc_unload_modules()
862 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_unload_modules()
863 header.primary |= IPC_GLB_TYPE(IPC_GLB_UNLOAD_MULTIPLE_MODS); in skl_ipc_unload_modules()
864 header.primary |= IPC_LOAD_MODULE_CNT(module_cnt); in skl_ipc_unload_modules()
878 struct skl_ipc_header header = {0}; in skl_ipc_set_large_config() local
879 u64 *ipc_header = (u64 *)(&header); in skl_ipc_set_large_config()
883 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_set_large_config()
884 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_large_config()
885 header.primary |= IPC_GLB_TYPE(IPC_MOD_LARGE_CONFIG_SET); in skl_ipc_set_large_config()
886 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_set_large_config()
887 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_set_large_config()
889 header.extension = IPC_DATA_OFFSET_SZ(msg->param_data_size); in skl_ipc_set_large_config()
890 header.extension |= IPC_LARGE_PARAM_ID(msg->large_param_id); in skl_ipc_set_large_config()
891 header.extension |= IPC_FINAL_BLOCK(0); in skl_ipc_set_large_config()
892 header.extension |= IPC_INITIAL_BLOCK(1); in skl_ipc_set_large_config()
900 header.extension |= IPC_FINAL_BLOCK(1); in skl_ipc_set_large_config()
903 header.primary, header.extension); in skl_ipc_set_large_config()
918 header.extension &= IPC_INITIAL_BLOCK_CLEAR; in skl_ipc_set_large_config()
919 header.extension &= IPC_DATA_OFFSET_SZ_CLEAR; in skl_ipc_set_large_config()
921 header.extension |= IPC_INITIAL_BLOCK(0); in skl_ipc_set_large_config()
922 header.extension |= IPC_DATA_OFFSET_SZ(data_offset); in skl_ipc_set_large_config()
932 struct skl_ipc_header header = {0}; in skl_ipc_get_large_config() local
933 u64 *ipc_header = (u64 *)(&header); in skl_ipc_get_large_config()
937 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_get_large_config()
938 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_get_large_config()
939 header.primary |= IPC_GLB_TYPE(IPC_MOD_LARGE_CONFIG_GET); in skl_ipc_get_large_config()
940 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_get_large_config()
941 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_get_large_config()
943 header.extension = IPC_DATA_OFFSET_SZ(msg->param_data_size); in skl_ipc_get_large_config()
944 header.extension |= IPC_LARGE_PARAM_ID(msg->large_param_id); in skl_ipc_get_large_config()
945 header.extension |= IPC_FINAL_BLOCK(1); in skl_ipc_get_large_config()
946 header.extension |= IPC_INITIAL_BLOCK(1); in skl_ipc_get_large_config()
955 header.extension |= IPC_FINAL_BLOCK(1); in skl_ipc_get_large_config()
969 header.extension &= IPC_INITIAL_BLOCK_CLEAR; in skl_ipc_get_large_config()
970 header.extension &= IPC_DATA_OFFSET_SZ_CLEAR; in skl_ipc_get_large_config()
972 header.extension |= IPC_INITIAL_BLOCK(1); in skl_ipc_get_large_config()
973 header.extension |= IPC_DATA_OFFSET_SZ(data_offset); in skl_ipc_get_large_config()
983 struct skl_ipc_header header = {0}; in skl_sst_ipc_load_library() local
984 u64 *ipc_header = (u64 *)(&header); in skl_sst_ipc_load_library()
987 header.primary = IPC_MSG_TARGET(IPC_FW_GEN_MSG); in skl_sst_ipc_load_library()
988 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_sst_ipc_load_library()
989 header.primary |= IPC_GLB_TYPE(IPC_GLB_LOAD_LIBRARY); in skl_sst_ipc_load_library()
990 header.primary |= IPC_MOD_INSTANCE_ID(table_id); in skl_sst_ipc_load_library()
991 header.primary |= IPC_MOD_ID(dma_id); in skl_sst_ipc_load_library()
1008 struct skl_ipc_header header = {0}; in skl_ipc_set_d0ix() local
1009 u64 *ipc_header = (u64 *)(&header); in skl_ipc_set_d0ix()
1012 header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); in skl_ipc_set_d0ix()
1013 header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST); in skl_ipc_set_d0ix()
1014 header.primary |= IPC_GLB_TYPE(IPC_MOD_SET_D0IX); in skl_ipc_set_d0ix()
1015 header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); in skl_ipc_set_d0ix()
1016 header.primary |= IPC_MOD_ID(msg->module_id); in skl_ipc_set_d0ix()
1018 header.extension = IPC_D0IX_WAKE(msg->wake); in skl_ipc_set_d0ix()
1019 header.extension |= IPC_D0IX_STREAMING(msg->streaming); in skl_ipc_set_d0ix()
1022 header.primary, header.extension); in skl_ipc_set_d0ix()