Home
last modified time | relevance | path

Searched full:als (Results 1 – 25 of 195) sorted by relevance

12345678

/kernel/linux/linux-6.6/drivers/iio/light/
Dlm3533-als.c3 * lm3533-als.c -- LM3533 Ambient Light Sensor driver
65 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_get_adc() local
75 ret = lm3533_read(als->lm3533, reg, &val); in lm3533_als_get_adc()
88 struct lm3533_als *als = iio_priv(indio_dev); in _lm3533_als_get_zone() local
92 ret = lm3533_read(als->lm3533, LM3533_REG_ALS_ZONE_INFO, &val); in _lm3533_als_get_zone()
106 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_get_zone() local
109 if (test_bit(LM3533_ALS_FLAG_INT_ENABLED, &als->flags)) { in lm3533_als_get_zone()
110 *zone = atomic_read(&als->zone); in lm3533_als_get_zone()
132 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_get_target() local
143 ret = lm3533_read(als->lm3533, reg, val); in lm3533_als_get_target()
[all …]
Dacpi-als.c5 * Based on ALS driver:
28 #define ACPI_ALS_CLASS "als"
29 #define ACPI_ALS_DEVICE_NAME "acpi-als"
85 static int acpi_als_read_value(struct acpi_als *als, char *prop, s32 *val) in acpi_als_read_value() argument
90 status = acpi_evaluate_integer(als->device->handle, prop, NULL, in acpi_als_read_value()
94 acpi_evaluation_failure_warn(als->device->handle, prop, status); in acpi_als_read_value()
106 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_notify() local
111 iio_trigger_poll_nested(als->trig); in acpi_als_notify()
116 "Unhandled ACPI ALS event (%08x)!\n", in acpi_als_notify()
126 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_read_raw() local
[all …]
DKconfig21 be called acpi-als.
77 tristate "Avago APDS9960 gesture/RGB/ALS/proximity sensor"
84 APDS9960 gesture/RGB/ALS/proximity sensor.
187 tristate "Sharp GP2AP002 Proximity/ALS sensor"
191 Say Y here if you have a Sharp GP2AP002 proximity/ALS combo-chip
198 tristate "Sharp GP2AP020A00F Proximity/ALS sensor"
205 Say Y here if you have a Sharp GP2AP020A00F proximity/ALS combo-chip
219 will be called iqs621-als.
239 This driver supports the sysfs interface to get the ALS, IR intensity,
260 tristate "HID ALS"
[all …]
Dveml6030.c65 * Scale is 1/gain. Value 0.125 is ALS gain x (1/8), 0.25 is
66 * ALS gain x (1/4), 1.0 = ALS gain x 1 and 2.0 is ALS gain x 2.
108 "can't read als conf register %d\n", ret); in in_illuminance_period_available_show()
222 "can't read als conf register %d\n", ret); in veml6030_get_intgrn_tm()
295 "can't update als integration time %d\n", ret); in veml6030_set_intgrn_tm()
327 "can't read als conf register %d\n", ret); in veml6030_read_persistence()
400 "can't set als gain %d\n", ret); in veml6030_set_als_gain()
428 "can't read als conf register %d\n", ret); in veml6030_get_als_gain()
468 "can't read als threshold value %d\n", ret); in veml6030_read_thresh()
520 dev_err(dev, "can't read als data %d\n", ret); in veml6030_read_raw()
[all …]
/kernel/linux/linux-5.10/drivers/iio/light/
Dlm3533-als.c3 * lm3533-als.c -- LM3533 Ambient Light Sensor driver
65 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_get_adc() local
75 ret = lm3533_read(als->lm3533, reg, &val); in lm3533_als_get_adc()
88 struct lm3533_als *als = iio_priv(indio_dev); in _lm3533_als_get_zone() local
92 ret = lm3533_read(als->lm3533, LM3533_REG_ALS_ZONE_INFO, &val); in _lm3533_als_get_zone()
106 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_get_zone() local
109 if (test_bit(LM3533_ALS_FLAG_INT_ENABLED, &als->flags)) { in lm3533_als_get_zone()
110 *zone = atomic_read(&als->zone); in lm3533_als_get_zone()
132 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_get_target() local
143 ret = lm3533_read(als->lm3533, reg, val); in lm3533_als_get_target()
[all …]
Dacpi-als.c5 * Based on ALS driver:
25 #define ACPI_ALS_CLASS "als"
26 #define ACPI_ALS_DEVICE_NAME "acpi-als"
29 ACPI_MODULE_NAME("acpi-als");
85 static int acpi_als_read_value(struct acpi_als *als, char *prop, s32 *val) in acpi_als_read_value() argument
90 status = acpi_evaluate_integer(als->device->handle, prop, NULL, in acpi_als_read_value()
94 ACPI_EXCEPTION((AE_INFO, status, "Error reading ALS %s", prop)); in acpi_als_read_value()
106 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_notify() local
107 s32 *buffer = als->evt_buffer; in acpi_als_notify()
112 mutex_lock(&als->lock); in acpi_als_notify()
[all …]
DKconfig21 be called acpi-als.
77 tristate "Avago APDS9960 gesture/RGB/ALS/proximity sensor"
84 APDS9960 gesture/RGB/ALS/proximity sensor.
188 tristate "Sharp GP2AP002 Proximity/ALS sensor"
192 Say Y here if you have a Sharp GP2AP002 proximity/ALS combo-chip
199 tristate "Sharp GP2AP020A00F Proximity/ALS sensor"
206 Say Y here if you have a Sharp GP2AP020A00F proximity/ALS combo-chip
220 will be called iqs621-als.
240 This driver supports the sysfs interface to get the ALS, IR intensity,
261 tristate "HID ALS"
[all …]
Dveml6030.c65 * Scale is 1/gain. Value 0.125 is ALS gain x (1/8), 0.25 is
66 * ALS gain x (1/4), 1.0 = ALS gain x 1 and 2.0 is ALS gain x 2.
109 "can't read als conf register %d\n", ret); in in_illuminance_period_available_show()
223 "can't read als conf register %d\n", ret); in veml6030_get_intgrn_tm()
296 "can't update als integration time %d\n", ret); in veml6030_set_intgrn_tm()
328 "can't read als conf register %d\n", ret); in veml6030_read_persistence()
401 "can't set als gain %d\n", ret); in veml6030_set_als_gain()
429 "can't read als conf register %d\n", ret); in veml6030_get_als_gain()
469 "can't read als threshold value %d\n", ret); in veml6030_read_thresh()
521 dev_err(dev, "can't read als data %d\n", ret); in veml6030_read_raw()
[all …]
DMakefile7 obj-$(CONFIG_ACPI_ALS) += acpi-als.o
25 obj-$(CONFIG_HID_SENSOR_ALS) += hid-sensor-als.o
27 obj-$(CONFIG_IQS621_ALS) += iqs621-als.o
32 obj-$(CONFIG_SENSORS_LM3533) += lm3533-als.o
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/
Dleds-lm3532.txt31 Optional properties if ALS mode is used:
32 - ti,als-vmin - Minimum ALS voltage defined in Volts
33 - ti,als-vmax - Maximum ALS voltage defined in Volts
34 Per the data sheet the max ALS voltage is 2V and the min is 0V
41 - ti,als-avrg-time-us - Determines the length of time the device needs to
42 average the two ALS inputs. This is only used if
45 - ti,als-input-mode - Determines how the device uses the attached ALS
56 if the LED strings are controlled by the ALS.
59 0x01 - LED strings are ALS controlled
80 ti,als-vmin = <0>;
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-lm3532.txt31 Optional properties if ALS mode is used:
32 - ti,als-vmin - Minimum ALS voltage defined in Volts
33 - ti,als-vmax - Maximum ALS voltage defined in Volts
34 Per the data sheet the max ALS voltage is 2V and the min is 0V
41 - ti,als-avrg-time-us - Determines the length of time the device needs to
42 average the two ALS inputs. This is only used if
45 - ti,als-input-mode - Determines how the device uses the attached ALS
56 if the LED strings are controlled by the ALS.
59 0x01 - LED strings are ALS controlled
80 ti,als-vmin = <0>;
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-lm3532.c99 * @config: value of ALS configuration register
102 * @als_avrg_time: ALS averaging time
103 * @als_input_mode: ALS input mode for brightness control
104 * @als_vmin: Minimum ALS voltage
105 * @als_vmax: Maximum ALS voltage
106 * @zone_lo: values of ALS lo ZB(Zone Boundary) registers
107 * @zone_hi: values of ALS hi ZB(Zone Boundary) registers
154 * @als_data: Pointer to the als data struct
449 struct lm3532_als_data *als = priv->als_data; in lm3532_als_configure() local
455 als_vmin = als->als_vmin; in lm3532_als_configure()
[all …]
Dleds-lm3530.c54 /* ALS Config Register Options */
65 /* ALS Resistor Select */
91 { "als", LM3530_BL_MODE_ALS },
100 * @mode: mode of operation - manual, ALS, PWM
117 * @config : value of ALS configuration register
118 * @imp_sel : value of ALS resistor select register
119 * @zone : values of ALS ZB(Zone Boundary) registers
156 struct lm3530_als_data *als) in lm3530_als_configure() argument
176 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure()
179 als->config = in lm3530_als_configure()
[all …]
/kernel/linux/linux-6.6/drivers/leds/
Dleds-lm3532.c99 * @config: value of ALS configuration register
102 * @als_avrg_time: ALS averaging time
103 * @als_input_mode: ALS input mode for brightness control
104 * @als_vmin: Minimum ALS voltage
105 * @als_vmax: Maximum ALS voltage
106 * @zone_lo: values of ALS lo ZB(Zone Boundary) registers
107 * @zone_hi: values of ALS hi ZB(Zone Boundary) registers
154 * @als_data: Pointer to the als data struct
449 struct lm3532_als_data *als = priv->als_data; in lm3532_als_configure() local
455 als_vmin = als->als_vmin; in lm3532_als_configure()
[all …]
Dleds-lm3530.c54 /* ALS Config Register Options */
65 /* ALS Resistor Select */
91 { "als", LM3530_BL_MODE_ALS },
100 * @mode: mode of operation - manual, ALS, PWM
117 * @config : value of ALS configuration register
118 * @imp_sel : value of ALS resistor select register
119 * @zone : values of ALS ZB(Zone Boundary) registers
156 struct lm3530_als_data *als) in lm3530_als_configure() argument
176 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure()
179 als->config = in lm3530_als_configure()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dled-lm3530.h24 #define LM3530_ALS_AVRG_TIME_32ms (0) /* ALS Averaging Time */
42 /* ALS Resistor Select */
43 #define LM3530_ALS_IMPD_Z (0x00) /* ALS Impedance */
62 LM3530_BL_MODE_ALS, /* "als" */
66 /* ALS input select */
82 * @mode: mode of operation i.e. Manual, ALS or PWM
83 * @als_input_mode: select source of ALS input - ALS1/2 or average
86 * @als_avrg_time: ALS input averaging time
92 * @als_vmin: als input voltage calibrated for max brightness in mV
93 * @als_vmax: als input voltage calibrated for min brightness in mV
/kernel/linux/linux-6.6/include/linux/
Dled-lm3530.h24 #define LM3530_ALS_AVRG_TIME_32ms (0) /* ALS Averaging Time */
42 /* ALS Resistor Select */
43 #define LM3530_ALS_IMPD_Z (0x00) /* ALS Impedance */
62 LM3530_BL_MODE_ALS, /* "als" */
66 /* ALS input select */
82 * @mode: mode of operation i.e. Manual, ALS or PWM
83 * @als_input_mode: select source of ALS input - ALS1/2 or average
86 * @als_avrg_time: ALS input averaging time
92 * @als_vmin: als input voltage calibrated for max brightness in mV
93 * @als_vmax: als input voltage calibrated for min brightness in mV
/kernel/linux/linux-6.6/include/linux/platform_data/
Dtsl2772.h38 * @als_time: Integration time of the ALS channel ADCs in 2.73 ms
43 * @wait_time: Time between proximity and ALS cycles in 2.73
49 * @als_prox_config: The value of the ALS / Proximity configuration
51 * @als_cal_target: Known external ALS reading for calibration.
52 * @als_persistence: H/W Filters, Number of 'out of limits' ALS readings.
53 * @als_interrupt_en: Enable/Disable ALS interrupts
/kernel/linux/linux-5.10/include/linux/platform_data/
Dtsl2772.h38 * @als_time: Integration time of the ALS channel ADCs in 2.73 ms
43 * @wait_time: Time between proximity and ALS cycles in 2.73
49 * @als_prox_config: The value of the ALS / Proximity configuration
51 * @als_cal_target: Known external ALS reading for calibration.
52 * @als_persistence: H/W Filters, Number of 'out of limits' ALS readings.
53 * @als_interrupt_en: Enable/Disable ALS interrupts
/kernel/linux/linux-5.10/arch/s390/boot/
Dals.c20 static unsigned long als[] = { FACILITIES_ALS }; variable
70 for (i = 0; i < ARRAY_SIZE(als); i++) { in print_missing_facilities()
71 val = ~S390_lowcore.stfle_fac_list[i] & als[i]; in print_missing_facilities()
110 for (i = 0; i < ARRAY_SIZE(als); i++) { in verify_facilities()
111 if ((S390_lowcore.stfle_fac_list[i] & als[i]) != als[i]) in verify_facilities()
/kernel/linux/linux-6.6/arch/s390/boot/
Dals.c20 static unsigned long als[] = { FACILITIES_ALS }; variable
70 for (i = 0; i < ARRAY_SIZE(als); i++) { in print_missing_facilities()
71 val = ~stfle_fac_list[i] & als[i]; in print_missing_facilities()
110 for (i = 0; i < ARRAY_SIZE(als); i++) { in verify_facilities()
111 if ((stfle_fac_list[i] & als[i]) != als[i]) in verify_facilities()
/kernel/linux/linux-5.10/Documentation/misc-devices/
Dbh1770glc.rst21 ALS and proximity parts operates on their own, but they shares common I2C
23 but ALS side results are used to estimate reliability of the proximity sensor.
25 ALS produces 16 bit lux values. The chip contains interrupt logic to produce
30 8 bit. Driver supports only one channel. Driver uses ALS results to estimate
31 reliability of the proximity results. Thus ALS is always running while
Dapds990x.rst19 APDS990x is a combined ambient light and proximity sensor. ALS and proximity
20 functionality are highly connected. ALS measurement path must be running
23 ALS produces raw measurement values for two channels: Clear channel
34 ALS contains 4 different gain steps. Driver automatically
/kernel/linux/linux-6.6/Documentation/misc-devices/
Dbh1770glc.rst21 ALS and proximity parts operates on their own, but they shares common I2C
23 but ALS side results are used to estimate reliability of the proximity sensor.
25 ALS produces 16 bit lux values. The chip contains interrupt logic to produce
30 8 bit. Driver supports only one channel. Driver uses ALS results to estimate
31 reliability of the proximity results. Thus ALS is always running while
Dapds990x.rst19 APDS990x is a combined ambient light and proximity sensor. ALS and proximity
20 functionality are highly connected. ALS measurement path must be running
23 ALS produces raw measurement values for two channels: Clear channel
34 ALS contains 4 different gain steps. Driver automatically

12345678