Lines Matching refs:twl
32 #include <linux/mfd/twl.h>
110 struct twl_pwmled_chip *twl = to_twl(chip);
114 mutex_lock(&twl->mutex);
128 mutex_unlock(&twl->mutex);
135 struct twl_pwmled_chip *twl = to_twl(chip);
139 mutex_lock(&twl->mutex);
153 mutex_unlock(&twl->mutex);
214 struct twl_pwmled_chip *twl = to_twl(chip);
218 mutex_lock(&twl->mutex);
234 mutex_unlock(&twl->mutex);
241 struct twl_pwmled_chip *twl = to_twl(chip);
245 mutex_lock(&twl->mutex);
261 mutex_unlock(&twl->mutex);
292 struct twl_pwmled_chip *twl = to_twl(chip);
296 mutex_lock(&twl->mutex);
312 mutex_unlock(&twl->mutex);
318 struct twl_pwmled_chip *twl = to_twl(chip);
322 mutex_lock(&twl->mutex);
338 mutex_unlock(&twl->mutex);
350 struct twl_pwmled_chip *twl;
352 twl = devm_kzalloc(&pdev->dev, sizeof(*twl), GFP_KERNEL);
353 if (!twl)
357 twl->chip.ops = &twl4030_pwmled_ops;
358 twl->chip.npwm = 2;
360 twl->chip.ops = &twl6030_pwmled_ops;
361 twl->chip.npwm = 1;
364 twl->chip.dev = &pdev->dev;
366 mutex_init(&twl->mutex);
368 return devm_pwmchip_add(&pdev->dev, &twl->chip);
382 .name = "twl-pwmled",
391 MODULE_ALIAS("platform:twl-pwmled");