Lines Matching refs:led_on
86 unsigned int led_on; in an30259a_brightness_set() local
91 ret = regmap_read(led->chip->regmap, AN30259A_REG_LED_ON, &led_on); in an30259a_brightness_set()
97 led_on &= ~AN30259A_LED_EN(led->num); in an30259a_brightness_set()
98 led_on &= ~AN30259A_LED_SLOPE(led->num); in an30259a_brightness_set()
102 led_on |= AN30259A_LED_EN(led->num); in an30259a_brightness_set()
104 led_on |= AN30259A_LED_SLOPE(led->num); in an30259a_brightness_set()
114 ret = regmap_write(led->chip->regmap, AN30259A_REG_LED_ON, led_on); in an30259a_brightness_set()
132 unsigned int led_on; in an30259a_blink_set() local
186 ret = regmap_read(led->chip->regmap, AN30259A_REG_LED_ON, &led_on); in an30259a_blink_set()
190 led_on |= AN30259A_LED_SLOPE(num) | AN30259A_LED_EN(led->num); in an30259a_blink_set()
192 ret = regmap_write(led->chip->regmap, AN30259A_REG_LED_ON, led_on); in an30259a_blink_set()
261 int led_on, err; in an30259a_init_default_state() local
268 err = regmap_read(chip->regmap, AN30259A_REG_LED_ON, &led_on); in an30259a_init_default_state()
272 if (!(led_on & AN30259A_LED_EN(led->num))) { in an30259a_init_default_state()