Home
last modified time | relevance | path

Searched refs:led_classdev_flash (Results 1 – 13 of 13) sorted by relevance

/linux/include/linux/
H A Dled-class-flash.h14 struct led_classdev_flash;
35 int (*flash_brightness_set)(struct led_classdev_flash *fled_cdev,
38 int (*flash_brightness_get)(struct led_classdev_flash *fled_cdev,
41 int (*strobe_set)(struct led_classdev_flash *fled_cdev, bool state);
43 int (*strobe_get)(struct led_classdev_flash *fled_cdev, bool *state);
45 int (*timeout_set)(struct led_classdev_flash *fled_cdev, u32 timeout);
47 int (*fault_get)(struct led_classdev_flash *fled_cdev, u32 *fault);
49 int (*duration_set)(struct led_classdev_flash *fled_cdev, u32 duration);
67 struct led_classdev_flash { struct
87 static inline struct led_classdev_flash *lcdev_to_flcdev( in lcdev_to_flcdev() argument
[all …]
/linux/drivers/leds/
H A Dled-class-flash.c40 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_brightness_store()
69 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_brightness_show()
82 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max_flash_brightness_show()
92 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_strobe_store()
123 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_strobe_show()
140 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_timeout_store()
169 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_timeout_show()
179 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max_flash_timeout_show()
189 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_fault_show()
253 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in led_flash_resume()
[all …]
/linux/drivers/leds/flash/
H A Dleds-aat1290.c69 struct led_classdev_flash fled_cdev;
84 struct led_classdev_flash *fled_cdev) in fled_cdev_to_led()
89 static struct led_classdev_flash *led_cdev_to_fled_cdev( in led_cdev_to_fled_cdev()
92 return container_of(led_cdev, struct led_classdev_flash, led_cdev); in led_cdev_to_fled_cdev()
128 struct led_classdev_flash *fled_cdev = &led->fled_cdev; in aat1290_set_flash_safety_timer()
142 struct led_classdev_flash *fled_cdev = led_cdev_to_fled_cdev(led_cdev); in aat1290_led_brightness_set()
170 static int aat1290_led_flash_strobe_set(struct led_classdev_flash *fled_cdev, in aat1290_led_flash_strobe_set()
202 static int aat1290_led_flash_timeout_set(struct led_classdev_flash *fled_cdev, in aat1290_led_flash_timeout_set()
357 struct led_classdev_flash *fled_cdev = &led->fled_cdev; in aat1290_init_flash_timeout()
373 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_intensity_to_brightness()
[all …]
H A Dleds-ktd2692.c76 struct led_classdev_flash fled_cdev;
89 struct led_classdev_flash *fled_cdev) in fled_cdev_to_led()
97 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in ktd2692_led_brightness_set()
117 static int ktd2692_led_flash_strobe_set(struct led_classdev_flash *fled_cdev, in ktd2692_led_flash_strobe_set()
148 static int ktd2692_led_flash_timeout_set(struct led_classdev_flash *fled_cdev, in ktd2692_led_flash_timeout_set()
172 static void ktd2692_init_flash_timeout(struct led_classdev_flash *fled_cdev, in ktd2692_init_flash_timeout()
285 struct led_classdev_flash *fled_cdev; in ktd2692_probe()
H A Dleds-lm3601x.c86 struct led_classdev_flash fled_cdev;
129 static struct lm3601x_led *fled_cdev_to_led(struct led_classdev_flash *fled_cdev) in fled_cdev_to_led()
172 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in lm3601x_brightness_set()
205 static int lm3601x_strobe_set(struct led_classdev_flash *fled_cdev, in lm3601x_strobe_set()
242 static int lm3601x_flash_brightness_set(struct led_classdev_flash *fled_cdev, in lm3601x_flash_brightness_set()
268 static int lm3601x_flash_timeout_set(struct led_classdev_flash *fled_cdev, in lm3601x_flash_timeout_set()
282 static int lm3601x_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in lm3601x_strobe_get()
301 static int lm3601x_flash_fault_get(struct led_classdev_flash *fled_cdev, in lm3601x_flash_fault_get()
H A Dleds-sy7802.c89 struct led_classdev_flash flash;
173 static int sy7802_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness) in sy7802_flash_brightness_set()
194 static int sy7802_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in sy7802_strobe_set()
238 static int sy7802_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in sy7802_strobe_get()
250 static int sy7802_timeout_set(struct led_classdev_flash *fl_cdev, u32 timeout) in sy7802_timeout_set()
260 static int sy7802_fault_get(struct led_classdev_flash *fl_cdev, u32 *fault) in sy7802_fault_get()
293 static void sy7802_init_flash_brightness(struct led_classdev_flash *fl_cdev) in sy7802_init_flash_brightness()
305 static void sy7802_init_flash_timeout(struct led_classdev_flash *fl_cdev) in sy7802_init_flash_timeout()
337 struct led_classdev_flash *flash = &led->flash; in sy7802_init_flash_properties()
H A Dleds-mt6370-flash.c71 struct led_classdev_flash flash;
154 static int mt6370_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness) in mt6370_flash_brightness_set()
164 static int _mt6370_flash_brightness_set(struct led_classdev_flash *fl_cdev, u32 brightness) in _mt6370_flash_brightness_set()
195 static int mt6370_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in mt6370_strobe_set()
260 static int mt6370_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in mt6370_strobe_get()
272 static int mt6370_timeout_set(struct led_classdev_flash *fl_cdev, u32 timeout) in mt6370_timeout_set()
282 static int mt6370_fault_get(struct led_classdev_flash *fl_cdev, u32 *fault) in mt6370_fault_get()
346 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6370_flash_external_strobe_set()
438 struct led_classdev_flash *flash = &led->flash; in mt6370_init_flash_properties()
H A Dleds-mt6360.c78 struct led_classdev_flash flash;
208 static int mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, in mt6360_flash_brightness_set()
220 static int _mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, in _mt6360_flash_brightness_set()
234 static int mt6360_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in mt6360_strobe_set()
310 static int mt6360_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in mt6360_strobe_get()
323 static int mt6360_timeout_set(struct led_classdev_flash *fl_cdev, u32 timeout) in mt6360_timeout_set()
340 static int mt6360_fault_get(struct led_classdev_flash *fl_cdev, u32 *fault) in mt6360_fault_get()
429 struct led_classdev_flash *flash = &led->flash; in mt6360_flash_init_default_state()
471 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6360_flash_external_strobe_set()
707 struct led_classdev_flash *flash = &led->flash; in mt6360_init_flash_properties()
H A Dleds-max77693.c60 struct led_classdev_flash fled_cdev;
118 struct led_classdev_flash *fled_cdev) in flcdev_to_sub_led()
464 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max77693_led_brightness_set()
500 struct led_classdev_flash *fled_cdev, in max77693_led_flash_brightness_set()
515 struct led_classdev_flash *fled_cdev, in max77693_led_flash_strobe_set()
550 struct led_classdev_flash *fled_cdev, in max77693_led_flash_fault_get()
561 struct led_classdev_flash *fled_cdev, in max77693_led_flash_strobe_get()
583 struct led_classdev_flash *fled_cdev, in max77693_led_flash_timeout_set()
790 struct led_classdev_flash *fled_cdev = &sub_led->fled_cdev; in max77693_init_flash_settings()
883 struct led_classdev_flash *fled_cdev; in max77693_init_fled_cdev()
[all …]
H A Dleds-as3645a.c132 struct led_classdev_flash fled;
251 static int as3645a_get_fault(struct led_classdev_flash *fled, u32 *fault) in as3645a_get_fault()
329 struct led_classdev_flash *fled = lcdev_to_flcdev(fled_cdev); in as3645a_set_assist_brightness()
345 static int as3645a_set_flash_brightness(struct led_classdev_flash *fled, in as3645a_set_flash_brightness()
356 static int as3645a_set_flash_timeout(struct led_classdev_flash *fled, in as3645a_set_flash_timeout()
366 static int as3645a_set_strobe(struct led_classdev_flash *fled, bool state) in as3645a_set_strobe()
633 struct led_classdev_flash *fled = &flash->fled; in as3645a_v4l2_setup()
/linux/include/media/
H A Dv4l2-flash-led-class.h15 struct led_classdev_flash;
82 struct led_classdev_flash *fled_cdev;
134 struct led_classdev_flash *fled_cdev,
168 struct led_classdev_flash *fled_cdev, in v4l2_flash_init()
/linux/drivers/media/v4l2-core/
H A Dv4l2-flash-led-class.c168 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_g_volatile_ctrl()
216 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_s_ctrl()
324 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in __fill_ctrl_init_data()
508 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in __sync_device_with_v4l2_controls()
567 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_open()
617 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_close()
655 struct led_classdev_flash *fled_cdev, struct led_classdev *iled_cdev, in __v4l2_flash_init()
709 struct led_classdev_flash *fled_cdev, in v4l2_flash_init()
/linux/drivers/staging/greybus/
H A Dlight.c32 struct led_classdev_flash fled;
85 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in get_channel_from_cdev()
517 struct led_classdev_flash *fled; in gb_lights_light_v4l2_register()
590 static int gb_lights_flash_intensity_set(struct led_classdev_flash *fcdev, in gb_lights_flash_intensity_set()
606 static int gb_lights_flash_intensity_get(struct led_classdev_flash *fcdev, in gb_lights_flash_intensity_get()
614 static int gb_lights_flash_strobe_set(struct led_classdev_flash *fcdev, in gb_lights_flash_strobe_set()
645 static int gb_lights_flash_strobe_get(struct led_classdev_flash *fcdev, in gb_lights_flash_strobe_get()
655 static int gb_lights_flash_timeout_set(struct led_classdev_flash *fcdev, in gb_lights_flash_timeout_set()
686 static int gb_lights_flash_fault_get(struct led_classdev_flash *fcdev, in gb_lights_flash_fault_get()
754 struct led_classdev_flash *fled = &channel->fled; in __gb_lights_flash_led_register()