Searched refs:cpc (Results 1 – 4 of 4) sorted by relevance
19 static struct mtk_cpc_dev cpc; variable178 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 …]
21 static struct mtk_cpc_dev cpc; variable161 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()