| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8196/ |
| H A D | mt_spm_hwreq.c | 195 struct spm_hwcg_sta *sta) in spm_hwcg_get_setting() argument 199 if (!sta) in spm_hwcg_get_setting() 204 sta->sta = spm_hwcg_get_default(res, type); in spm_hwcg_get_setting() 207 sta->sta = spm_hwcg_mask_get(res, type); in spm_hwcg_get_setting() 211 MT_SPM_HW_CG_STA_INIT(sta); in spm_hwcg_get_setting() 220 struct spm_hwcg_sta *sta) in spm_hwcg_get_setting_by_index() argument 224 return spm_hwcg_get_setting(res, sta_type, type, sta); in spm_hwcg_get_setting_by_index() 468 struct spm_peri_req_sta *sta) in spm_peri_req_get_setting() argument 472 if (!sta) in spm_peri_req_get_setting() 477 sta->sta = spm_peri_req_get_default(res); in spm_peri_req_get_setting() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/mt8192/drivers/mcdi/ |
| H A D | mt_mcdi.c | 99 unsigned int sta = mcdi_mbox_read(APMCU_MCUPM_MBOX_TASK_STA); in mtk_mcupm_is_ready() local 101 return (sta == MCUPM_TASK_WAIT) || (sta == MCUPM_TASK_INIT_FINISH); in mtk_mcupm_is_ready() 106 unsigned int sta = mcdi_mbox_read(APMCU_MCUPM_MBOX_TASK_STA); in mcdi_init_1() local 108 if (sta != MCUPM_TASK_INIT) { in mcdi_init_1()
|
| H A D | mt_cpu_pm_cpc.c | 24 uint32_t sta, retry; in mtk_cpc_last_core_prot() local 34 sta = (mmio_read_32(resp_reg) >> resp_ofs) & CPC_PROT_RESP_MASK; in mtk_cpc_last_core_prot() 36 if (sta == PROT_SUCCESS) { in mtk_cpc_last_core_prot() 38 } else if (sta == PROT_GIVEUP) { in mtk_cpc_last_core_prot()
|
| /rk3399_ARM-atf/plat/mediatek/mt8195/drivers/mcdi/ |
| H A D | mt_mcdi.c | 99 unsigned int sta = mcdi_mbox_read(APMCU_MCUPM_MBOX_TASK_STA); in mtk_mcupm_is_ready() local 101 return (sta == MCUPM_TASK_WAIT) || (sta == MCUPM_TASK_INIT_FINISH); in mtk_mcupm_is_ready() 106 unsigned int sta = mcdi_mbox_read(APMCU_MCUPM_MBOX_TASK_STA); in mcdi_init_1() local 108 if (sta != MCUPM_TASK_INIT) { in mcdi_init_1()
|
| H A D | mt_cpu_pm_cpc.c | 24 uint32_t sta, retry; in mtk_cpc_last_core_prot() local 34 sta = (mmio_read_32(resp_reg) >> resp_ofs) & CPC_PROT_RESP_MASK; in mtk_cpc_last_core_prot() 36 if (sta == PROT_SUCCESS) { in mtk_cpc_last_core_prot() 38 } else if (sta == PROT_GIVEUP) { in mtk_cpc_last_core_prot()
|
| /rk3399_ARM-atf/plat/mediatek/mt8186/drivers/mcdi/ |
| H A D | mt_mcdi.c | 98 unsigned int sta = mcdi_mbox_read(APMCU_MCUPM_MBOX_TASK_STA); in mtk_mcupm_is_ready() local 100 return ((sta == MCUPM_TASK_WAIT) || (sta == MCUPM_TASK_INIT_FINISH)); in mtk_mcupm_is_ready() 105 unsigned int sta = mcdi_mbox_read(APMCU_MCUPM_MBOX_TASK_STA); in mcdi_init_1() local 107 if (sta != MCUPM_TASK_INIT) { in mcdi_init_1()
|
| H A D | mt_cpu_pm_cpc.c | 24 uint32_t sta, retry; in mtk_cpc_last_core_prot() local 34 sta = (mmio_read_32(resp_reg) >> resp_ofs) & CPC_PROT_RESP_MASK; in mtk_cpc_last_core_prot() 36 if (sta == PROT_SUCCESS) { in mtk_cpc_last_core_prot() 38 } else if (sta == PROT_GIVEUP) { in mtk_cpc_last_core_prot()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/cpu_pm/cpcv5_4/ |
| H A D | mt_cpu_pm_mbox.c | 63 int sta = _mcupm_mbox_read(MCUPM_MBOX_TASK_STA); in mtk_wait_mbox_init_done() local 65 if (sta != MCUPM_TASK_INIT) in mtk_wait_mbox_init_done() 66 return sta; in mtk_wait_mbox_init_done() 77 return sta; in mtk_wait_mbox_init_done()
|
| H A D | mt_cpu_pm_cpc.c | 88 unsigned int sta, retry; in mtk_cpc_last_core_prot() local 95 sta = (mmio_read_32(resp_reg) >> resp_ofs) & CPC_PROT_RESP_MASK; in mtk_cpc_last_core_prot() 97 if (sta == PROT_GIVEUP) in mtk_cpc_last_core_prot() 100 if (sta == PROT_SUCCESS) { in mtk_cpc_last_core_prot()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/ |
| H A D | mt_spm_hwreq.c | 218 enum spm_hwcg_setting type, struct spm_hwcg_sta *sta) in spm_hwcg_get_setting() argument 222 if (!sta) in spm_hwcg_get_setting() 227 sta->sta = spm_hwcg_get_default(res, type); in spm_hwcg_get_setting() 230 sta->sta = spm_hwcg_mask_get(res, type); in spm_hwcg_get_setting() 234 MT_SPM_HW_CG_STA_INIT(sta); in spm_hwcg_get_setting() 242 struct spm_hwcg_sta *sta) in spm_hwcg_get_setting_by_index() argument 246 return spm_hwcg_get_setting(res, sta_type, type, sta); in spm_hwcg_get_setting_by_index() 519 struct spm_peri_req_sta *sta) in spm_peri_req_get_setting() argument 523 if (!sta) in spm_peri_req_get_setting() 528 sta->sta = spm_peri_req_get_default(res); in spm_peri_req_get_setting() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/ |
| H A D | mt_spm_common_v1.h | 288 #define MT_SPM_HW_CG_STA_INIT(_x) ({ if (_x) _x->sta = 0; }) 291 uint32_t sta; member 300 uint32_t sta; member 324 struct spm_hwcg_sta *sta); 332 struct spm_hwcg_sta *sta); 353 struct spm_peri_req_sta *sta);
|
| /rk3399_ARM-atf/plat/mediatek/drivers/pmic_wrap/mt8189/ |
| H A D | pmic_wrap_init.h | 26 uint32_t sta; member
|
| /rk3399_ARM-atf/plat/mediatek/drivers/pmic_wrap/ |
| H A D | pmic_wrap_init_v3.c | 109 reg_rdata = mmio_read_32((uintptr_t)(&mtk_pwrap->wacs[swinf_no].sta)); in pwrap_swinf_acc() 118 ret = pwrap_check_idle((uintptr_t)(&mtk_pwrap->wacs[swinf_no].sta), in pwrap_swinf_acc() 145 ret = pwrap_check_vldclr((uintptr_t)(&mtk_pwrap->wacs[swinf_no].sta), TIMEOUT_READ); in pwrap_swinf_acc()
|