Lines Matching refs:count
93 uint32_t i, count = 0; in vote_count() local
96 count += sema->vote[i]; in vote_count()
98 return count; in vote_count()
117 uint32_t count; in mm_pm_get_if_in_use() local
122 count = vote_count(sema); in mm_pm_get_if_in_use()
124 __func__, sema->id, id, sema->vote[id], count, ret); in mm_pm_get_if_in_use()
132 uint32_t count; in mm_pm_put() local
137 count = vote_count(sema); in mm_pm_put()
139 __func__, sema->id, id, sema->vote[id], count, ret); in mm_pm_put()
148 uint32_t count; in mtk_smmu_pm_get() local
155 count = vote_count(hw_sema); in mtk_smmu_pm_get()
158 __func__, id, source_id, hw_sema->vote[source_id], count); in mtk_smmu_pm_get()
160 if (count > 0) { in mtk_smmu_pm_get()
176 count = vote_count(hw_sema); in mtk_smmu_pm_get()
178 __func__, id, source_id, hw_sema->vote[source_id], count, ret); in mtk_smmu_pm_get()
187 uint32_t count; in mtk_smmu_pm_put() local
194 count = vote_count(hw_sema); in mtk_smmu_pm_put()
197 __func__, id, source_id, hw_sema->vote[source_id], count); in mtk_smmu_pm_put()
199 if (count == 0) { in mtk_smmu_pm_put()
213 count = vote_count(hw_sema); in mtk_smmu_pm_put()
214 if (count > 0) in mtk_smmu_pm_put()
224 __func__, id, source_id, hw_sema->vote[source_id], count, ret); in mtk_smmu_pm_put()