Home
last modified time | relevance | path

Searched refs:hw_sema (Results 1 – 3 of 3) sorted by relevance

/rk3399_ARM-atf/plat/mediatek/drivers/smmu/
H A Dsmmu.c147 struct hw_sema_t *hw_sema = mtk_smmu_get_hw_sema_cfg(id); in mtk_smmu_pm_get() local
151 if (!hw_sema || !hw_sema->active) in mtk_smmu_pm_get()
154 spin_lock(&hw_sema->lock); in mtk_smmu_pm_get()
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()
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()
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()
[all …]
/rk3399_ARM-atf/plat/mediatek/drivers/mminfra/mt8196/
H A Dmminfra.c30 .hw_sema = {
98 static int mminfra_hw_sema_ctrl(struct mminfra_hw_sema *hw_sema, bool is_get) in mminfra_hw_sema_ctrl() argument
102 if (!hw_sema) in mminfra_hw_sema_ctrl()
106 ret = spm_semaphore_get(hw_sema->base + hw_sema->offset, hw_sema->set_val); in mminfra_hw_sema_ctrl()
108 ret = spm_semaphore_release(hw_sema->base + hw_sema->offset, hw_sema->set_val); in mminfra_hw_sema_ctrl()
112 mminfra_err("0x%x=0x%x\n", hw_sema->base + hw_sema->offset_all[i], in mminfra_hw_sema_ctrl()
113 mmio_read_32(hw_sema->base + hw_sema->offset_all[i])); in mminfra_hw_sema_ctrl()
186 ret = mminfra_hw_sema_ctrl(&mminfra_pwr_ctrl.hw_sema, true); in mminfra_get_if_in_use()
203 ret = mminfra_hw_sema_ctrl(&mminfra_pwr_ctrl.hw_sema, false); in mminfra_get_if_in_use()
H A Dmminfra.h57 struct mminfra_hw_sema hw_sema; member