Lines Matching refs:twl

110 	struct twl_pwmled_chip *twl = to_twl(chip);  in twl4030_pwmled_enable()  local
114 mutex_lock(&twl->mutex); in twl4030_pwmled_enable()
128 mutex_unlock(&twl->mutex); in twl4030_pwmled_enable()
135 struct twl_pwmled_chip *twl = to_twl(chip); in twl4030_pwmled_disable() local
139 mutex_lock(&twl->mutex); in twl4030_pwmled_disable()
153 mutex_unlock(&twl->mutex); in twl4030_pwmled_disable()
214 struct twl_pwmled_chip *twl = to_twl(chip); in twl6030_pwmled_enable() local
218 mutex_lock(&twl->mutex); in twl6030_pwmled_enable()
234 mutex_unlock(&twl->mutex); in twl6030_pwmled_enable()
241 struct twl_pwmled_chip *twl = to_twl(chip); in twl6030_pwmled_disable() local
245 mutex_lock(&twl->mutex); in twl6030_pwmled_disable()
261 mutex_unlock(&twl->mutex); in twl6030_pwmled_disable()
292 struct twl_pwmled_chip *twl = to_twl(chip); in twl6030_pwmled_request() local
296 mutex_lock(&twl->mutex); in twl6030_pwmled_request()
312 mutex_unlock(&twl->mutex); in twl6030_pwmled_request()
318 struct twl_pwmled_chip *twl = to_twl(chip); in twl6030_pwmled_free() local
322 mutex_lock(&twl->mutex); in twl6030_pwmled_free()
338 mutex_unlock(&twl->mutex); in twl6030_pwmled_free()
350 struct twl_pwmled_chip *twl; in twl_pwmled_probe() local
352 twl = devm_kzalloc(&pdev->dev, sizeof(*twl), GFP_KERNEL); in twl_pwmled_probe()
353 if (!twl) in twl_pwmled_probe()
357 twl->chip.ops = &twl4030_pwmled_ops; in twl_pwmled_probe()
358 twl->chip.npwm = 2; in twl_pwmled_probe()
360 twl->chip.ops = &twl6030_pwmled_ops; in twl_pwmled_probe()
361 twl->chip.npwm = 1; in twl_pwmled_probe()
364 twl->chip.dev = &pdev->dev; in twl_pwmled_probe()
366 mutex_init(&twl->mutex); in twl_pwmled_probe()
368 return devm_pwmchip_add(&pdev->dev, &twl->chip); in twl_pwmled_probe()