/linux-6.14.4/sound/soc/codecs/ |
D | cs-amp-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <sound/cs-amp-lib.h> 34 mutex_lock(&dsp->pwr_lock); in cs_amp_write_cal_coeff() 35 cs_ctl = cs_dsp_get_ctl(dsp, ctl_name, controls->mem_region, controls->alg_id); in cs_amp_write_cal_coeff() 37 mutex_unlock(&dsp->pwr_lock); in cs_amp_write_cal_coeff() 40 dev_err(dsp->dev, "Failed to write to '%s': %d\n", ctl_name, ret); in cs_amp_write_cal_coeff() 47 return -ENODEV; in cs_amp_write_cal_coeff() 52 const struct cirrus_amp_cal_data *data) in _cs_amp_write_cal_coeffs() argument 56 dev_dbg(dsp->dev, "Calibration: Ambient=%#x, Status=%#x, CalR=%d\n", in _cs_amp_write_cal_coeffs() 57 data->calAmbient, data->calStatus, data->calR); in _cs_amp_write_cal_coeffs() [all …]
|
/linux-6.14.4/Documentation/iio/ |
D | bno055.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 2. Calibration 28 the IMU has successfully autocalibrated) and to the calibration data blob. 32 with this calibration data. This saves the user from performing the 33 calibration procedure every time (which consist of moving the IMU in 36 The driver looks for calibration data file using two different names: first 39 IMU instance. If this file is not found, then a "generic" calibration file 43 Valid calibration file names would be e.g. 44 bno055-caldata-0e7c26a33541515120204a35342b04ff.dat 45 bno055-caldata.dat [all …]
|
/linux-6.14.4/arch/x86/kernel/ |
D | tsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 62 struct cyc2ns_data data[2]; /* 0 + 2*16 = 32 */ member 75 __always_inline void __cyc2ns_read(struct cyc2ns_data *data) in __cyc2ns_read() argument 83 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read() 84 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in __cyc2ns_read() 85 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in __cyc2ns_read() 90 __always_inline void cyc2ns_read_begin(struct cyc2ns_data *data) in cyc2ns_read_begin() argument 93 __cyc2ns_read(data); in cyc2ns_read_begin() 116 * cyc2ns_scale needs to be a 32-bit value so that 32-bit multiplication 117 * (64-bit result) can be used. [all …]
|
/linux-6.14.4/drivers/thermal/ |
D | amlogic_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * U = ---------, Uptat = --------- 13 * Temperature = A * ( Uptat + u_efuse / 2^16 )- B 15 * A B m n : calibration parameters 16 * u_efuse : fused calibration value, it's a signed 16 bits value 68 * @A: calibration parameters 69 * @B: calibration parameters 70 * @m: calibration parameters 71 * @n: calibration parameters 84 * @u_efuse_off: register offset to read fused calibration value [all …]
|
D | qoriq_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 69 * Thermal zone data 85 return container_of(s, struct qoriq_tmu_data, sensor[s->id]); in qoriq_sensor_to_data() 113 regmap_read(qdata->regmap, REGS_TMR, &val); in tmu_get_temp() 115 return -EAGAIN; in tmu_get_temp() 117 if (regmap_read_poll_timeout(qdata->regmap, in tmu_get_temp() 118 REGS_TRITSR(qsensor->id), in tmu_get_temp() 123 return -ENODATA; in tmu_get_temp() 125 if (qdata->ver == TMU_VER1) { in tmu_get_temp() 149 struct qoriq_sensor *sensor = &qdata->sensor[id]; in qoriq_tmu_register_tmu_zone() [all …]
|
D | sun8i_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/nvmem-consumer.h> 55 #define SUN50I_THS_CTRL0_T_ACQ(x) (GENMASK(15, 0) & ((x) - 1)) 56 #define SUN50I_THS_CTRL0_T_SAMPLE_PER(x) ((GENMASK(15, 0) & ((x) - 1)) << 16) 103 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); in sun8i_ths_calc_temp() 110 return -1191 * reg / 10 + 223000; in sun50i_h5_calc_temp() 112 return -1452 * reg / 10 + 259000; in sun50i_h5_calc_temp() 114 return -1590 * reg / 10 + 276000; in sun50i_h5_calc_temp() 120 struct ths_device *tmdev = s->tmdev; in sun8i_ths_get_temp() 123 regmap_read(tmdev->regmap, tmdev->chip->temp_data_base + in sun8i_ths_get_temp() [all …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | sysfs-driver-hid-wiimote | 24 Starting with kernel-version 3.11 Motion Plus hotplugging is 26 extension. You will get uevent notifications for the motion-plus 40 Other strings for each device-type are available and may be 41 added if new device-specific detections are added. 56 balance board. It provides a single line with 3 calibration 63 Calibration data is already applied by the kernel to all input 64 values but may be used by user-space to perform other 72 pro-controller. It provides a single line with 4 calibration 73 values for all 4 analog sticks. Format is: "x1:y1 x2:y2". Data 74 is prefixed with a +/-. Each value is a signed 16bit number. [all …]
|
D | sysfs-bus-iio-bno055 | 3 Contact: linux-[email protected] 12 Contact: linux-[email protected] 21 Contact: linux-[email protected] 27 Contact: linux-[email protected] 33 Contact: linux-[email protected] 36 Calibration" HW function. 40 Contact: linux-[email protected] 47 Contact: linux-[email protected] 49 Reports the binary calibration data blob for the IMU sensors. 53 Contact: linux-[email protected] [all …]
|
/linux-6.14.4/drivers/iio/chemical/ |
D | atlas-sensor.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * atlas-sensor.c - Support for Atlas Scientific OEM SM sensors 5 * Copyright (C) 2015-2019 Konsulko Group 94 /* 96-bit data + 32-bit pad + 64-bit timestamp */ 108 for (; spec->type != IIO_TIMESTAMP; spec++) in atlas_buffer_num_channels() 135 .scan_index = -1 179 .scan_index = -1 221 .scan_index = -1 241 static int atlas_check_ph_calibration(struct atlas_data *data) in atlas_check_ph_calibration() argument 243 struct device *dev = &data->client->dev; in atlas_check_ph_calibration() [all …]
|
D | sunrise_co2.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Senseair Sunrise 006-0-0007 CO2 sensor driver. 8 * - controllable EN pin 9 * - single-shot operations using the nDRY pin. 10 * - ABC/target calibration 34 * The calibration timeout is not characterized in the datasheet. 54 union i2c_smbus_data data; in sunrise_regmap_read() local 58 return -EINVAL; in sunrise_regmap_read() 60 memset(&data, 0, sizeof(data)); in sunrise_regmap_read() 61 data.block[0] = val_size; in sunrise_regmap_read() [all …]
|
/linux-6.14.4/drivers/iio/magnetometer/ |
D | yamaha-yas530.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * YAS530 MS-3E (2011 Samsung Galaxy S Advance) 8 * YAS532 MS-3R (2011 Samsung Galaxy S4) 9 * YAS533 MS-3F (Vivo 1633, 1707, V3, Y21L) 11 * YAS535 MS-6C 12 * YAS536 MS-3W 13 * YAS537 MS-3T (2015 Samsung Galaxy S6, Note 5, Galaxy S7) 14 * YAS539 MS-3S (2018 Samsung Galaxy A7 SM-A750FN) 57 #define YAS530_OFFSET_X 0x85 /* [-31 .. 31] */ 58 #define YAS530_OFFSET_Y1 0x86 /* [-31 .. 31] */ [all …]
|
/linux-6.14.4/drivers/rtc/ |
D | rtc-ab8500.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 69 /* Request a data read */ in ab8500_rtc_read_time() 135 /* Request a data write */ in ab8500_rtc_set_time() 154 alarm->enabled = 1; in ab8500_rtc_read_alarm() 156 alarm->enabled = 0; in ab8500_rtc_read_alarm() 158 alarm->pending = 0; in ab8500_rtc_read_alarm() 171 rtc_time64_to_tm(secs, &alarm->time); in ab8500_rtc_read_alarm() 189 mins = (unsigned long)rtc_tm_to_time64(&alarm->time) / 60; in ab8500_rtc_set_alarm() 203 return ab8500_rtc_irq_enable(dev, alarm->enabled); in ab8500_rtc_set_alarm() [all …]
|
D | rtc-tps6594.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/ 26 #define NUM_TIME_REGS (TPS6594_REG_RTC_WEEKS - TPS6594_REG_RTC_SECONDS + 1) 29 #define NUM_TIME_ALARM_REGS (NUM_TIME_REGS - 1) 33 * After conversion, the values do not exceed the range [-32767, 33767] 36 #define MIN_OFFSET (-277774) 53 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_alarm_irq_enable() 58 return regmap_update_bits(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, in tps6594_rtc_alarm_irq_enable() 69 * an up-to-date timestamp. in tps6594_rtc_shadow_timestamp() 71 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/soc/mediatek/ |
D | mtk-svs.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/mediatek/mtk-svs.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Roger Lu <[email protected]> 11 - Matthias Brugger <[email protected]> 12 - Kevin Hilman <[email protected]> 24 - mediatek,mt8183-svs 25 - mediatek,mt8186-svs 26 - mediatek,mt8188-svs [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/net/wireless/ |
D | marvell,sd8787.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Brian Norris <[email protected]> 11 - Frank Li <[email protected]> 21 - marvell,sd8787 22 - marvell,sd8897 23 - marvell,sd8978 24 - marvell,sd8997 25 - nxp,iw416 [all …]
|
D | qcom,ath10k.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff Johnson <[email protected]> 18 - qcom,ath10k # SDIO-based devices 19 - qcom,ipq4019-wifi 20 - qcom,wcn3990-wifi # SNoC-based devices 25 reg-names: 27 - const: membase 33 interrupt-names: [all …]
|
/linux-6.14.4/drivers/iio/temperature/ |
D | mlx90632.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mlx90632.c - Melexis MLX90632 contactless IR temperature sensor 7 * Driver for the Melexis MLX90632 I2C 16-bit IR thermopile sensor 33 /* EEPROM addresses - used at startup */ 37 #define MLX90632_EE_P_R 0x240c /* P_R calibration register 32bit */ 38 #define MLX90632_EE_P_G 0x240e /* P_G calibration register 32bit */ 39 #define MLX90632_EE_P_T 0x2410 /* P_T calibration register 32bit */ 40 #define MLX90632_EE_P_O 0x2412 /* P_O calibration register 32bit */ 41 #define MLX90632_EE_Aa 0x2414 /* Aa calibration register 32bit */ 42 #define MLX90632_EE_Ab 0x2416 /* Ab calibration register 32bit */ [all …]
|
/linux-6.14.4/Documentation/sound/codecs/ |
D | cs35l56.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 14 The high-level summary of this document is: 30 --------------------------------- 51 Firmware is distributed in the linux-firmware repository: 52 https://gitlab.com/kernel-firmware/linux-firmware.git 71 --------------------------- 78 firmware files in linux-firmware for these amplifiers. Firmware files are 81 Cirrus Logic submits files for known laptops to the upstream linux-firmware 84 to linux-firmware. You may need to upgrade to a newer release of 85 linux-firmware to obtain the firmware for your laptop. [all …]
|
/linux-6.14.4/Documentation/hwmon/ |
D | ina209.rst | 6 * Burr-Brown / Texas Instruments INA209 10 Addresses scanned: - 16 - Paul Hays <[email protected]> 17 - Ira W. Snyder <[email protected]> 18 - Guenter Roeck <linux@roeck-us.net> 22 ----------- 24 The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side 27 calibration multiplier to scale the displayed current and power values. 31 ------------- 76 update_interval data conversion time; affects number of samples used [all …]
|
/linux-6.14.4/drivers/comedi/drivers/ |
D | jr3_pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 * The raw data is stored in a format which facilitates rapid 30 * format for a single channel of data. Each channel takes four, 31 * two-byte words. 38 * Raw_data is the raw data received directly from the sensor. The 39 * sensor data stream is capable of representing 16 different 42 * Channels 1-6 contain the coupled force data Fx through Mz. Channel 43 * 7 contains the sensor's calibration data. The use of channels 8-15 55 * filtered force data. 139 * was detected in the on-board RAM during the power-up [all …]
|
/linux-6.14.4/drivers/power/supply/ |
D | twl4030_madc_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 57 return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; in twl4030_madc_bat_get_charging_status() 62 return madc_read(bt->channel_vbat); in twl4030_madc_bat_get_voltage() 67 return madc_read(bt->channel_ichg) * 1000; in twl4030_madc_bat_get_current() 72 return madc_read(bt->channel_temp) * 10; in twl4030_madc_bat_get_temp() 78 struct twl4030_madc_bat_calibration *calibration; in twl4030_madc_bat_voltscale() local 83 calibration = bat->pdata->charging; in twl4030_madc_bat_voltscale() 85 calibration = bat->pdata->discharging; in twl4030_madc_bat_voltscale() 87 if (volt > calibration[0].voltage) { in twl4030_madc_bat_voltscale() 88 res = calibration[0].level; in twl4030_madc_bat_voltscale() [all …]
|
/linux-6.14.4/drivers/iio/adc/ |
D | stm32-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 12 #include <linux/dma-mapping.h> 16 #include <linux/iio/timer/stm32-lptim-trigger.h> 17 #include <linux/iio/timer/stm32-timer-trigger.h> 26 #include <linux/nvmem-consumer.h> 31 #include "stm32-adc-core.h" 33 /* Number of linear calibration shadow registers / LINCALRDYW control bits */ 58 /* extsel - trigger mux selection value */ 84 STM32_ADC_INT_CH_NONE = -1, [all …]
|
/linux-6.14.4/drivers/net/wireless/ath/ath5k/ |
D | phy.c | 2 * Copyright (c) 2004-2007 Reyk Floeter <[email protected]> 3 * Copyright (c) 2006-2009 Nick Kossifidis <[email protected]> 4 * Copyright (c) 2007-2008 Jiri Slaby <[email protected]> 5 * Copyright (c) 2008-2009 Felix Fietkau <[email protected]> 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 42 * Here we handle the low-level functions related to baseband 48 * - Channel setting/switching 50 * - Automatic Gain Control (AGC) calibration 52 * - Noise Floor calibration 54 * - I/Q imbalance calibration (QAM correction) [all …]
|
/linux-6.14.4/drivers/thermal/st/ |
D | st_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 26 struct device *dev = sensor->dev; in st_thermal_alloc_regfields() 27 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields() 28 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields() 30 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 33 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 36 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 37 reg_fields[DATA]); in st_thermal_alloc_regfields() 39 if (IS_ERR(sensor->dcorrect) || in st_thermal_alloc_regfields() [all …]
|
/linux-6.14.4/drivers/thermal/mediatek/ |
D | auxadc_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/nvmem-consumer.h> 115 /* The calibration coefficient of sensor */ 119 #define MT8173_TEMP_MIN -20000 123 * Layout of the fuses providing the calibration data 125 * MT8183 has 6 sensors and needs 6 VTS calibration data. 126 * MT8173 has 5 sensors and needs 5 VTS calibration data. 127 * MT2701 has 3 sensors and needs 3 VTS calibration data. 128 * MT2712 has 4 sensors and needs 4 VTS calibration data. 144 * Layout of the fuses providing the calibration data [all …]
|