Lines Matching refs:source_id
145 static int mtk_smmu_pm_get(enum smmu_id id, enum cmd_source source_id) in mtk_smmu_pm_get() argument
158 __func__, id, source_id, hw_sema->vote[source_id], count); in mtk_smmu_pm_get()
162 vote_count_inc(hw_sema, source_id); in mtk_smmu_pm_get()
169 ret = mm_pm_get_if_in_use(hw_sema, source_id); in mtk_smmu_pm_get()
173 vote_count_inc(hw_sema, source_id); in mtk_smmu_pm_get()
178 __func__, id, source_id, hw_sema->vote[source_id], count, ret); in mtk_smmu_pm_get()
184 static int mtk_smmu_pm_put(enum smmu_id id, enum cmd_source source_id) in mtk_smmu_pm_put() argument
197 __func__, id, source_id, hw_sema->vote[source_id], count); in mtk_smmu_pm_put()
205 if (hw_sema->vote[source_id] == 0) { in mtk_smmu_pm_put()
208 __func__, id, source_id); in mtk_smmu_pm_put()
212 vote_count_dec(hw_sema, source_id); in mtk_smmu_pm_put()
220 ret = mm_pm_put(hw_sema, source_id); in mtk_smmu_pm_put()
224 __func__, id, source_id, hw_sema->vote[source_id], count, ret); in mtk_smmu_pm_put()
242 enum cmd_source source_id = (enum cmd_source)x2; in mtk_smmu_handler() local
244 if (smmu_id >= MTK_SMMU_ID_NUM || source_id >= SMMU_CMD_SOURCE_NUM) in mtk_smmu_handler()
249 ret = mtk_smmu_pm_get(smmu_id, source_id); in mtk_smmu_handler()
252 ret = mtk_smmu_pm_put(smmu_id, source_id); in mtk_smmu_handler()