Searched refs:pwmc (Results 1 – 3 of 3) sorted by relevance
/linux-2.6.39/drivers/video/backlight/ |
D | atmel-pwm-bl.c | 26 struct pwm_channel pwmc; member 56 pwm_channel_writel(&pwmbl->pwmc, PWM_CUPD, pwm_duty); in atmel_pwm_bl_set_intensity() 57 pwm_channel_disable(&pwmbl->pwmc); in atmel_pwm_bl_set_intensity() 59 pwm_channel_enable(&pwmbl->pwmc); in atmel_pwm_bl_set_intensity() 60 pwm_channel_writel(&pwmbl->pwmc, PWM_CUPD, pwm_duty); in atmel_pwm_bl_set_intensity() 76 intensity = pwm_channel_readl(&pwmbl->pwmc, PWM_CDTY) - in atmel_pwm_bl_get_intensity() 80 pwm_channel_readl(&pwmbl->pwmc, PWM_CDTY); in atmel_pwm_bl_get_intensity() 88 unsigned long pwm_rate = pwmbl->pwmc.mck; in atmel_pwm_bl_init_pwm() 102 pwm_channel_writel(&pwmbl->pwmc, PWM_CMR, prescale); in atmel_pwm_bl_init_pwm() 103 pwm_channel_writel(&pwmbl->pwmc, PWM_CDTY, in atmel_pwm_bl_init_pwm() [all …]
|
/linux-2.6.39/drivers/leds/ |
D | leds-atmel-pwm.c | 11 struct pwm_channel pwmc; member 30 pwm_channel_writel(&led->pwmc, PWM_CUPD, led->mult * (unsigned) b); in pwmled_brightness() 64 status = pwm_channel_alloc(dat->gpio, &led->pwmc); in pwmled_probe() 76 pwm_channel_writel(&led->pwmc, PWM_CMR, tmp); in pwmled_probe() 82 tmp = (led->pwmc.mck / (1 << 5)) / 100; in pwmled_probe() 85 pwm_channel_writel(&led->pwmc, PWM_CDTY, in pwmled_probe() 87 pwm_channel_writel(&led->pwmc, PWM_CPRD, in pwmled_probe() 90 pwm_channel_enable(&led->pwmc); in pwmled_probe() 95 pwm_channel_free(&led->pwmc); in pwmled_probe() 107 pwm_channel_free(&leds[i].pwmc); in pwmled_probe() [all …]
|
/linux-2.6.39/include/linux/ |
D | atmel_pwm.h | 60 pwm_channel_writel(struct pwm_channel *pwmc, unsigned offset, u32 val) in pwm_channel_writel() argument 62 __raw_writel(val, pwmc->regs + offset); in pwm_channel_writel() 65 static inline u32 pwm_channel_readl(struct pwm_channel *pwmc, unsigned offset) in pwm_channel_readl() argument 67 return __raw_readl(pwmc->regs + offset); in pwm_channel_readl()
|