Home
last modified time | relevance | path

Searched refs:calibration (Results 1 – 25 of 244) sorted by relevance

12345678910

/linux-6.15/drivers/power/supply/
H A Dtwl4030_madc_battery.c83 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()
91 if (volt <= calibration[i].voltage && in twl4030_madc_bat_voltscale()
94 res = calibration[i].level - in twl4030_madc_bat_voltscale()
95 ((calibration[i].voltage - volt) * in twl4030_madc_bat_voltscale()
96 (calibration[i].level - in twl4030_madc_bat_voltscale()
97 calibration[i+1].level)) / in twl4030_madc_bat_voltscale()
98 (calibration[i].voltage - in twl4030_madc_bat_voltscale()
[all …]
/linux-6.15/drivers/rtc/
H A Drtc-ab8500.c218 if ((calibration < -127) || (calibration > 127)) { in ab8500_rtc_set_calibration()
228 if (calibration >= 0) in ab8500_rtc_set_calibration()
229 rtccal = 0x7F & calibration; in ab8500_rtc_set_calibration()
231 rtccal = ~(calibration - 1) | 0x80; in ab8500_rtc_set_calibration()
253 *calibration = 0 - (rtccal & 0x7F); in ab8500_rtc_get_calibration()
255 *calibration = 0x7F & rtccal; in ab8500_rtc_get_calibration()
266 int calibration = 0; in ab8500_sysfs_store_rtc_calibration() local
268 if (sscanf(buf, " %i ", &calibration) != 1) { in ab8500_sysfs_store_rtc_calibration()
273 retval = ab8500_rtc_set_calibration(dev, calibration); in ab8500_sysfs_store_rtc_calibration()
282 int calibration = 0; in ab8500_sysfs_show_rtc_calibration() local
[all …]
H A Drtc-tps65910.c219 if ((calibration < -32768) || (calibration > 32766)) { in tps65910_rtc_set_calibration()
221 calibration); in tps65910_rtc_set_calibration()
225 value = (s16)calibration; in tps65910_rtc_set_calibration()
261 *calibration = 0; in tps65910_rtc_get_calibration()
274 *calibration = (s16)value; in tps65910_rtc_get_calibration()
281 int calibration; in tps65910_read_offset() local
285 ret = tps65910_rtc_get_calibration(dev, &calibration); in tps65910_read_offset()
290 tmp = calibration * (s64)PPB_MULT; in tps65910_read_offset()
305 int calibration; in tps65910_set_offset() local
322 calibration = (int)-tmp; in tps65910_set_offset()
[all …]
H A Drtc-tps6594.c208 static int tps6594_rtc_set_calibration(struct device *dev, int calibration) in tps6594_rtc_set_calibration() argument
222 if (calibration < S16_MIN + 1 || calibration > S16_MAX) in tps6594_rtc_set_calibration()
225 value = cpu_to_le16(calibration); in tps6594_rtc_set_calibration()
251 *calibration = 0; in tps6594_rtc_get_calibration()
260 *calibration = le16_to_cpu(value); in tps6594_rtc_get_calibration()
267 int calibration; in tps6594_rtc_read_offset() local
271 ret = tps6594_rtc_get_calibration(dev, &calibration); in tps6594_rtc_read_offset()
276 tmp = calibration * PPB_MULT; in tps6594_rtc_read_offset()
301 int calibration; in tps6594_rtc_set_offset() local
328 calibration = (int)-tmp; in tps6594_rtc_set_offset()
[all …]
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-bus-iio-adc-ad-sigma-delta5 This attribute, if available, initiates the system calibration procedure. This is done on a
6 single channel at a time. Write '1' to start the calibration.
12 This attribute, if available, returns a list with the possible calibration modes.
21 This attribute, if available, sets up the calibration mode used in the system calibration
22 procedure. Reading returns the current calibration mode.
23 Writing sets the system calibration mode.
H A Dsysfs-bus-iio-bno05549 Reports the binary calibration data blob for the IMU sensors.
56 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
57 the number, the better the calibration status.
64 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
65 the number, the better the calibration status.
72 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
73 the number, the better the calibration status.
80 Can be 0 (calibration non even enabled) or 1 to 5 where the greater
81 the number, the better the calibration status.
H A Dsysfs-bus-iio-chemical-vz89x6 Get the raw calibration VOC value from the sensor.
7 This value has little application outside of calibration.
H A Dsysfs-bus-iio-cdc-ad77466 Write 1 to trigger a calibration of the calibbias or
11 calibration".
H A Dsysfs-bus-i2c-devices-hm635215 What: /sys/bus/i2c/devices/.../calibration
19 Description: Sets the calibration on or off (1 = on, 0 = off). See the
/linux-6.15/Documentation/iio/
H A Dbno055.rst28 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.
48 offsets from calibration data (if any), so that the user can apply them to
/linux-6.15/Documentation/devicetree/bindings/iio/adc/
H A Dqcom,pm8018-adc.yaml71 Note that channels c, d and f must be present for calibration.
72 These three nodes are used for absolute and ratiometric calibration
75 an interpolation calibration for all other ADCs.
92 Channel calibration type. If this property is specified
94 calibration. The available references are specified in the
96 to also specify this reference if ratiometric calibration
101 known as an absolute calibration.
103 The reference voltage pairs when using ratiometric calibration:
/linux-6.15/Documentation/devicetree/bindings/soc/mediatek/
H A Dmtk-svs.yaml47 Phandle to the calibration data provided by a nvmem device.
54 - const: svs-calibration-data
55 - const: t-calibration-data
92 nvmem-cell-names = "svs-calibration-data", "t-calibration-data";
/linux-6.15/Documentation/devicetree/bindings/rtc/
H A Dxlnx,zynqmp-rtc.yaml47 calibration:
49 calibration value for 1 sec period which will
50 be programmed directly to calibration register.
80 calibration = <0x198233>;
/linux-6.15/Documentation/devicetree/bindings/net/wireless/
H A Dqcom,ath12k-wsi.yaml55 qcom,calibration-variant:
58 String to uniquely identify variant of the calibration data for designs
61 qcom,ath12k-calibration-variant:
65 String to uniquely identify variant of the calibration data for designs
113 qcom,calibration-variant = "RDP433_1";
149 qcom,calibration-variant = "RDP433_2";
186 qcom,calibration-variant = "RDP433_3";
H A Dqcom,ath11k-pci.yaml25 qcom,calibration-variant:
28 string to uniquely identify variant of the calibration data for designs
31 qcom,ath11k-calibration-variant:
35 string to uniquely identify variant of the calibration data for designs
137 qcom,calibration-variant = "LE_X13S";
H A Dqcom,ath10k.yaml95 qcom,calibration-data:
101 qcom,ath10k-calibration-data:
108 qcom,calibration-variant:
111 Unique variant identifier of the calibration data in board-2.bin
114 qcom,ath10k-calibration-variant:
118 Unique variant identifier of the calibration data in board-2.bin
121 qcom,pre-calibration-data:
124 Pre-calibration data as a byte array. The length can vary between
127 qcom,ath10k-pre-calibration-data:
131 Pre-calibration data as a byte array. The length can vary between
H A Dqca,ath9k.yaml55 - description: Reference to an nvmem node for calibration data
60 - const: calibration
88 nvmem-cell-names = "mac-address", "calibration";
/linux-6.15/Documentation/devicetree/bindings/mmc/
H A Dnvidia,tegra20-sdhci.yaml113 description: Specify drive strength calibration offsets for 1.8 V
119 automatic calibration times out on a 1.8 V signaling mode.
123 description: Specify drive strength calibration offsets for 3.3 V
129 automatic calibration times out on a 3.3 V signaling mode.
133 description: Specify drive strength calibration offsets for SDR104 mode.
137 description: Specify drive strength calibration offsets for HS400 mode.
141 description: Specify drive strength calibration offsets for 1.8 V
147 automatic calibration times out on a 1.8 V signaling mode.
151 description: Specify drive strength calibration offsets for 3.3 V
164 automatic calibration times out on a 3.3 V signaling mode.
[all …]
/linux-6.15/drivers/hwmon/pmbus/
H A Dina233.c89 u16 calibration; in ina233_probe() local
150 calibration = div64_u64(5120000000ULL, (u64)rshunt * current_lsb); in ina233_probe()
151 if (calibration > 0x7FFF) in ina233_probe()
155 ret = i2c_smbus_write_word_data(client, MFR_CALIBRATION, calibration); in ina233_probe()
/linux-6.15/drivers/thermal/
H A Dqoriq_thermal.c190 const u32 *calibration; in qoriq_tmu_calibration() local
210 calibration = of_get_property(np, "fsl,tmu-calibration", &len); in qoriq_tmu_calibration()
211 if (calibration == NULL || len % 8) { in qoriq_tmu_calibration()
216 for (i = 0; i < len; i += 8, calibration += 2) { in qoriq_tmu_calibration()
217 val = of_read_number(calibration, 1); in qoriq_tmu_calibration()
219 val = of_read_number(calibration + 1, 1); in qoriq_tmu_calibration()
/linux-6.15/Documentation/devicetree/bindings/nvmem/
H A Dsunplus,sp7021-ocotp.yaml32 thermal-calibration:
34 description: thermal calibration values
66 therm_calib: thermal-calibration@14 {
/linux-6.15/Documentation/devicetree/bindings/thermal/
H A Dallwinner,sun8i-a83t-ths.yaml54 const: calibration
149 nvmem-cell-names = "calibration";
162 nvmem-cell-names = "calibration";
175 nvmem-cell-names = "calibration";
H A Dqoriq-thermal.yaml43 fsl,tmu-calibration:
46 A list of cell pairs containing temperature calibration data, as
74 - fsl,tmu-calibration
85 fsl,tmu-calibration = <0x00000000 0x00000025>,
/linux-6.15/Documentation/hwmon/
H A Dina209.rst27 calibration multiplier to scale the displayed current and power values.
83 The power and current registers in this chip require that the calibration
87 the ina2xx driver for this purpose. If calibration register data is not provided
88 via platform data, the driver checks if the calibration register has been
91 programmed into the calibration register.
/linux-6.15/Documentation/devicetree/bindings/phy/
H A Dmediatek,dsi-phy.yaml59 description: A phandle to the calibration data provided by a nvmem device,
64 - const: calibration-data
93 nvmem-cell-names = "calibration-data";

12345678910