Home
last modified time | relevance | path

Searched refs:cpc (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-a-latest/plat/mediatek/mt8195/drivers/mcdi/
Dmt_cpu_pm_cpc.c19 static struct mtk_cpc_dev cpc; variable
178 cpc.auto_off = 1; in mtk_cpc_config()
181 cpc.auto_off = 0; in mtk_cpc_config()
186 cpc.auto_thres_tick = us_to_ticks(data); in mtk_cpc_config()
187 val = cpc.auto_thres_tick; in mtk_cpc_config()
215 res = cpc.auto_off; in mtk_cpc_read_config()
218 res = ticks_to_us(cpc.auto_thres_tick); in mtk_cpc_read_config()
260 cpc.auto_off = 1; in mtk_cpc_init()
261 cpc.auto_thres_tick = us_to_ticks(8000); in mtk_cpc_init()
266 | (cpc.auto_off ? CPC_AUTO_OFF_EN : 0U)); in mtk_cpc_init()
[all …]
/trusted-firmware-a-latest/plat/mediatek/mt8186/drivers/mcdi/
Dmt_cpu_pm_cpc.c19 static struct mtk_cpc_dev cpc; variable
178 cpc.auto_off = 1; in mtk_cpc_config()
181 cpc.auto_off = 0; in mtk_cpc_config()
186 cpc.auto_thres_tick = us_to_ticks(data); in mtk_cpc_config()
187 val = cpc.auto_thres_tick; in mtk_cpc_config()
215 res = cpc.auto_off; in mtk_cpc_read_config()
218 res = ticks_to_us(cpc.auto_thres_tick); in mtk_cpc_read_config()
260 cpc.auto_off = 1; in mtk_cpc_init()
261 cpc.auto_thres_tick = us_to_ticks(8000); in mtk_cpc_init()
266 | (cpc.auto_off ? CPC_AUTO_OFF_EN : 0U)); in mtk_cpc_init()
[all …]
/trusted-firmware-a-latest/plat/mediatek/mt8192/drivers/mcdi/
Dmt_cpu_pm_cpc.c19 static struct mtk_cpc_dev cpc; variable
178 cpc.auto_off = 1; in mtk_cpc_config()
181 cpc.auto_off = 0; in mtk_cpc_config()
186 cpc.auto_thres_tick = us_to_ticks(data); in mtk_cpc_config()
187 val = cpc.auto_thres_tick; in mtk_cpc_config()
215 res = cpc.auto_off; in mtk_cpc_read_config()
218 res = ticks_to_us(cpc.auto_thres_tick); in mtk_cpc_read_config()
260 cpc.auto_off = 1; in mtk_cpc_init()
261 cpc.auto_thres_tick = us_to_ticks(8000); in mtk_cpc_init()
266 | (cpc.auto_off ? CPC_AUTO_OFF_EN : 0U)); in mtk_cpc_init()
[all …]
/trusted-firmware-a-latest/plat/mediatek/drivers/cpu_pm/cpcv3_2/
Dmt_cpu_pm_cpc.c21 static struct mtk_cpc_dev cpc; variable
161 cpc.auto_off = 1; in mtk_cpc_config()
164 cpc.auto_off = 0; in mtk_cpc_config()
168 cpc.auto_thres_tick = US_TO_TICKS(data); in mtk_cpc_config()
169 mmio_write_32(CPC_MCUSYS_CPC_OFF_THRES, cpc.auto_thres_tick); in mtk_cpc_config()
191 res = cpc.auto_off; in mtk_cpc_read_config()
194 res = TICKS_TO_US(cpc.auto_thres_tick); in mtk_cpc_read_config()
244 cpc.auto_off = 1; in mtk_cpc_init()
246 ((cpc.auto_off > 0) ? CPC_AUTO_OFF_EN : 0))); in mtk_cpc_init()