Lines Matching refs:perclk
17 struct max32_perclk *perclk = (struct max32_perclk *)(clkcfg); in api_on() local
19 switch (perclk->bus) { in api_on()
21 MXC_SYS_ClockEnable((mxc_sys_periph_clock_t)perclk->bit); in api_on()
24 MXC_SYS_ClockEnable((mxc_sys_periph_clock_t)(perclk->bit + 32)); in api_on()
27 MXC_SYS_ClockEnable((mxc_sys_periph_clock_t)(perclk->bit + 64)); in api_on()
39 struct max32_perclk *perclk = (struct max32_perclk *)(clkcfg); in api_off() local
41 switch (perclk->bus) { in api_off()
43 MXC_SYS_ClockDisable((mxc_sys_periph_clock_t)perclk->bit); in api_off()
46 MXC_SYS_ClockDisable((mxc_sys_periph_clock_t)(perclk->bit + 32)); in api_off()
49 MXC_SYS_ClockDisable((mxc_sys_periph_clock_t)(perclk->bit + 64)); in api_off()
61 struct max32_perclk *perclk = (struct max32_perclk *)(clkcfg); in api_get_rate() local
63 switch (perclk->clk_src) { in api_get_rate()