Lines Matching refs:twl
16 #include <linux/mfd/twl.h>
94 struct twl_pwmled_chip *twl = to_twl(chip);
98 mutex_lock(&twl->mutex);
112 mutex_unlock(&twl->mutex);
119 struct twl_pwmled_chip *twl = to_twl(chip);
123 mutex_lock(&twl->mutex);
137 mutex_unlock(&twl->mutex);
159 struct twl_pwmled_chip *twl = to_twl(chip);
163 mutex_lock(&twl->mutex);
179 mutex_unlock(&twl->mutex);
186 struct twl_pwmled_chip *twl = to_twl(chip);
190 mutex_lock(&twl->mutex);
206 mutex_unlock(&twl->mutex);
211 struct twl_pwmled_chip *twl = to_twl(chip);
215 mutex_lock(&twl->mutex);
231 mutex_unlock(&twl->mutex);
237 struct twl_pwmled_chip *twl = to_twl(chip);
241 mutex_lock(&twl->mutex);
257 mutex_unlock(&twl->mutex);
278 struct twl_pwmled_chip *twl;
281 twl = devm_kzalloc(&pdev->dev, sizeof(*twl), GFP_KERNEL);
282 if (!twl)
286 twl->chip.ops = &twl4030_pwmled_ops;
287 twl->chip.npwm = 2;
289 twl->chip.ops = &twl6030_pwmled_ops;
290 twl->chip.npwm = 1;
293 twl->chip.dev = &pdev->dev;
294 twl->chip.base = -1;
296 mutex_init(&twl->mutex);
298 ret = pwmchip_add(&twl->chip);
302 platform_set_drvdata(pdev, twl);
309 struct twl_pwmled_chip *twl = platform_get_drvdata(pdev);
311 return pwmchip_remove(&twl->chip);
325 .name = "twl-pwmled",
335 MODULE_ALIAS("platform:twl-pwmled");