Home
last modified time | relevance | path

Searched full:calibration (Results 1 – 25 of 669) sorted by relevance

12345678910>>...27

/Linux-v5.15/drivers/soc/tegra/fuse/
Dfuse-tegra30.c139 .cell_name = "xusb-pad-calibration",
141 .con_id = "calibration",
144 .cell_name = "sata-calibration",
146 .con_id = "calibration",
236 .cell_name = "xusb-pad-calibration",
238 .con_id = "calibration",
246 .cell_name = "sata-calibration",
248 .con_id = "calibration",
276 .cell_name = "gpu-calibration",
278 .con_id = "calibration",
[all …]
/Linux-v5.15/drivers/power/supply/
Dtwl4030_madc_battery.c78 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()
90 for (i = 0; calibration[i+1].voltage >= 0; i++) { in twl4030_madc_bat_voltscale()
91 if (volt <= calibration[i].voltage && in twl4030_madc_bat_voltscale()
92 volt >= calibration[i+1].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()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/net/wireless/
Dqcom,ath10k.txt9 PCI based devices uses compatible string "qcom,ath10k" and takes calibration
10 data along with board specific data via "qcom,ath10k-calibration-data".
15 "qcom,ath10k-calibration-data"). It uses "qcom,ath10k-pre-calibration-data"
16 to carry pre calibration data.
18 In general, entry "qcom,ath10k-pre-calibration-data" and
19 "qcom,ath10k-calibration-data" conflict with each other and only one
58 - qcom,ath10k-calibration-variant: string to search for in the board-2.bin
61 - qcom,ath10k-calibration-data : calibration data + board specific data
64 - qcom,ath10k-pre-calibration-data : pre calibration data as an array,
125 qcom,ath10k-calibration-data = [ 01 02 03 ... ];
[all …]
/Linux-v5.15/drivers/rtc/
Drtc-ab8500.c222 static int ab8500_rtc_set_calibration(struct device *dev, int calibration) in ab8500_rtc_set_calibration() argument
228 * Check that the calibration value (which is in units of 0.5 in ab8500_rtc_set_calibration()
234 if ((calibration < -127) || (calibration > 127)) { in ab8500_rtc_set_calibration()
244 if (calibration >= 0) in ab8500_rtc_set_calibration()
245 rtccal = 0x7F & calibration; in ab8500_rtc_set_calibration()
247 rtccal = ~(calibration - 1) | 0x80; in ab8500_rtc_set_calibration()
255 static int ab8500_rtc_get_calibration(struct device *dev, int *calibration) in ab8500_rtc_get_calibration() argument
269 *calibration = 0 - (rtccal & 0x7F); in ab8500_rtc_get_calibration()
271 *calibration = 0x7F & rtccal; in ab8500_rtc_get_calibration()
282 int calibration = 0; in ab8500_sysfs_store_rtc_calibration() local
[all …]
Drtc-tps65910.c202 static int tps65910_rtc_set_calibration(struct device *dev, int calibration) in tps65910_rtc_set_calibration() argument
219 if ((calibration < -32768) || (calibration > 32766)) { in tps65910_rtc_set_calibration()
220 dev_err(dev, "RTC calibration value out of range: %d\n", in tps65910_rtc_set_calibration()
221 calibration); in tps65910_rtc_set_calibration()
225 value = (s16)calibration; in tps65910_rtc_set_calibration()
247 static int tps65910_rtc_get_calibration(struct device *dev, int *calibration) in tps65910_rtc_get_calibration() argument
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()
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-bus-iio-adc-ad719226 Initiates the system calibration procedure. This is done on a
27 single channel at a time. Write '1' to start the calibration.
40 Reading returns a list with the possible calibration modes.
49 Sets up the calibration mode used in the system calibration
50 procedure. Reading returns the current calibration mode.
51 Writing sets the system calibration mode.
Dsysfs-driver-hid-wiimote56 balance board. It provides a single line with 3 calibration
63 Calibration data is already applied by the kernel to all input
72 pro-controller. It provides a single line with 4 calibration
78 Calibration data is already applied by the kernel to all input
82 Calibration data is detected by the kernel during device setup.
83 You can write "scan\n" into this file to re-trigger calibration.
85 set the calibration values manually.
/Linux-v5.15/drivers/net/wireless/broadcom/b43/
Dphy_lp.h322 #define B2062_N_IQ_CALIB B43_LP_NORTH(0x016) /* IQ Calibration (north) */
390 #define B2062_N_IQ_CALIB_CTL0 B43_LP_NORTH(0x05A) /* IQ Calibration Control 0 (north) */
391 #define B2062_N_IQ_CALIB_CTL1 B43_LP_NORTH(0x05B) /* IQ Calibration Control 1 (north) */
392 #define B2062_N_IQ_CALIB_CTL2 B43_LP_NORTH(0x05C) /* IQ Calibration Control 2 (north) */
393 #define B2062_N_CALIB_TS B43_LP_NORTH(0x05D) /* Calibration TS (north) */
394 #define B2062_N_CALIB_CTL0 B43_LP_NORTH(0x05E) /* Calibration Control 0 (north) */
395 #define B2062_N_CALIB_CTL1 B43_LP_NORTH(0x05F) /* Calibration Control 1 (north) */
396 #define B2062_N_CALIB_CTL2 B43_LP_NORTH(0x060) /* Calibration Control 2 (north) */
397 #define B2062_N_CALIB_CTL3 B43_LP_NORTH(0x061) /* Calibration Control 3 (north) */
398 #define B2062_N_CALIB_CTL4 B43_LP_NORTH(0x062) /* Calibration Control 4 (north) */
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/iio/adc/
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-v5.15/arch/x86/kernel/
Dtsc.c468 * or PIT for the fast calibration to work.
595 pr_info("Fast TSC calibration failed\n"); in quick_pit_calibrate()
614 pr_info("Fast TSC calibration using PIT\n"); in quick_pit_calibrate()
725 * Run 5 calibration loops to get the lowest frequency value in pit_hpet_ptimer_calibrate_cpu()
726 * (the best estimate). We use two different calibration modes in pit_hpet_ptimer_calibrate_cpu()
745 * calibration delay loop as we have to wait for a certain in pit_hpet_ptimer_calibrate_cpu()
760 * calibration, which will take at least 50ms, and in pit_hpet_ptimer_calibrate_cpu()
769 /* Pick the lowest PIT TSC calibration so far */ in pit_hpet_ptimer_calibrate_cpu()
793 * If both calibration results are inside a 10% window in pit_hpet_ptimer_calibrate_cpu()
794 * then we can be sure, that the calibration in pit_hpet_ptimer_calibrate_cpu()
[all …]
/Linux-v5.15/drivers/thermal/
Damlogic_thermal.c15 * A B m n : calibration parameters
16 * u_efuse : fused calibration value, it's a signed 16 bits value
71 * @A: calibration parameters
72 * @B: calibration parameters
73 * @m: calibration parameters
74 * @n: calibration parameters
87 * @u_efuse_off: register offset to read fused calibration value
88 * @calibration_parameters: calibration parameters structure pointer
152 "tsensor thermal calibration not supported: 0x%x!\n", in amlogic_thermal_initialize()
Dqoriq_thermal.c175 const u32 *calibration; in qoriq_tmu_calibration() local
194 calibration = of_get_property(np, "fsl,tmu-calibration", &len); in qoriq_tmu_calibration()
195 if (calibration == NULL || len % 8) { in qoriq_tmu_calibration()
196 dev_err(dev, "invalid calibration data.\n"); in qoriq_tmu_calibration()
200 for (i = 0; i < len; i += 8, calibration += 2) { in qoriq_tmu_calibration()
201 val = of_read_number(calibration, 1); in qoriq_tmu_calibration()
203 val = of_read_number(calibration + 1, 1); in qoriq_tmu_calibration()
324 ret = qoriq_tmu_calibration(dev, data); /* TMU calibration */ in qoriq_tmu_probe()
Dsun8i_thermal.c131 * do this, the correct calibration formula is hard to know. in sun8i_ths_get_temp()
237 * The calibration data on the H6 is the ambient temperature and in sun50i_h6_ths_calibrate()
243 * register values and this will become a calibration offset. in sun50i_h6_ths_calibrate()
253 * Calibration data is CALIBRATE_DEFAULT - (calculated in sun50i_h6_ths_calibrate()
262 * Calibration value more than 12-bit, but calibration in sun50i_h6_ths_calibrate()
264 * still work without calibration, although the data in sun50i_h6_ths_calibrate()
289 calcell = devm_nvmem_cell_get(dev, "calibration"); in sun8i_ths_calibrate()
294 * Even if the external calibration data stored in sid is in sun8i_ths_calibrate()
298 * The default value of calibration register is 0x800 for in sun8i_ths_calibrate()
299 * every sensor, and the calibration value is usually 0x7xx in sun8i_ths_calibrate()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/rtc/
Dxlnx,zynqmp-rtc.yaml34 calibration:
36 calibration value for 1 sec period which will
37 be programmed directly to calibration register.
63 calibration = <0x198233>;
/Linux-v5.15/drivers/iio/temperature/
Dmlx90632.c33 #define MLX90632_EE_P_R 0x240c /* P_R calibration register 32bit */
34 #define MLX90632_EE_P_G 0x240e /* P_G calibration register 32bit */
35 #define MLX90632_EE_P_T 0x2410 /* P_T calibration register 32bit */
36 #define MLX90632_EE_P_O 0x2412 /* P_O calibration register 32bit */
37 #define MLX90632_EE_Aa 0x2414 /* Aa calibration register 32bit */
38 #define MLX90632_EE_Ab 0x2416 /* Ab calibration register 32bit */
39 #define MLX90632_EE_Ba 0x2418 /* Ba calibration register 32bit */
40 #define MLX90632_EE_Bb 0x241a /* Bb calibration register 32bit */
41 #define MLX90632_EE_Ca 0x241c /* Ca calibration register 32bit */
42 #define MLX90632_EE_Cb 0x241e /* Cb calibration register 32bit */
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/thermal/
Dallwinner,sun8i-a83t-ths.yaml47 description: Calibration data for thermal sensors
50 const: calibration
132 nvmem-cell-names = "calibration";
145 nvmem-cell-names = "calibration";
158 nvmem-cell-names = "calibration";
Dqoriq-thermal.yaml38 fsl,tmu-calibration:
41 A list of cell pairs containing temperature calibration data, as
69 - fsl,tmu-calibration
81 fsl,tmu-calibration = <0x00000000 0x00000025>,
/Linux-v5.15/Documentation/devicetree/bindings/mmc/
Dnvidia,tegra20-sdhci.txt64 calibration offsets for 3.3 V signaling modes.
67 calibration offsets for 1.8 V signaling modes.
70 strength used as a fallback in case the automatic calibration times
74 strength used as a fallback in case the automatic calibration times
78 calibration offsets for SDR104 mode.
81 calibration offsets for HS400 mode.
88 Notes on the pad calibration pull up and pulldown offset values:
/Linux-v5.15/drivers/iio/chemical/
Datlas-sensor.c257 dev_warn(dev, "device missing low point calibration\n"); in atlas_check_ph_calibration()
260 dev_warn(dev, "device missing mid point calibration\n"); in atlas_check_ph_calibration()
263 dev_warn(dev, "device missing high point calibration\n"); in atlas_check_ph_calibration()
292 dev_warn(dev, "device missing dry point calibration\n"); in atlas_check_ec_calibration()
295 dev_warn(dev, "device using single point calibration\n"); in atlas_check_ec_calibration()
298 dev_warn(dev, "device missing low point calibration\n"); in atlas_check_ec_calibration()
301 dev_warn(dev, "device missing high point calibration\n"); in atlas_check_ec_calibration()
339 dev_warn(dev, "device missing atmospheric pressure calibration\n"); in atlas_check_do_calibration()
342 dev_warn(dev, "device missing dissolved oxygen calibration\n"); in atlas_check_do_calibration()
352 int (*calibration)(struct atlas_data *data); member
[all …]
/Linux-v5.15/drivers/iio/magnetometer/
Dyamaha-yas530.c101 /* Linearization calibration x, y1, y2 */
104 /* Temperature compensation calibration */
106 /* Misc calibration coefficients */
118 * @calibration: calibration settings from the OTP storage
134 struct yas5xx_calibration calibration; member
266 struct yas5xx_calibration *c = &yas5xx->calibration; in yas5xx_linearize()
298 * Where f and r are calibration values, c is a per-device in yas5xx_linearize()
318 struct yas5xx_calibration *c = &yas5xx->calibration; in yas5xx_get_measure()
542 * yas53x_extract_calibration() - extracts the a2-a9 and k calibration
544 * @c: the calibration to populate
[all …]
/Linux-v5.15/Documentation/hwmon/
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-v5.15/init/
Dcalibrate.c2 /* calibrate.c: default delay calibration
96 * >= 12.5% apart, redo calibration. in calibrate_delay_direct()
180 * For the boot cpu we can skip the delay calibration and assign it a value
183 * the cpu frequency, hence do the calibration for those.
254 * Check if cpu calibration delay is already known. For example,
256 * with the same calibration delay.
258 * Architectures should override this function if a faster calibration
267 * Indicate the cpu delay calibration is done. This can be used by
/Linux-v5.15/drivers/net/wireless/ath/ath5k/
Dphy.c49 * - Automatic Gain Control (AGC) calibration
51 * - Noise Floor calibration
53 * - I/Q imbalance calibration (QAM correction)
55 * - Calibration due to thermal changes (gain_F)
460 /* Skip if gain calibration is inactive or in ath5k_hw_request_rfgain_probe()
668 * ath5k_hw_gainf_calibrate() - Do a gain_F calibration
671 * Main callback for thermal RF gain calibration engine
746 * with Gain_F calibration
1486 PHY calibration
1490 * DOC: PHY Calibration routines
[all …]
/Linux-v5.15/drivers/comedi/drivers/
Dadv_pci1724.c24 * Subdevice 1 is the offset calibration for the analog output.
25 * Subdevice 2 is the gain calibration for the analog output.
27 * The calibration offset and gains have quite a large effect on the
36 * matter of adjusting the offset and gain calibration until the board
153 /* Offset Calibration subdevice */ in adv_pci1724_auto_attach()
166 /* Gain Calibration subdevice */ in adv_pci1724_auto_attach()
/Linux-v5.15/drivers/phy/marvell/
Dphy-mvebu-a3700-utmi.c127 /* Wait for PLL calibration */ in mvebu_a3700_utmi_phy_power_on()
132 dev_err(dev, "Failed to end USB2 PLL calibration\n"); in mvebu_a3700_utmi_phy_power_on()
136 /* Wait for impedance calibration */ in mvebu_a3700_utmi_phy_power_on()
141 dev_err(dev, "Failed to end USB2 impedance calibration\n"); in mvebu_a3700_utmi_phy_power_on()
145 /* Wait for squelch calibration */ in mvebu_a3700_utmi_phy_power_on()
150 dev_err(dev, "Failed to end USB2 unknown calibration\n"); in mvebu_a3700_utmi_phy_power_on()

12345678910>>...27