/linux-6.6.21/drivers/video/backlight/ |
D | hx8357.c | 213 static int hx8357_spi_write_then_read(struct lcd_device *lcdev, in hx8357_spi_write_then_read() argument 217 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_spi_write_then_read() 255 dev_err(&lcdev->dev, "Couldn't send SPI data\n"); in hx8357_spi_write_then_read() 263 static inline int hx8357_spi_write_array(struct lcd_device *lcdev, in hx8357_spi_write_array() argument 266 return hx8357_spi_write_then_read(lcdev, value, len, NULL, 0); in hx8357_spi_write_array() 269 static inline int hx8357_spi_write_byte(struct lcd_device *lcdev, in hx8357_spi_write_byte() argument 272 return hx8357_spi_write_then_read(lcdev, &value, 1, NULL, 0); in hx8357_spi_write_byte() 275 static int hx8357_enter_standby(struct lcd_device *lcdev) in hx8357_enter_standby() argument 279 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby() 285 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE); in hx8357_enter_standby() [all …]
|
/linux-6.6.21/drivers/leds/rgb/ |
D | leds-mt6370-rgb.c | 421 static int mt6370_mc_brightness_set(struct led_classdev *lcdev, enum led_brightness level) in mt6370_mc_brightness_set() argument 423 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_brightness_set() 444 brightness = min(subled->brightness, lcdev->max_brightness); in mt6370_mc_brightness_set() 481 static int mt6370_mc_blink_set(struct led_classdev *lcdev, in mt6370_mc_blink_set() argument 485 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_blink_set() 534 static int mt6370_mc_pattern_set(struct led_classdev *lcdev, struct led_pattern *pattern, u32 len, in mt6370_mc_pattern_set() argument 537 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_pattern_set() 585 static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) in mt6370_mc_pattern_clear() argument 587 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_pattern_clear() 608 static int mt6370_isnk_brightness_set(struct led_classdev *lcdev, in mt6370_isnk_brightness_set() argument [all …]
|
/linux-6.6.21/drivers/leds/flash/ |
D | leds-mt6360.c | 97 static int mt6360_mc_brightness_set(struct led_classdev *lcdev, in mt6360_mc_brightness_set() argument 100 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6360_mc_brightness_set() 113 real_bright = min(lcdev->max_brightness, subled->brightness); in mt6360_mc_brightness_set() 132 static int mt6360_isnk_brightness_set(struct led_classdev *lcdev, in mt6360_isnk_brightness_set() argument 135 struct mt6360_led *led = container_of(lcdev, struct mt6360_led, isnk); in mt6360_isnk_brightness_set() 156 static int mt6360_torch_brightness_set(struct led_classdev *lcdev, in mt6360_torch_brightness_set() argument 160 container_of(lcdev, struct mt6360_led, flash.led_cdev); in mt6360_torch_brightness_set() 174 dev_warn(lcdev->dev, "Please disable strobe first [%d]\n", in mt6360_torch_brightness_set() 239 struct led_classdev *lcdev = &fl_cdev->led_cdev; in mt6360_strobe_set() local 253 dev_warn(lcdev->dev, "Please disable torch first [0x%x]\n", in mt6360_strobe_set() [all …]
|
D | leds-rt4505.c | 52 static int rt4505_torch_brightness_set(struct led_classdev *lcdev, in rt4505_torch_brightness_set() argument 56 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_set() 81 struct led_classdev *lcdev) in rt4505_torch_brightness_get() argument 84 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_get() 92 dev_err(lcdev->dev, "Failed to get LED enable\n"); in rt4505_torch_brightness_get() 104 dev_err(lcdev->dev, "Failed to get LED brightness\n"); in rt4505_torch_brightness_get() 265 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_v4l2_config() local 268 strscpy(config->dev_name, lcdev->dev->kobj.name, in rt4505_init_v4l2_config() 274 s->max = s->val = s->min + (lcdev->max_brightness - 1) * s->step; in rt4505_init_v4l2_config() 294 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_flash_properties() local [all …]
|
D | leds-mt6370-flash.c | 87 static int mt6370_torch_brightness_set(struct led_classdev *lcdev, enum led_brightness level) in mt6370_torch_brightness_set() argument 89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set() 105 dev_warn(lcdev->dev, "Please disable strobe first [%d]\n", priv->fled_strobe_used); in mt6370_torch_brightness_set() 199 struct led_classdev *lcdev = &fl_cdev->led_cdev; in mt6370_strobe_set() local 215 dev_warn(lcdev->dev, "Please disable torch first [0x%x]\n", priv->fled_torch_used); in mt6370_strobe_set() 230 dev_err(lcdev->dev, "[%d] control current source %d fail\n", led->led_no, state); in mt6370_strobe_set() 240 dev_err(lcdev->dev, "[%d] Failed to set brightness\n", led->led_no); in mt6370_strobe_set() 376 struct led_classdev *lcdev; in mt6370_init_v4l2_flash_config() local 379 lcdev = &led->flash.led_cdev; in mt6370_init_v4l2_flash_config() 383 s->val = s->max = s->min + (lcdev->max_brightness - 1) * s->step; in mt6370_init_v4l2_flash_config() [all …]
|
/linux-6.6.21/include/linux/ |
D | led-class-flash.h | 83 struct led_classdev *lcdev) in lcdev_to_flcdev() argument 85 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev()
|