sub_led 124 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led) sub_led 126 drivers/leds/leds-max77693.c return container_of(sub_led, struct max77693_led_device, sub_led 127 drivers/leds/leds-max77693.c sub_leds[sub_led->fled_id]); sub_led 353 drivers/leds/leds-max77693.c static int max77693_get_flash_faults(struct max77693_sub_led *sub_led) sub_led 355 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 361 drivers/leds/leds-max77693.c sub_led->flash_faults = 0; sub_led 368 drivers/leds/leds-max77693.c fault_open_mask = (sub_led->fled_id == FLED1) ? sub_led 371 drivers/leds/leds-max77693.c fault_short_mask = (sub_led->fled_id == FLED1) ? sub_led 381 drivers/leds/leds-max77693.c sub_led->flash_faults |= LED_FAULT_OVER_VOLTAGE; sub_led 383 drivers/leds/leds-max77693.c sub_led->flash_faults |= LED_FAULT_SHORT_CIRCUIT; sub_led 385 drivers/leds/leds-max77693.c sub_led->flash_faults |= LED_FAULT_OVER_CURRENT; sub_led 465 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); sub_led 466 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 467 drivers/leds/leds-max77693.c int fled_id = sub_led->fled_id, ret; sub_led 503 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); sub_led 504 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 508 drivers/leds/leds-max77693.c ret = max77693_set_flash_current(led, sub_led->fled_id, brightness); sub_led 518 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); sub_led 519 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 520 drivers/leds/leds-max77693.c int fled_id = sub_led->fled_id; sub_led 530 drivers/leds/leds-max77693.c if (sub_led->flash_timeout != led->current_flash_timeout) { sub_led 531 drivers/leds/leds-max77693.c ret = max77693_set_timeout(led, sub_led->flash_timeout); sub_led 542 drivers/leds/leds-max77693.c ret = max77693_get_flash_faults(sub_led); sub_led 553 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); sub_led 555 drivers/leds/leds-max77693.c *fault = sub_led->flash_faults; sub_led 564 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); sub_led 565 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 575 drivers/leds/leds-max77693.c *state = !!(*state && (led->strobing_sub_led_id == sub_led->fled_id)); sub_led 586 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); sub_led 587 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 590 drivers/leds/leds-max77693.c sub_led->flash_timeout = timeout; sub_led 792 drivers/leds/leds-max77693.c static void max77693_init_flash_settings(struct max77693_sub_led *sub_led, sub_led 795 drivers/leds/leds-max77693.c struct led_classdev_flash *fled_cdev = &sub_led->fled_cdev; sub_led 796 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 797 drivers/leds/leds-max77693.c int fled_id = sub_led->fled_id; sub_led 824 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led = sub_led 826 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 827 drivers/leds/leds-max77693.c int fled_id = sub_led->fled_id; sub_led 842 drivers/leds/leds-max77693.c static void max77693_init_v4l2_flash_config(struct max77693_sub_led *sub_led, sub_led 846 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 853 drivers/leds/leds-max77693.c "%s %d-%04x", sub_led->fled_cdev.led_cdev.name, sub_led 858 drivers/leds/leds-max77693.c s->max = sub_led->fled_cdev.led_cdev.max_brightness * TORCH_IOUT_STEP; sub_led 875 drivers/leds/leds-max77693.c struct max77693_sub_led *sub_led, sub_led 883 drivers/leds/leds-max77693.c static void max77693_init_fled_cdev(struct max77693_sub_led *sub_led, sub_led 886 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 887 drivers/leds/leds-max77693.c int fled_id = sub_led->fled_id; sub_led 892 drivers/leds/leds-max77693.c fled_cdev = &sub_led->fled_cdev; sub_led 906 drivers/leds/leds-max77693.c max77693_init_flash_settings(sub_led, led_cfg); sub_led 909 drivers/leds/leds-max77693.c sub_led->flash_timeout = fled_cdev->timeout.val; sub_led 912 drivers/leds/leds-max77693.c static int max77693_register_led(struct max77693_sub_led *sub_led, sub_led 916 drivers/leds/leds-max77693.c struct max77693_led_device *led = sub_led_to_led(sub_led); sub_led 917 drivers/leds/leds-max77693.c struct led_classdev_flash *fled_cdev = &sub_led->fled_cdev; sub_led 927 drivers/leds/leds-max77693.c max77693_init_v4l2_flash_config(sub_led, led_cfg, &v4l2_sd_cfg); sub_led 930 drivers/leds/leds-max77693.c sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), sub_led 933 drivers/leds/leds-max77693.c if (IS_ERR(sub_led->v4l2_flash)) { sub_led 934 drivers/leds/leds-max77693.c ret = PTR_ERR(sub_led->v4l2_flash);