Lines Matching refs:src_mcfg
1032 struct skl_module_cfg *src_mcfg, in skl_unbind_modules() argument
1037 struct skl_module_inst_id src_id = src_mcfg->id; in skl_unbind_modules()
1040 int out_max = src_mcfg->module->max_output_pins; in skl_unbind_modules()
1043 skl_dump_bind_info(skl, src_mcfg, dst_mcfg); in skl_unbind_modules()
1046 src_index = skl_get_queue_index(src_mcfg->m_out_pin, dst_id, out_max); in skl_unbind_modules()
1059 src_pin_state = src_mcfg->m_out_pin[src_index].pin_state; in skl_unbind_modules()
1066 msg.module_id = src_mcfg->id.module_id; in skl_unbind_modules()
1067 msg.instance_id = src_mcfg->id.pvt_id; in skl_unbind_modules()
1075 skl_free_queue(src_mcfg->m_out_pin, src_index); in skl_unbind_modules()
1082 skl_clear_module_state(src_mcfg->m_out_pin, out_max, src_mcfg); in skl_unbind_modules()
1111 struct skl_module_cfg *src_mcfg, in skl_bind_modules() argument
1117 int out_max = src_mcfg->module->max_output_pins; in skl_bind_modules()
1124 skl_dump_bind_info(skl, src_mcfg, dst_mcfg); in skl_bind_modules()
1126 if (src_mcfg->m_state < SKL_MODULE_INIT_DONE || in skl_bind_modules()
1130 src_index = skl_alloc_queue(src_mcfg->m_out_pin, dst_mcfg, out_max); in skl_bind_modules()
1135 dst_index = skl_alloc_queue(dst_mcfg->m_in_pin, src_mcfg, in_max); in skl_bind_modules()
1137 skl_free_queue(src_mcfg->m_out_pin, src_index); in skl_bind_modules()
1145 if (src_mcfg->m_type == SKL_MODULE_TYPE_COPIER && src_index > 0) { in skl_bind_modules()
1147 module = src_mcfg->module; in skl_bind_modules()
1148 fmt = &module->formats[src_mcfg->fmt_idx]; in skl_bind_modules()
1158 CPR_SINK_FMT_PARAM_ID, src_mcfg); in skl_bind_modules()
1169 msg.module_id = src_mcfg->id.module_id; in skl_bind_modules()
1170 msg.instance_id = src_mcfg->id.pvt_id; in skl_bind_modules()
1178 src_mcfg->m_state = SKL_MODULE_BIND_DONE; in skl_bind_modules()
1179 src_mcfg->m_out_pin[src_index].pin_state = SKL_PIN_BIND_DONE; in skl_bind_modules()
1185 skl_free_queue(src_mcfg->m_out_pin, src_index); in skl_bind_modules()