Searched refs:als (Results 1 – 10 of 10) sorted by relevance
/drivers/iio/light/ |
D | lm3533-als.c | 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() 153 struct lm3533_als *als = iio_priv(indio_dev); in lm3533_als_set_target() local [all …]
|
D | acpi-als.c | 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_chained(als->trig); in acpi_als_notify() 126 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_read_raw() local 137 ret = acpi_als_read_value(als, ACPI_ALS_ILLUMINANCE, &temp_val); in acpi_als_read_raw() 154 struct acpi_als *als = iio_priv(indio_dev); in acpi_als_trigger_handler() local 155 s32 *buffer = als->evt_buffer; in acpi_als_trigger_handler() 159 mutex_lock(&als->lock); in acpi_als_trigger_handler() [all …]
|
D | Makefile | 7 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
|
D | Kconfig | 21 be called acpi-als. 220 will be called iqs621-als. 267 module will be called hid-sensor-als.
|
/drivers/leds/ |
D | leds-lm3532.c | 449 struct lm3532_als_data *als = priv->als_data; in lm3532_als_configure() local 455 als_vmin = als->als_vmin; in lm3532_als_configure() 456 als_vmax = als->als_vmax; in lm3532_als_configure() 461 als->zones_lo[i] = ((als_vmin + als_vstep + (i * als_vstep)) * in lm3532_als_configure() 463 als->zones_hi[i] = ((als_vmin + LM3532_ALS_OFFSET_mV + in lm3532_als_configure() 467 ret = regmap_write(priv->regmap, zone_reg, als->zones_lo[i]); in lm3532_als_configure() 472 ret = regmap_write(priv->regmap, zone_reg, als->zones_hi[i]); in lm3532_als_configure() 477 als->config = (als->als_avrg_time | (LM3532_ENABLE_ALS) | in lm3532_als_configure() 478 (als->als_input_mode << LM3532_ALS_SEL_SHIFT)); in lm3532_als_configure() 480 return regmap_write(priv->regmap, LM3532_ALS_CONFIG, als->config); in lm3532_als_configure() [all …]
|
D | leds-lm3530.c | 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() 184 als->imp_sel = in lm3530_als_configure() 234 struct lm3530_als_data als; in lm3530_init_registers() local 236 memset(&als, 0, sizeof(struct lm3530_als_data)); in lm3530_init_registers() 247 lm3530_als_configure(pdata, &als); in lm3530_init_registers() 267 reg_val[1] = als.config; /* LM3530_ALS_CONFIG */ in lm3530_init_registers() 269 reg_val[3] = als.imp_sel; /* LM3530_ALS_IMP_SELECT */ in lm3530_init_registers() 271 reg_val[5] = als.zones[0]; /* LM3530_ALS_ZB0_REG */ in lm3530_init_registers() [all …]
|
/drivers/mfd/ |
D | lm3533-core.c | 386 if (!pdata->als) in lm3533_device_als_init() 389 lm3533_als_devs[0].platform_data = pdata->als; in lm3533_device_als_init() 390 lm3533_als_devs[0].pdata_size = sizeof(*pdata->als); in lm3533_device_als_init()
|
/drivers/gpu/drm/i915/display/ |
D | intel_vbt_defs.h | 848 struct als_data_entry als[5]; member
|
/drivers/platform/x86/hp/ |
D | hp-wmi.c | 524 static DEVICE_ATTR_RW(als);
|
/drivers/misc/ |
D | Kconfig | 340 tristate "APDS990X combined als and proximity sensors"
|