/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/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/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/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 37 device couldn't be detected or loaded. "generic" means, that the 38 device couldn't be detected but supports basic Wii Remote 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 [all …]
|
D | sysfs-bus-iio-bno055 | 3 Contact: linux-[email protected] 6 application of scale is m/s^2. Note that this doesn't affects 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. [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/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/drivers/thermal/ |
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/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 …]
|
/linux-6.14.4/Documentation/devicetree/bindings/mtd/partitions/ |
D | tplink,safeloader-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TP-Link SafeLoader partitions 10 TP-Link home routers store various data on flash (e.g. bootloader, 11 flash layout, firmware, product info, configuration, calibration 12 data). That requires flash partitioning. 14 Flash space layout of TP-Link devices is stored on flash itself using 15 a custom ASCII-based format. That format was first found in TP-Link [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/comedi/drivers/ |
D | cb_pcidda.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Driver for the ComputerBoards / MeasurementComputing PCI-DDA series. 9 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 1997-8 David A. Schleef <[email protected]> 15 * Description: MeasurementComputing PCI-DDA series 16 * Devices: [Measurement Computing] PCI-DDA08/12 (pci-dda08/12), 17 * PCI-DDA04/12 (pci-dda04/12), PCI-DDA02/12 (pci-dda02/12), 18 * PCI-DDA08/16 (pci-dda08/16), PCI-DDA04/16 (pci-dda04/16), 19 * PCI-DDA02/16 (pci-dda02/16) 51 #define DACALIBRATION1 4 /* D/A CALIBRATION REGISTER 1 */ [all …]
|
/linux-6.14.4/drivers/rtc/ |
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/net/wireless/ |
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/Documentation/driver-api/firmware/ |
D | built-in-fw.rst | 2 Built-in firmware 5 Firmware can be built-in to the kernel, this means building the firmware 8 directly. You can enable built-in firmware using the kernel configuration 18 * Firmware is needed for accessing the boot device, and the user doesn't 22 able to make use of built-in firmware: 24 * Legalese - firmware is non-GPL compatible 28 * Some firmware files may be really large in size. The remote-proc subsystem 31 dynamically, an example is calibration data for some WiFi chipsets. This 32 calibration data can be unique per sold device.
|
/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 …]
|
D | twl6030-gpadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2013 Texas Instruments Inc. 7 * Balaji T K <[email protected]> 13 * Based on twl4030-madc.c 74 * struct twl6030_chnl_calib - channel calibration 86 * struct twl6030_ideal_code - GPADC calibration parameters 107 * struct twl6030_gpadc_platform_data - platform specific data 110 * @ideal: pointer to calibration parameters 114 * @calibrate: pointer to calibration function 126 * struct twl6030_gpadc_data - GPADC data [all …]
|
/linux-6.14.4/Documentation/admin-guide/thermal/ |
D | intel_powerclamp.rst | 6 - Arjan van de Ven <[email protected]> 7 - Jacob Pan <[email protected]> 12 - Goals and Objectives 15 - Idle Injection 16 - Calibration 19 - Effectiveness and Limitations 20 - Power vs Performance 21 - Scalability 22 - Calibration 23 - Comparison with Alternative Techniques [all …]
|
/linux-6.14.4/drivers/net/wireless/ath/ath9k/ |
D | link.c | 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 20 * TX polling - checks if the TX engine is stuck somewhere 28 if (sc->tx99_state) in ath_tx_complete_check() 32 txq = sc->tx.txq_map[i]; in ath_tx_complete_check() 35 if (txq->axq_depth) { in ath_tx_complete_check() 36 if (txq->axq_tx_inprogress) { in ath_tx_complete_check() 41 txq->axq_tx_inprogress = true; in ath_tx_complete_check() 49 ath_dbg(ath9k_hw_common(sc->sc_ah), RESET, in ath_tx_complete_check() 59 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_rx_inactive_check() 62 interval = jiffies_to_msecs(jiffies - sc->rx_active_check_time); in ath_hw_rx_inactive_check() [all …]
|
/linux-6.14.4/tools/testing/selftests/hid/tests/ |
D | test_sony.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 43 for x in range(-32000, 32000, 4000): 51 # to inverse calibration, followed by calibration by hid-sony. 52 assert x - 1 <= value <= x + 1 54 for y in range(-32000, 32000, 4000): 61 assert y - 1 <= value <= y + 1 63 for z in range(-32000, 32000, 4000): 70 assert z - 1 <= value <= z + 1 76 for rx in range(-2000000, 2000000, 200000): [all …]
|
/linux-6.14.4/drivers/hid/ |
D | hid-playstation.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2020-2022 Sony Interactive Entertainment 15 #include <linux/led-class-multicolor.h> 20 #include "hid-ids.h" 53 int (*parse_report)(struct ps_device *dev, struct hid_report *report, u8 *data, int size); 57 /* Calibration data for playstation motion sensors. */ 124 * and any associated data is then invalid. 160 /* Calibration data for accelerometer and gyroscope. */ 164 /* Timestamp for sensor data */ 229 static_assert(sizeof(struct dualsense_input_report) == DS_INPUT_REPORT_USB_SIZE - 1); [all …]
|
D | hid-nintendo.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * HID driver for Nintendo Switch Joy-Cons and Pro Controllers 5 * Copyright (c) 2019-2021 Daniel J. Ogorchock <[email protected]> 12 * https://gitlab.com/pjranki/joycon-linux-kernel (Peter Rankin) 16 * hid-wiimote kernel hid driver 17 * hid-logitech-hidpp driver 18 * hid-sony driver 20 * This driver supports the Nintendo Switch Joy-Cons and Pro Controllers. The 26 * The driver will retrieve the factory calibration info from the controllers, 27 * so little to no user calibration should be required. [all …]
|
/linux-6.14.4/Documentation/misc-devices/ |
D | apds990x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 Data sheet: 17 ----------- 32 lead to false interrupt, but that doesn't harm. 38 Platform data can provide tuned values to the conversion formulas if 48 ----- 52 RO - shows detected chip type and version 55 RW - enable / disable chip. Uses counting logic 60 RO - measured lux value 65 RO - lux0_input max value. [all …]
|
/linux-6.14.4/drivers/net/wireless/ath/ath10k/ |
D | core.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 16 #include <linux/nvmem-consumer.h> 28 #include "wmi-ops.h" 57 MODULE_PARM_DESC(skip_otp, "Skip otp failure for calibration in testmode"); 58 MODULE_PARM_DESC(cryptmode, "Crypto mode: 0-hardware, 1-software"); 474 * or 2x2 160Mhz, long-guard-interval. [all …]
|
/linux-6.14.4/drivers/phy/mediatek/ |
D | phy-mtk-mipi-dsi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "phy-mtk-mipi-dsi.h" 18 dev_dbg(mipi_tx->dev, "set rate: %lu Hz\n", rate); in mtk_mipi_tx_pll_set_rate() 20 mipi_tx->data_rate = rate; in mtk_mipi_tx_pll_set_rate() 30 return mipi_tx->data_rate; in mtk_mipi_tx_pll_recalc_rate() 39 ret = clk_prepare_enable(mipi_tx->pll_hw.clk); in mtk_mipi_tx_power_on() 44 mipi_tx->driver_data->mipi_tx_enable_signal(phy); in mtk_mipi_tx_power_on() 53 mipi_tx->driver_data->mipi_tx_disable_signal(phy); in mtk_mipi_tx_power_off() 56 clk_disable_unprepare(mipi_tx->pll_hw.clk); in mtk_mipi_tx_power_off() 73 cell = nvmem_cell_get(mipi_tx->dev, "calibration-data"); in mtk_mipi_tx_get_calibration_datal() [all …]
|