/linux/include/linux/ |
H A D | led-class-flash.h | 14 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); 65 struct led_classdev_flash { struct 82 static inline struct led_classdev_flash *lcdev_to_flcdev( in lcdev_to_flcdev() argument 85 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev() [all …]
|
/linux/drivers/leds/ |
H A D | led-class-flash.c | 40 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 D | leds-aat1290.c | 69 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 D | leds-sgm3140.c | 16 struct led_classdev_flash fled_cdev; 33 static struct sgm3140 *flcdev_to_sgm3140(struct led_classdev_flash *flcdev) in flcdev_to_sgm3140() 38 static int sgm3140_strobe_set(struct led_classdev_flash *fled_cdev, bool state) in sgm3140_strobe_set() 74 static int sgm3140_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in sgm3140_strobe_get() 83 static int sgm3140_timeout_set(struct led_classdev_flash *fled_cdev, in sgm3140_timeout_set() 102 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in sgm3140_brightness_set() 149 struct led_classdev_flash *fled_cdev = &priv->fled_cdev; in sgm3140_init_flash_timeout() 189 struct led_classdev_flash *fled_cdev; in sgm3140_probe()
|
H A D | leds-rt8515.c | 48 struct led_classdev_flash fled; 61 static struct rt8515 *to_rt8515(struct led_classdev_flash *fled) in to_rt8515() 93 struct led_classdev_flash *fled = lcdev_to_flcdev(led); in rt8515_led_brightness_set() 114 static int rt8515_led_flash_strobe_set(struct led_classdev_flash *fled, in rt8515_led_flash_strobe_set() 143 static int rt8515_led_flash_strobe_get(struct led_classdev_flash *fled, in rt8515_led_flash_strobe_get() 153 static int rt8515_led_flash_timeout_set(struct led_classdev_flash *fled, in rt8515_led_flash_timeout_set() 176 struct led_classdev_flash *fled = &rt->fled; in rt8515_init_flash_timeout() 282 struct led_classdev_flash *fled; in rt8515_probe()
|
H A D | leds-ktd2692.c | 76 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 D | leds-rt4505.c | 48 struct led_classdev_flash flash; 116 static int rt4505_flash_brightness_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_brightness_set() 133 static int rt4505_flash_strobe_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_strobe_set() 149 static int rt4505_flash_strobe_get(struct led_classdev_flash *fled_cdev, in rt4505_flash_strobe_get() 170 static int rt4505_flash_timeout_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_timeout_set() 187 static int rt4505_fault_get(struct led_classdev_flash *fled_cdev, u32 *fault) in rt4505_fault_get() 243 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in rt4505_flash_external_strobe_set() 264 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_v4l2_config() 293 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_flash_properties()
|
H A D | leds-lm3601x.c | 86 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 D | leds-sy7802.c | 89 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 D | leds-mt6370-flash.c | 71 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 D | leds-qcom-flash.c | 163 struct led_classdev_flash flash; 431 static inline struct qcom_flash_led *flcdev_to_qcom_fled(struct led_classdev_flash *flcdev) in flcdev_to_qcom_fled() 436 static int qcom_flash_brightness_set(struct led_classdev_flash *fled_cdev, u32 brightness) in qcom_flash_brightness_set() 444 static int qcom_flash_timeout_set(struct led_classdev_flash *fled_cdev, u32 timeout) in qcom_flash_timeout_set() 452 static int qcom_flash_strobe_set(struct led_classdev_flash *fled_cdev, bool state) in qcom_flash_strobe_set() 480 static int qcom_flash_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in qcom_flash_strobe_get() 488 static int qcom_flash_fault_get(struct led_classdev_flash *fled_cdev, u32 *fault) in qcom_flash_fault_get() 567 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in qcom_flash_led_brightness_set() 612 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in qcom_flash_external_strobe_set() 629 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in qcom_flash_intensity_to_led_brightness() [all …]
|
H A D | leds-mt6360.c | 78 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 D | leds-max77693.c | 60 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 D | leds-as3645a.c | 132 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 D | v4l2-flash-led-class.h | 15 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 D | v4l2-flash-led-class.c | 168 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 D | light.c | 32 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()
|