/kernel/linux/linux-5.10/drivers/video/backlight/ |
H A 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_MOD in hx8357_enter_standby() 298 hx8357_exit_standby(struct lcd_device *lcdev) hx8357_exit_standby() argument 319 hx8357_lcd_reset(struct lcd_device *lcdev) hx8357_lcd_reset() argument 334 hx8357_lcd_init(struct lcd_device *lcdev) hx8357_lcd_init() argument 446 hx8369_lcd_init(struct lcd_device *lcdev) hx8369_lcd_init() argument 538 hx8357_set_power(struct lcd_device *lcdev, int power) hx8357_set_power() argument 556 hx8357_get_power(struct lcd_device *lcdev) hx8357_get_power() argument 583 struct lcd_device *lcdev; hx8357_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/video/backlight/ |
H A 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_MOD in hx8357_enter_standby() 298 hx8357_exit_standby(struct lcd_device *lcdev) hx8357_exit_standby() argument 319 hx8357_lcd_reset(struct lcd_device *lcdev) hx8357_lcd_reset() argument 334 hx8357_lcd_init(struct lcd_device *lcdev) hx8357_lcd_init() argument 446 hx8369_lcd_init(struct lcd_device *lcdev) hx8369_lcd_init() argument 538 hx8357_set_power(struct lcd_device *lcdev, int power) hx8357_set_power() argument 556 hx8357_get_power(struct lcd_device *lcdev) hx8357_get_power() argument 583 struct lcd_device *lcdev; hx8357_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/leds/rgb/ |
H A 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 644 mt6370_isnk_blink_set(struct led_classdev *lcdev, unsigned long *delay_on, unsigned long *delay_off) mt6370_isnk_blink_set() argument 672 mt6370_isnk_pattern_set(struct led_classdev *lcdev, struct led_pattern *pattern, u32 len, int repeat) mt6370_isnk_pattern_set() argument 701 mt6370_isnk_pattern_clear(struct led_classdev *lcdev) mt6370_isnk_pattern_clear() argument 763 struct led_classdev *lcdev; mt6370_init_led_properties() local [all...] |
/kernel/linux/linux-6.6/drivers/leds/flash/ |
H A 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 in mt6360_strobe_set() 491 struct led_classdev *lcdev; mt6360_init_v4l2_flash_config() local 616 struct led_classdev *lcdev; mt6360_init_isnk_properties() local 695 struct led_classdev *lcdev = &flash->led_cdev; mt6360_init_flash_properties() local [all...] |
H A 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() 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 in rt4505_init_flash_properties() local 80 rt4505_torch_brightness_get( struct led_classdev *lcdev) rt4505_torch_brightness_get() argument [all...] |
H A 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 in mt6370_init_v4l2_flash_config() 439 struct led_classdev *lcdev = &flash->led_cdev; mt6370_init_flash_properties() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | led-class-flash.h | 83 struct led_classdev *lcdev) in lcdev_to_flcdev() 85 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev() 82 lcdev_to_flcdev( struct led_classdev *lcdev) lcdev_to_flcdev() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | led-class-flash.h | 83 struct led_classdev *lcdev) in lcdev_to_flcdev() 85 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev() 82 lcdev_to_flcdev( struct led_classdev *lcdev) lcdev_to_flcdev() argument
|