Lines Matching defs:pled
109 * @pled: LED class device instance
116 struct mlxcpld_led_priv *pled;
285 struct mlxcpld_led_priv *pled = cdev_to_priv(led);
288 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset,
289 pled->param.base_color);
293 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset,
301 struct mlxcpld_led_priv *pled = cdev_to_priv(led);
315 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset,
316 pled->param.base_color +
319 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset,
320 pled->param.base_color +
332 cpld->pled = devm_kcalloc(dev,
336 if (!cpld->pled)
340 cpld->pled[i].cdev.name = cpld->profile[i].name;
341 cpld->pled[i].cdev.brightness = cpld->profile[i].brightness;
342 cpld->pled[i].cdev.max_brightness = 1;
343 cpld->pled[i].cdev.brightness_set = mlxcpld_led_brightness_set;
344 cpld->pled[i].cdev.blink_set = mlxcpld_led_blink_set;
345 cpld->pled[i].cdev.flags = LED_CORE_SUSPENDRESUME;
346 err = devm_led_classdev_register(dev, &cpld->pled[i].cdev);
350 cpld->pled[i].param.offset = mlxcpld_led->profile[i].offset;
351 cpld->pled[i].param.mask = mlxcpld_led->profile[i].mask;
352 cpld->pled[i].param.base_color =
356 mlxcpld_led_brightness_set(&cpld->pled[i].cdev,