Lines Matching refs:mpin

932 static int skl_get_queue_index(struct skl_module_pin *mpin,  in skl_get_queue_index()  argument
938 if (mpin[i].id.module_id == id.module_id && in skl_get_queue_index()
939 mpin[i].id.instance_id == id.instance_id) in skl_get_queue_index()
951 static int skl_alloc_queue(struct skl_module_pin *mpin, in skl_alloc_queue() argument
963 if (mpin[i].is_dynamic) { in skl_alloc_queue()
964 if (!mpin[i].in_use && in skl_alloc_queue()
965 mpin[i].pin_state == SKL_PIN_UNBIND) { in skl_alloc_queue()
967 mpin[i].in_use = true; in skl_alloc_queue()
968 mpin[i].id.module_id = id.module_id; in skl_alloc_queue()
969 mpin[i].id.instance_id = id.instance_id; in skl_alloc_queue()
970 mpin[i].id.pvt_id = id.pvt_id; in skl_alloc_queue()
971 mpin[i].tgt_mcfg = tgt_cfg; in skl_alloc_queue()
975 if (mpin[i].id.module_id == id.module_id && in skl_alloc_queue()
976 mpin[i].id.instance_id == id.instance_id && in skl_alloc_queue()
977 mpin[i].pin_state == SKL_PIN_UNBIND) { in skl_alloc_queue()
979 mpin[i].tgt_mcfg = tgt_cfg; in skl_alloc_queue()
988 static void skl_free_queue(struct skl_module_pin *mpin, int q_index) in skl_free_queue() argument
990 if (mpin[q_index].is_dynamic) { in skl_free_queue()
991 mpin[q_index].in_use = false; in skl_free_queue()
992 mpin[q_index].id.module_id = 0; in skl_free_queue()
993 mpin[q_index].id.instance_id = 0; in skl_free_queue()
994 mpin[q_index].id.pvt_id = 0; in skl_free_queue()
996 mpin[q_index].pin_state = SKL_PIN_UNBIND; in skl_free_queue()
997 mpin[q_index].tgt_mcfg = NULL; in skl_free_queue()
1002 static void skl_clear_module_state(struct skl_module_pin *mpin, int max, in skl_clear_module_state() argument
1009 if (mpin[i].pin_state == SKL_PIN_UNBIND) in skl_clear_module_state()