Lines Matching refs:tc

43 	struct atmel_tc *tc;  member
68 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_request() local
69 void __iomem *regs = tc->regs; in atmel_tcb_pwm_request()
79 ret = clk_prepare_enable(tc->clk[group]); in atmel_tcb_pwm_request()
125 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_free() local
127 clk_disable_unprepare(tc->clk[pwm->hwpwm / 2]); in atmel_tcb_pwm_free()
136 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_disable() local
137 void __iomem *regs = tc->regs; in atmel_tcb_pwm_disable()
192 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_enable() local
193 void __iomem *regs = tc->regs; in atmel_tcb_pwm_enable()
278 struct atmel_tc *tc = tcbpwmc->tc; in atmel_tcb_pwm_config() local
283 unsigned rate = clk_get_rate(tc->clk[group]); in atmel_tcb_pwm_config()
297 max = min << tc->tcb_config->counter_width; in atmel_tcb_pwm_config()
308 rate = clk_get_rate(tc->slow_clk); in atmel_tcb_pwm_config()
310 max = min << tc->tcb_config->counter_width; in atmel_tcb_pwm_config()
370 struct atmel_tc *tc; in atmel_tcb_pwm_probe() local
382 tc = atmel_tc_alloc(tcblock); in atmel_tcb_pwm_probe()
383 if (tc == NULL) { in atmel_tcb_pwm_probe()
401 tcbpwm->tc = tc; in atmel_tcb_pwm_probe()
403 err = clk_prepare_enable(tc->slow_clk); in atmel_tcb_pwm_probe()
418 clk_disable_unprepare(tcbpwm->tc->slow_clk); in atmel_tcb_pwm_probe()
421 atmel_tc_free(tc); in atmel_tcb_pwm_probe()
431 clk_disable_unprepare(tcbpwm->tc->slow_clk); in atmel_tcb_pwm_remove()
437 atmel_tc_free(tcbpwm->tc); in atmel_tcb_pwm_remove()