| /kernel/linux/linux-5.10/sound/usb/caiaq/ |
| D | control.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() 25 int pos = kcontrol->private_value; in control_info() 29 uinfo->count = 1; in control_info() 32 switch (cdev->chip.usb_id) { in control_info() 37 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 38 uinfo->value.integer.min = 0; in control_info() 39 uinfo->value.integer.max = 2; in control_info() 54 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 55 uinfo->value.integer.min = 0; in control_info() [all …]
|
| /kernel/linux/linux-4.19/sound/usb/caiaq/ |
| D | control.c | 7 * the Free Software Foundation; either version 2 of the License, or 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 37 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() 38 int pos = kcontrol->private_value; in control_info() 42 uinfo->count = 1; in control_info() 45 switch (cdev->chip.usb_id) { in control_info() 50 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 51 uinfo->value.integer.min = 0; in control_info() 52 uinfo->value.integer.max = 2; in control_info() 67 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() [all …]
|
| /kernel/linux/linux-4.19/drivers/leds/ |
| D | leds-lm3692x.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LM3692x LED chip family driver 3 // Copyright (C) 2017-18 Texas Instruments Incorporated - http://www.ti.com/ 38 #define LM3692X_LED2_EN BIT(2) 47 #define LM3692X_RAMP_RATE_500us BIT(2) 48 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2)) 51 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3)) 52 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3)) 64 #define LM3692X_PWM_HYSTER_1LSB BIT(2) 66 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2)) [all …]
|
| D | leds-max77693.c | 2 * LED Flash class driver for the flash cell of max77693 mfd. 11 * version 2 as published by the Free Software Foundation. 14 #include <linux/led-class-flash.h> 16 #include <linux/mfd/max77693-common.h> 17 #include <linux/mfd/max77693-private.h> 23 #include <media/v4l2-flash-led-class.h> 27 #define MODE_TORCH(a) (1 << (2 + (a))) 49 const char *label[2]; 50 u32 iout_torch_max[2]; 51 u32 iout_flash_max[2]; [all …]
|
| D | leds-lm3533.c | 2 * leds-lm3533.c -- LM3533 LED driver 4 * Copyright (C) 2011-2012 Texas Instruments 10 * Free Software Foundation; either version 2 of the License, or (at your 24 #define LM3533_LVCTRLBANK_MIN 2 29 #define LM3533_ALS_CHANNEL_LV_MAX 2 63 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument 65 return led->id + 2; in lm3533_led_get_ctrlbank_id() 68 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument 70 return base + led->id; in lm3533_led_get_lv_reg() 73 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument [all …]
|
| D | leds-bd2802.c | 2 * leds-bd2802.c - RGB LED Driver 8 * it under the terms of the GNU General Public License version 2 as 11 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf 20 #include <linux/leds-bd2802.h> 63 * State '2' : 'on'. 66 unsigned r:2; 67 unsigned g:2; 68 unsigned b:2; 76 struct led_state led[2]; member 107 /*--------------------------------------------------------------*/ [all …]
|
| D | leds-88pm860x.c | 2 * LED driver for Marvell 88PM860x 8 * it under the terms of the GNU General Public License version 2 as 30 #define LED2_BLINK_EN (1 << 2) 51 int ret = -EINVAL; in led_power_set() 56 case 2: in led_power_set() 73 struct pm860x_led *led = container_of(cdev, struct pm860x_led, cdev); in pm860x_led_set() local 78 chip = led->chip; in pm860x_led_set() 79 mutex_lock(&led->lock); in pm860x_led_set() 80 led->brightness = value >> 3; in pm860x_led_set() 82 if ((led->current_brightness == 0) && led->brightness) { in pm860x_led_set() [all …]
|
| D | leds-mc13783.c | 6 * Based on leds-da903x: 10 * Copyright (C) 2006-2008 Marvell International Ltd. 14 * it under the terms of the GNU General Public License version 2 as 42 struct mc13xxx_led *led; member 58 struct mc13xxx_led *led = in mc13xxx_led_set() local 60 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() 63 switch (led->id) { in mc13xxx_led_set() 67 reg = 2; in mc13xxx_led_set() 68 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set() 79 off = led->id - MC13783_LED_R1; in mc13xxx_led_set() [all …]
|
| D | leds-bcm6358.c | 2 * Driver for BCM6358 memory-mapped LEDs, based on leds-syscon.c 8 * Free Software Foundation; either version 2 of the License, or (at your 25 #define BCM6358_SLED_CLKDIV_4 2 28 #define BCM6358_SLED_POLARITY BIT(2) 35 * struct bcm6358_led - state container for bcm6358 based LEDs 36 * @cdev: LED class device for this LED 39 * @pin: LED pin number 40 * @active_low: LED is active low 82 struct bcm6358_led *led = in bcm6358_led_set() local 86 spin_lock_irqsave(led->lock, flags); in bcm6358_led_set() [all …]
|
| D | leds-wm831x-status.c | 2 * LED driver for WM831x status LEDs 7 * it under the terms of the GNU General Public License version 2 as 42 static void wm831x_status_set(struct wm831x_status *led) in wm831x_status_set() argument 46 mutex_lock(&led->mutex); in wm831x_status_set() 48 led->reg_val &= ~(WM831X_LED_SRC_MASK | WM831X_LED_MODE_MASK | in wm831x_status_set() 51 spin_lock_irqsave(&led->value_lock, flags); in wm831x_status_set() 53 led->reg_val |= led->src << WM831X_LED_SRC_SHIFT; in wm831x_status_set() 54 if (led->blink) { in wm831x_status_set() 55 led->reg_val |= 2 << WM831X_LED_MODE_SHIFT; in wm831x_status_set() 56 led->reg_val |= led->blink_time << WM831X_LED_DUR_SHIFT; in wm831x_status_set() [all …]
|
| D | leds-pca9532.c | 2 * pca9532.c - 16-bit Led dimmer 9 * the Free Software Foundation; version 2 of the License. 22 #include <linux/leds-pca9532.h> 30 #define PCA9532_REG_PSC(m, i) (PCA9532_REG_OFFSET(m) + 0x1 + (i) * 2) 31 #define PCA9532_REG_PWM(m, i) (PCA9532_REG_OFFSET(m) + 0x2 + (i) * 2) 32 #define LED_REG(m, led) (PCA9532_REG_OFFSET(m) + 0x5 + (led >> 2)) argument 33 #define LED_NUM(led) (led & 0x3) argument 51 u8 pwm[2]; 52 u8 psc[2]; 78 .num_leds = 2, [all …]
|
| /kernel/linux/linux-5.10/drivers/leds/ |
| D | leds-lm3692x.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // TI LM3692x LED chip family driver 3 // Copyright (C) 2017-18 Texas Instruments Incorporated - https://www.ti.com/ 38 #define LM3692X_LED2_EN BIT(2) 47 #define LM3692X_RAMP_RATE_500us BIT(2) 48 #define LM3692X_RAMP_RATE_1ms (BIT(1) | BIT(2)) 51 #define LM3692X_RAMP_RATE_8ms (BIT(2) | BIT(3)) 52 #define LM3692X_RAMP_RATE_16ms (BIT(1) | BIT(2) | BIT(3)) 64 #define LM3692X_PWM_HYSTER_1LSB BIT(2) 66 #define LM3692X_PWM_HYSTER_3LSB (BIT(3) | BIT(2)) [all …]
|
| D | leds-max77693.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * LED Flash class driver for the flash cell of max77693 mfd. 11 #include <linux/led-class-flash.h> 13 #include <linux/mfd/max77693-common.h> 14 #include <linux/mfd/max77693-private.h> 20 #include <media/v4l2-flash-led-class.h> 24 #define MODE_TORCH(a) (1 << (2 + (a))) 46 const char *label[2]; 47 u32 iout_torch_max[2]; 48 u32 iout_flash_max[2]; [all …]
|
| D | leds-lm3533.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-lm3533.c -- LM3533 LED driver 5 * Copyright (C) 2011-2012 Texas Instruments 20 #define LM3533_LVCTRLBANK_MIN 2 25 #define LM3533_ALS_CHANNEL_LV_MAX 2 59 static inline int lm3533_led_get_ctrlbank_id(struct lm3533_led *led) in lm3533_led_get_ctrlbank_id() argument 61 return led->id + 2; in lm3533_led_get_ctrlbank_id() 64 static inline u8 lm3533_led_get_lv_reg(struct lm3533_led *led, u8 base) in lm3533_led_get_lv_reg() argument 66 return base + led->id; in lm3533_led_get_lv_reg() 69 static inline u8 lm3533_led_get_pattern(struct lm3533_led *led) in lm3533_led_get_pattern() argument [all …]
|
| D | leds-bd2802.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-bd2802.c - RGB LED Driver 8 * Datasheet: http://www.rohm.com/products/databook/driver/pdf/bd2802gu-e.pdf 16 #include <linux/leds-bd2802.h> 59 * State '2' : 'on'. 62 unsigned r:2; 63 unsigned g:2; 64 unsigned b:2; 73 struct led_state led[2]; member 104 /*--------------------------------------------------------------*/ [all …]
|
| D | leds-mc13783.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Based on leds-da903x: 11 * Copyright (C) 2006-2008 Marvell International Ltd. 39 struct mc13xxx_led *led; member 55 struct mc13xxx_led *led = in mc13xxx_led_set() local 57 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() 60 switch (led->id) { in mc13xxx_led_set() 64 reg = 2; in mc13xxx_led_set() 65 shift = 9 + (led->id - MC13783_LED_MD) * 4; in mc13xxx_led_set() 76 off = led->id - MC13783_LED_R1; in mc13xxx_led_set() [all …]
|
| D | leds-el15203000.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * +-----+---------+ 14 * | LED | COMMAND | 15 * +-----+---------+ 17 * +-----+---------+ 21 * +----------+--------------+-------------------------------------------+ 23 * +----------+--------------+-------------------------------------------+ 25 * +----------+--------------+-------------------------------------------+ 27 * +----------+--------------+-------------------------------------------+ 29 * +----------+--------------+-------------------------------------------+ [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/ |
| D | leds-lp55xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI/National Semiconductor LP55xx and LP8501 LED Drivers 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 15 LED Drivers. 27 - national,lp5521 28 - national,lp5523 [all …]
|
| D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 14 LED and flash LED devices provide the same basic functionality as current 15 regulators, but extended with LED and flash LED specific features like 18 Many LED devices expose more than one current output that can be connected 19 to one or more discrete LED component. Since the arrangement of connections 20 can influence the way of the LED device initialization, the LED components [all …]
|
| D | leds-lp50xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-lp50xx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LED driver for LP50XX RGB LED from Texas Instruments. 10 - Dan Murphy <dmurphy@ti.com> 13 The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into 14 a LED group or control them individually. 16 The difference in these RGB LED drivers is the number of supported RGB 27 - ti,lp5009 [all …]
|
| /kernel/linux/linux-4.19/drivers/hid/ |
| D | hid-gt683r.c | 2 * MSI GT683R led driver 8 * published by the Free Software Foundation; either version 2 of 24 #include "hid-ids.h" 36 GT683R_LED_AUDIO = 2, 44 GT683R_LED_FRONT = 2, 72 struct device *dev = led_cdev->dev->parent; in gt683r_brightness_set() 74 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local 77 if (led_cdev == &led->led_devs[i]) in gt683r_brightness_set() 82 led->brightnesses[i] = brightness; in gt683r_brightness_set() 83 schedule_work(&led->work); in gt683r_brightness_set() [all …]
|
| D | hid-led.c | 2 * Simple USB RGB LED driver 5 * Based on drivers/hid/hid-thingm.c and 10 * published by the Free Software Foundation, version 2. 19 #include "hid-ids.h" 35 /* R+2G+4B -> riso kagaku color index */ 37 [1] = 2, /* red */ 38 [2] = 1, /* green */ 46 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)] 68 #define DELCOM_BLUE_LED 2 120 mutex_lock(&ldev->lock); in hidled_send() [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-gt683r.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MSI GT683R led driver 14 #include "hid-ids.h" 26 GT683R_LED_AUDIO = 2, 34 GT683R_LED_FRONT = 2, 63 struct device *dev = led_cdev->dev->parent; in gt683r_brightness_set() 65 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set() local 68 if (led_cdev == &led->led_devs[i]) in gt683r_brightness_set() 73 led->brightnesses[i] = brightness; in gt683r_brightness_set() 74 schedule_work(&led->work); in gt683r_brightness_set() [all …]
|
| D | hid-led.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Simple USB RGB LED driver 6 * Based on drivers/hid/hid-thingm.c and 16 #include "hid-ids.h" 32 /* R+2G+4B -> riso kagaku color index */ 34 [1] = 2, /* red */ 35 [2] = 1, /* green */ 43 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)] 65 #define DELCOM_BLUE_LED 2 117 mutex_lock(&ldev->lock); in hidled_send() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/leds/ |
| D | leds-lp55xx.txt | 1 Binding for TI/National Semiconductor LP55xx Led Drivers 4 - compatible: one of 11 - reg: I2C slave address 12 - clock-mode: Input clock mode, (0: automode, 1: internal, 2: external) 15 - led-cur: Current setting at each led channel (mA x10, 0 if led is not connected) 16 - max-cur: Maximun current at each led channel. 19 - enable-gpio: GPIO attached to the chip's enable pin 20 - label: Used for naming LEDs 21 - pwr-sel: LP8501 specific property. Power selection for output channels. 24 2: D1~6 with VOUT, D7~9 with VDD [all …]
|