Home
last modified time | relevance | path

Searched refs:lcdev (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/video/backlight/
H A Dhx8357.c211 static int hx8357_spi_write_then_read(struct lcd_device *lcdev, in hx8357_spi_write_then_read() argument
215 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_spi_write_then_read()
253 dev_err(&lcdev->dev, "Couldn't send SPI data\n"); in hx8357_spi_write_then_read()
261 static inline int hx8357_spi_write_array(struct lcd_device *lcdev, in hx8357_spi_write_array() argument
264 return hx8357_spi_write_then_read(lcdev, value, len, NULL, 0); in hx8357_spi_write_array()
267 static inline int hx8357_spi_write_byte(struct lcd_device *lcdev, in hx8357_spi_write_byte() argument
270 return hx8357_spi_write_then_read(lcdev, &value, 1, NULL, 0); in hx8357_spi_write_byte()
273 static int hx8357_enter_standby(struct lcd_device *lcdev) in hx8357_enter_standby() argument
277 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby()
283 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MOD in hx8357_enter_standby()
296 hx8357_exit_standby(struct lcd_device * lcdev) hx8357_exit_standby() argument
317 hx8357_lcd_reset(struct lcd_device * lcdev) hx8357_lcd_reset() argument
332 hx8357_lcd_init(struct lcd_device * lcdev) hx8357_lcd_init() argument
444 hx8369_lcd_init(struct lcd_device * lcdev) hx8369_lcd_init() argument
536 hx8357_set_power(struct lcd_device * lcdev,int power) hx8357_set_power() argument
554 hx8357_get_power(struct lcd_device * lcdev) hx8357_get_power() argument
571 struct lcd_device *lcdev; hx8357_probe() local
[all...]
/linux/drivers/leds/flash/
H A Dleds-mt6360.c97 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
254 dev_info(lcdev in mt6360_strobe_set()
501 struct led_classdev *lcdev; mt6360_init_v4l2_flash_config() local
626 struct led_classdev *lcdev; mt6360_init_isnk_properties() local
708 struct led_classdev *lcdev = &flash->led_cdev; mt6360_init_flash_properties() local
[all...]
H A Dleds-mt6370-flash.c87 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...]
H A Dleds-sy7802.c109 static int sy7802_torch_brightness_set(struct led_classdev *lcdev, enum led_brightness brightness) in sy7802_torch_brightness_set() argument
111 struct sy7802_led *led = container_of(lcdev, struct sy7802_led, flash.led_cdev); in sy7802_torch_brightness_set()
338 struct led_classdev *lcdev = &flash->led_cdev; in sy7802_init_flash_properties() local
363 lcdev->max_brightness = SY7802_TORCH_BRIGHTNESS_MAX; in sy7802_init_flash_properties()
364 lcdev->brightness_set_blocking = sy7802_torch_brightness_set; in sy7802_init_flash_properties()
365 lcdev->flags |= LED_DEV_CAP_FLASH; in sy7802_init_flash_properties()
/linux/drivers/leds/rgb/
H A Dleds-mt6370-rgb.c419 static int mt6370_mc_brightness_set(struct led_classdev *lcdev, enum led_brightness level) in mt6370_mc_brightness_set() argument
421 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_brightness_set()
442 brightness = min(subled->brightness, lcdev->max_brightness); in mt6370_mc_brightness_set()
479 static int mt6370_mc_blink_set(struct led_classdev *lcdev, in mt6370_mc_blink_set() argument
483 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_blink_set()
532 static int mt6370_mc_pattern_set(struct led_classdev *lcdev, struct led_pattern *pattern, u32 len, in mt6370_mc_pattern_set() argument
535 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_pattern_set()
583 static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) in mt6370_mc_pattern_clear() argument
585 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_pattern_clear()
606 static int mt6370_isnk_brightness_set(struct led_classdev *lcdev, in mt6370_isnk_brightness_set() argument
642 mt6370_isnk_blink_set(struct led_classdev * lcdev,unsigned long * delay_on,unsigned long * delay_off) mt6370_isnk_blink_set() argument
670 mt6370_isnk_pattern_set(struct led_classdev * lcdev,struct led_pattern * pattern,u32 len,int repeat) mt6370_isnk_pattern_set() argument
699 mt6370_isnk_pattern_clear(struct led_classdev * lcdev) mt6370_isnk_pattern_clear() argument
761 struct led_classdev *lcdev; mt6370_init_led_properties() local
[all...]
/linux/include/linux/
H A Dled-class-flash.h88 struct led_classdev *lcdev) in lcdev_to_flcdev() argument
90 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev()
/linux/drivers/net/ethernet/realtek/
H A Dr8169_leds.c37 #define lcdev_to_r8169_ldev(lcdev) container_of(lcdev, struct r8169_led_classdev, led) argument
/linux/drivers/net/ethernet/intel/igc/
H A Digc_leds.c46 #define lcdev_to_igc_ldev(lcdev) \ argument
47 container_of(lcdev, struct igc_led_classdev, led)