Searched refs:led_no (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/media/i2c/ |
H A D | lm3560.c | 91 enum lm3560_led_id led_no, bool on) in lm3560_enable_ctrl() argument 95 if (led_no == LM3560_LED0) { in lm3560_enable_ctrl() 115 enum lm3560_led_id led_no, unsigned int brt) in lm3560_torch_brt_ctrl() argument 121 return lm3560_enable_ctrl(flash, led_no, false); in lm3560_torch_brt_ctrl() 123 rval = lm3560_enable_ctrl(flash, led_no, true); in lm3560_torch_brt_ctrl() 126 if (led_no == LM3560_LED0) in lm3560_torch_brt_ctrl() 138 enum lm3560_led_id led_no, unsigned int brt) in lm3560_flash_brt_ctrl() argument 144 return lm3560_enable_ctrl(flash, led_no, false); in lm3560_flash_brt_ctrl() 146 rval = lm3560_enable_ctrl(flash, led_no, true); in lm3560_flash_brt_ctrl() 149 if (led_no == LM3560_LED0) in lm3560_flash_brt_ctrl() [all …]
|
/linux/drivers/leds/flash/ |
H A D | leds-mt6360.c | 82 u32 led_no; member 137 u32 enable_mask = MT6360_ISNK_ENMASK(led->led_no); in mt6360_isnk_brightness_set() 138 u32 val = level ? MT6360_ISNK_ENMASK(led->led_no) : 0; in mt6360_isnk_brightness_set() 143 ret = regmap_update_bits(priv->regmap, MT6360_REG_ISNK(led->led_no), in mt6360_isnk_brightness_set() 162 u32 enable_mask = MT6360_TORCHEN_MASK | MT6360_FLCSEN_MASK(led->led_no); in mt6360_torch_brightness_set() 163 u32 val = level ? MT6360_FLCSEN_MASK(led->led_no) : 0; in mt6360_torch_brightness_set() 181 curr = prev | BIT(led->led_no); in mt6360_torch_brightness_set() 183 curr = prev & ~BIT(led->led_no); in mt6360_torch_brightness_set() 190 MT6360_REG_FLEDITOR(led->led_no), in mt6360_torch_brightness_set() 230 MT6360_REG_FLEDISTRB(led->led_no), in _mt6360_flash_brightness_set() [all …]
|
H A D | leds-mt6370-flash.c | 74 u8 led_no; member 91 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_torch_brightness_set() 92 MT6370_FLCSEN_MASK(led->led_no); in mt6370_torch_brightness_set() 111 curr = priv->fled_torch_used | BIT(led->led_no); in mt6370_torch_brightness_set() 113 curr = priv->fled_torch_used & ~BIT(led->led_no); in mt6370_torch_brightness_set() 120 if (led->led_no == MT6370_LED_JOINT) { in mt6370_torch_brightness_set() 136 ret = regmap_update_bits(priv->regmap, MT6370_REG_FLEDITOR(led->led_no), in mt6370_torch_brightness_set() 172 if (led->led_no == MT6370_LED_JOINT) { in _mt6370_flash_brightness_set() 188 ret = regmap_update_bits(priv->regmap, MT6370_REG_FLEDISTRB(led->led_no), in _mt6370_flash_brightness_set() 201 u32 led_enable_mask = led->led_no == MT6370_LED_JOINT ? MT6370_FLCSEN_MASK_ALL : in mt6370_strobe_set() [all …]
|
/linux/drivers/leds/ |
H A D | leds-bd2606mvv.c | 27 unsigned int led_no; member 48 1 << led->led_no, in bd2606mvv_brightness_set() 52 err = regmap_write(priv->regmap, led->led_no / 2, in bd2606mvv_brightness_set() 60 1 << led->led_no, in bd2606mvv_brightness_set() 61 1 << led->led_no); in bd2606mvv_brightness_set() 109 led->led_no = reg; in bd2606mvv_probe()
|
H A D | leds-pca995x.c | 66 unsigned int led_no; member 86 pwmout_addr = chipdef->pwm_base + led->led_no; in pca995x_brightness_set() 87 ledout_addr = PCA995X_LEDOUT0 + (led->led_no / PCA995X_OUTPUTS_PER_REG); in pca995x_brightness_set() 88 shift = PCA995X_LDRX_BITS * (led->led_no % PCA995X_OUTPUTS_PER_REG); in pca995x_brightness_set() 156 led->led_no = reg; in pca995x_probe()
|
H A D | leds-tlc591xx.c | 44 unsigned int led_no; member 89 unsigned int i = (led->led_no % 4) * 2; in tlc591xx_set_ledout() 91 unsigned int addr = priv->reg_ledout_offset + (led->led_no >> 2); in tlc591xx_set_ledout() 102 u8 pwm = TLC591XX_REG_PWM(led->led_no); in tlc591xx_set_pwm() 203 led->led_no = reg; in tlc591xx_probe()
|
/linux/drivers/input/ |
H A D | input-leds.c | 97 int led_no; in input_leds_connect() local 123 led_no = 0; in input_leds_connect() 128 led = &leds->leds[led_no]; in input_leds_connect() 153 led_no++; in input_leds_connect() 159 while (--led_no >= 0) { in input_leds_connect() 160 struct input_led *led = &leds->leds[led_no]; in input_leds_connect()
|
/linux/drivers/leds/rgb/ |
H A D | leds-mt6370-rgb.c | 239 static enum mt6370_led_field mt6370_get_led_current_field(unsigned int led_no) in mt6370_get_led_current_field() argument 241 switch (led_no) { in mt6370_get_led_current_field() 253 static int mt6370_set_led_brightness(struct mt6370_priv *priv, unsigned int led_no, in mt6370_set_led_brightness() argument 258 sel_field = mt6370_get_led_current_field(led_no); in mt6370_set_led_brightness() 263 static int mt6370_get_led_brightness(struct mt6370_priv *priv, unsigned int led_no, in mt6370_get_led_brightness() argument 268 sel_field = mt6370_get_led_current_field(led_no); in mt6370_get_led_brightness() 273 static int mt6370_set_led_duty(struct mt6370_priv *priv, unsigned int led_no, unsigned int ton, in mt6370_set_led_duty() argument 283 switch (led_no) { in mt6370_set_led_duty() 301 static int mt6370_set_led_freq(struct mt6370_priv *priv, unsigned int led_no, unsigned int ton, in mt6370_set_led_freq() argument 316 switch (led_no) { in mt6370_set_led_freq() [all …]
|