Searched refs:ALS (Results 1 - 42 of 42) sorted by relevance

/linux-4.1.27/include/linux/
H A Dled-lm3530.h25 #define LM3530_ALS_AVRG_TIME_32ms (0) /* ALS Averaging Time */
43 /* ALS Resistor Select */
44 #define LM3530_ALS_IMPD_Z (0x00) /* ALS Impedance */
67 /* ALS input select */
83 * @mode: mode of operation i.e. Manual, ALS or PWM
84 * @als_input_mode: select source of ALS input - ALS1/2 or average
87 * @als_avrg_time: ALS input averaging time
H A Dhid-sensor-ids.h33 /* ALS (200041) */
/linux-4.1.27/drivers/staging/iio/light/
H A Dtsl2x7x.h41 * @als_time: ALS Integration time - multiple of 50mS
42 * @als_gain: Index into the ALS gain table.
45 * @wait_time: Time between PRX and ALS cycles
51 * @als_cal_target: Known external ALS reading for
56 * ADC readings PRX/ALS.
H A Dtsl2x7x_core.c269 ALS, enumerator in enum:__anon9832
277 ALS,
282 ALS,
394 /* extract ALS/lux data */ tsl2x7x_get_lux()
791 * Obtain and lock both ALS and PROX resources,
1631 [ALS] = {
1649 [ALS] = {
1664 [ALS] = {
1665 .attrs = &tsl2X7X_device_attr_group_tbl[ALS],
1666 .event_attrs = &tsl2X7X_event_attr_group_tbl[ALS],
1736 [ALS] = {
1759 .info = &tsl2X7X_device_info[ALS],
1895 /* ALS and PROX functions can be invoked via user space poll tsl2x7x_probe()
H A Disl29028.c153 /* Enable the ALS/IR */ isl29028_set_als_ir_mode()
159 /* Need to wait for conversion time if ALS/IR mode enabled */ isl29028_set_als_ir_mode()
225 "Error in enabling ALS mode err %d\n", ret); isl29028_als_get()
H A Dtsl2583.c152 /* Known external ALS reading used for calibration */ taos_defaults()
256 /* extract ALS/lux data */ taos_get_lux()
H A Disl29018.c535 * of 0.5V/ms or greater, or (b) via I2C disable all ALS/PROX isl29018_chip_init()
/linux-4.1.27/drivers/misc/
H A Disl29020.c2 * isl29020.c - Intersil ALS Driver
179 dev_info(&client->dev, "%s isl29020: ALS chip found\n", client->name); isl29020_probe()
237 MODULE_DESCRIPTION("Intersil isl29020 ALS Driver");
H A Dbh1770glc.c38 #define BH1770_ALS_CONTROL 0x80 /* ALS operation mode control */
44 #define BH1770_ALS_MEAS_RATE 0x86 /* ALS meas. rate at stand alone mode */
47 #define BH1770_ALS_DATA_0 0x8c /* ALS DATA low byte */
48 #define BH1770_ALS_DATA_1 0x8d /* ALS DATA high byte */
57 #define BH1770_ALS_TH_UP_0 0x96 /* ALS upper threshold low byte */
58 #define BH1770_ALS_TH_UP_1 0x97 /* ALS upper threshold high byte */
59 #define BH1770_ALS_TH_LOW_0 0x98 /* ALS lower threshold low byte */
60 #define BH1770_ALS_TH_LOW_1 0x99 /* ALS lower threshold high byte */
414 * ALS is started always since proximity needs als results bh1770_chip_on()
416 * Let's assume dark until the first ALS measurement is ready. bh1770_chip_on()
481 * when ALS levels goes above limit, proximity result may be bh1770_prox_read_result()
677 /* Inform that we are waiting for a result from ALS */ bh1770_power_state_store()
1353 /* Inform that we are waiting for a result from ALS */ bh1770_resume()
1409 MODULE_DESCRIPTION("BH1770GLC / SFH7770 combined ALS and proximity sensor");
H A Dapds9802als.c2 * apds9802als.c - apds9802 ALS Driver
244 dev_info(&client->dev, "ALS chip found\n"); apds9802als_probe()
321 MODULE_DESCRIPTION("Avago apds9802als ALS Driver");
H A Dapds990x.c39 #define APDS990X_ATIME 0x01 /* ALS ADC time */
42 #define APDS990X_AILTL 0x04 /* ALS interrupt low threshold low byte */
43 #define APDS990X_AILTH 0x05 /* ALS interrupt low threshold hi byte */
44 #define APDS990X_AIHTL 0x06 /* ALS interrupt hi threshold low byte */
45 #define APDS990X_AIHTH 0x07 /* ALS interrupt hi threshold hi byte */
190 static const u8 again[] = {1, 8, 16, 120}; /* ALS gain steps */
253 /* ALS is mandatory, proximity optional */ apds990x_mode_on()
377 /* This will force ALS interrupt after the next measurement. */ apds990x_force_a_refresh()
399 next_again -= 2; /* ALS saturated. Decrease gain by 2 steps */ apds990x_calc_again()
526 * If ALS channel is saturated at min gain, apds990x_irq()
1288 MODULE_DESCRIPTION("APDS990X combined ALS and proximity sensor");
/linux-4.1.27/drivers/leds/
H A Dleds-lm3530.c55 /* ALS Config Register Options */
66 /* ALS Resistor Select */
101 * @mode: mode of operation - manual, ALS, PWM
118 * @config : value of ALS configuration register
119 * @imp_sel : value of ALS resistor select register
120 * @zone : values of ALS ZB(Zone Boundary) registers
/linux-4.1.27/drivers/iio/light/
H A Dlm3533-als.c258 /* Clear interrupt by reading the ALS zone register. */ lm3533_als_isr()
591 * ALS output current values (ALS mapper targets)
625 * ALS Zone thresholds (boundaries)
645 * ALS Zone threshold hysteresis
663 * ALS Zone threshold-event enable
670 * ALS Current Zone
767 /* ALS input is always high impedance in PWM-mode. */ lm3533_als_setup()
808 dev_err(&als->pdev->dev, "failed to enable ALS\n"); lm3533_als_enable()
820 dev_err(&als->pdev->dev, "failed to disable ALS\n"); lm3533_als_disable()
886 dev_err(&pdev->dev, "failed to register ALS\n"); lm3533_als_probe()
H A Dgp2ap020a00f.c62 #define GP2AP020A00F_ALS_REG 0x01 /* ALS related settings */
65 #define GP2AP020A00F_TL_L_REG 0x04 /* ALS: Threshold low LSB */
66 #define GP2AP020A00F_TL_H_REG 0x05 /* ALS: Threshold low MSB */
67 #define GP2AP020A00F_TH_L_REG 0x06 /* ALS: Threshold high LSB */
68 #define GP2AP020A00F_TH_H_REG 0x07 /* ALS: Threshold high MSB */
73 #define GP2AP020A00F_D0_L_REG 0x0c /* ALS result: Clear/Illuminance LSB */
74 #define GP2AP020A00F_D0_H_REG 0x0d /* ALS result: Clear/Illuminance MSB */
75 #define GP2AP020A00F_D1_L_REG 0x0e /* ALS result: IR LSB */
76 #define GP2AP020A00F_D1_H_REG 0x0f /* ALS result: IR LSB */
97 #define GP2AP020A00F_FLAG_A 0x02 /* ALS: interrupt result */
108 #define GP2AP020A00F_RES_A_MASK 0x38 /* ALS: Resolution */
117 #define GP2AP020A00F_RANGE_A_MASK 0x07 /* ALS: Max measurable range */
455 * For the high lux mode ALS threshold has to be scaled down gp2ap020a00f_write_event_threshold()
1407 * LIGHT_CLEAR or LIGHT_IR scan mode results in enabling ALS gp2ap020a00f_buffer_postenable()
1653 MODULE_DESCRIPTION("Sharp GP2AP020A00F Proximity/ALS sensor driver");
H A Dvcnl4000.c40 #define VCNL4000_AL_RDY 0x40 /* ALS data ready? */
42 #define VCNL4000_AL_OD 0x10 /* start on-demand ALS measurement */
H A Djsa1212.c100 /* JSA1212 ALS RNG REG bits */
128 bool als_en; /* ALS enable status */
133 /* ALS range idx to val mapping */
137 /* Enables or disables ALS function based on status */ jsa1212_als_enable()
H A Dltr501.c28 #define LTR501_ALS_CONTR 0x80 /* ALS operation mode, SW reset */
78 /* always read both ALS channels in given order */ ltr501_read_als()
H A Dal3320a.c124 * ALS ADC value is stored in two adjacent registers: al3320a_read_raw()
H A Dcm32181.c252 * cm32181_get_it_available() - Get available ALS IT value
H A Dcm3232.c281 * cm3232_get_it_available() - Get available ALS IT value
H A Dhid-sensor-als.c384 MODULE_DESCRIPTION("HID Sensor ALS");
/linux-4.1.27/drivers/input/gameport/
H A Dns558.c170 { .id = "@P@0001", .driver_data = 0 }, /* ALS 100 */
171 { .id = "@P@0020", .driver_data = 0 }, /* ALS 200 */
172 { .id = "@P@1001", .driver_data = 0 }, /* ALS 100+ */
173 { .id = "@P@2001", .driver_data = 0 }, /* ALS 120 */
/linux-4.1.27/sound/oss/
H A Dsb.h49 #define SUBMDL_ALS007 42 /* ALS-007 differs from SB16 only in mixer */
51 #define SUBMDL_ALS100 43 /* ALS-100 allows sampling rates of up */
H A Dsb_mixer.h99 * Recording sources for ALS-007
H A Dsb_card.c216 if(!strncmp("ALS",scc->card_id,3)) { sb_dev2cfg()
H A Dsb_mixer.c648 .name = "Avance ALS-007",
H A Dsb_common.c778 hw_config->name = "Sound Blaster 16 (ALS-100)"; sb_dsp_init()
787 hw_config->name = "Sound Blaster 16 (ALS-007)"; sb_dsp_init()
/linux-4.1.27/include/linux/i2c/
H A Dapds990x.h43 * Structure for tuning ALS calculation to match with environment.
/linux-4.1.27/drivers/platform/x86/
H A Ddell-laptop.c864 * bit 2 Auto: ALS-based On; ALS-based Off (Travis ATG)
865 * bit 3 Auto: ALS- and input-activity-based On; input-activity based Off
901 * bit 2 Auto: ALS-based On; ALS-based Off (Travis ATG)
902 * bit 3 Auto: ALS- and input-activity-based On; input-activity based Off
925 * cbRES3, byte0 Current setting of ALS value that turns the light on or off.
926 * cbRES3, byte1 Current ALS reading
934 * bit 2 Auto: ALS-based On; ALS-based Off (Travis ATG)
935 * bit 3 Auto: ALS- and input-activity-based On; input-activity based Off
957 * cbArg3, byte0 Desired setting of ALS value that turns the light on or off.
H A Dasus-laptop.c123 MODULE_PARM_DESC(als_status, "Set the ALS status on boot "
H A Dsony-laptop.c3062 * from position 0 to 8 in the array, other values are used by ALS sony_nc_backlight_ng_read_limits()
/linux-4.1.27/sound/isa/
H A Dals100.c9 Generalised for soundcards based on DT-0196 and ALS-007 chips
42 "{Avance Logic ALS-007}}"
87 /* DT0196 / ALS-007 */
/linux-4.1.27/arch/blackfin/mach-bf518/include/mach/
H A DdefBF518.h59 #define ALS 0x1 /* Alarm status */ macro
/linux-4.1.27/sound/isa/sb/
H A Dsb_common.c163 str = "16 (ALS-100)"; snd_sbdsp_probe()
166 str = "16 (ALS-4000)"; snd_sbdsp_probe()
H A Dsb_mixer.c180 * DT-019x / ALS-007 capture/input switch
/linux-4.1.27/include/sound/
H A Dsb.h41 SB_HW_DT019X, /* Diamond Tech. DT-019X / Avance Logic ALS-007 */
226 /* Registers for DT-019x / ALS-007 mixer */
/linux-4.1.27/drivers/video/backlight/
H A Dadp8870_bl.c62 #define ADP8870_CMP_CTL 0x2D /* ALS Comparator Control Register */
63 #define ADP8870_ALS1_EN 0x2E /* Main ALS comparator level enable */
64 #define ADP8870_ALS2_EN 0x2F /* Second ALS comparator level enable */
65 #define ADP8870_ALS1_STAT 0x30 /* Main ALS Comparator Status Register */
66 #define ADP8870_ALS2_STAT 0x31 /* Second ALS Comparator Status Register */
94 /* ADP8870_ALS1_EN Main ALS comparator level enable */
H A Dadp8860_bl.c79 /* ADP8860_CCFG Main ALS comparator level enable */
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_opregion.c103 u32 alsi; /* current ALS illuminance reading */
448 /* alsi is the current ALS reading in lux. 0 indicates below sensor asle_set_als_illum()
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dopregion.c87 u32 alsi; /* current ALS illuminance reading */
/linux-4.1.27/drivers/mfd/
H A Dlm3533-core.c399 dev_err(lm3533->dev, "failed to add ALS device\n"); lm3533_device_als_init()
/linux-4.1.27/include/linux/mfd/
H A Dcros_ec_commands.h104 #define EC_MEMMAP_ALS 0x80 /* ALS readings in lux (2 X 16 bits) */
139 * Number of ALS readings at EC_MEMMAP_ALS

Completed in 903 milliseconds