Home
last modified time | relevance | path

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

/linux/drivers/video/backlight/
H A Dhx8357.c212 static int hx8357_spi_write_then_read(struct lcd_device *lcdev, in hx8357_spi_write_then_read() argument
216 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_spi_write_then_read()
254 dev_err(&lcdev->dev, "Couldn't send SPI data\n"); in hx8357_spi_write_then_read()
262 static inline int hx8357_spi_write_array(struct lcd_device *lcdev, in hx8357_spi_write_array() argument
265 return hx8357_spi_write_then_read(lcdev, value, len, NULL, 0); in hx8357_spi_write_array()
268 static inline int hx8357_spi_write_byte(struct lcd_device *lcdev, in hx8357_spi_write_byte() argument
271 return hx8357_spi_write_then_read(lcdev, &value, 1, NULL, 0); in hx8357_spi_write_byte()
274 static int hx8357_enter_standby(struct lcd_device *lcdev) in hx8357_enter_standby() argument
278 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby()
284 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE); in hx8357_enter_standby()
[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->dev, "No change in strobe state [0x%x]\n", prev); in mt6360_strobe_set()
[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->max_brightness - 1) * s->step; in mt6370_init_v4l2_flash_config()
[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.c420 static int mt6370_mc_brightness_set(struct led_classdev *lcdev, enum led_brightness level) in mt6370_mc_brightness_set() argument
422 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_brightness_set()
443 brightness = min(subled->brightness, lcdev->max_brightness); in mt6370_mc_brightness_set()
480 static int mt6370_mc_blink_set(struct led_classdev *lcdev, in mt6370_mc_blink_set() argument
484 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_blink_set()
533 static int mt6370_mc_pattern_set(struct led_classdev *lcdev, struct led_pattern *pattern, u32 len, in mt6370_mc_pattern_set() argument
536 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_pattern_set()
584 static inline int mt6370_mc_pattern_clear(struct led_classdev *lcdev) in mt6370_mc_pattern_clear() argument
586 struct led_classdev_mc *mccdev = lcdev_to_mccdev(lcdev); in mt6370_mc_pattern_clear()
607 static int mt6370_isnk_brightness_set(struct led_classdev *lcdev, in mt6370_isnk_brightness_set() argument
[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.c36 #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)