Home
last modified time | relevance | path

Searched full:calib (Results 1 – 25 of 119) sorted by relevance

12345

/linux-6.12.1/drivers/iio/chemical/
Dbme680_core.c28 /* Temperature calib indexes */
31 /* Pressure calib indexes */
46 /* Humidity calib indexes */
54 /* Stray T1 calib index */
56 /* Gas heater calib indexes */
161 struct bme680_calib *calib) in bme680_read_calib() argument
171 dev_err(dev, "failed to read 1st set of calib data;\n"); in bme680_read_calib()
175 calib->par_t2 = get_unaligned_le16(&data->bme680_cal_buf_1[T2_LSB]); in bme680_read_calib()
176 calib->par_t3 = data->bme680_cal_buf_1[T3]; in bme680_read_calib()
177 calib->par_p1 = get_unaligned_le16(&data->bme680_cal_buf_1[P1_LSB]); in bme680_read_calib()
[all …]
/linux-6.12.1/drivers/iio/pressure/
Dbmp280-core.c122 /* Temperature calib indexes */
126 /* Pressure calib indexes */
307 struct bmp280_calib *calib = &data->calib.bmp280; in bmp280_read_calib() local
325 calib->T1 = le16_to_cpu(data->bmp280_cal_buf[T1]); in bmp280_read_calib()
326 calib->T2 = le16_to_cpu(data->bmp280_cal_buf[T2]); in bmp280_read_calib()
327 calib->T3 = le16_to_cpu(data->bmp280_cal_buf[T3]); in bmp280_read_calib()
330 calib->P1 = le16_to_cpu(data->bmp280_cal_buf[P1]); in bmp280_read_calib()
331 calib->P2 = le16_to_cpu(data->bmp280_cal_buf[P2]); in bmp280_read_calib()
332 calib->P3 = le16_to_cpu(data->bmp280_cal_buf[P3]); in bmp280_read_calib()
333 calib->P4 = le16_to_cpu(data->bmp280_cal_buf[P4]); in bmp280_read_calib()
[all …]
/linux-6.12.1/drivers/thermal/tegra/
Dtegra30-tsensor.c87 struct tegra_tsensor_calibration_data calib; member
198 c1 = DIV_ROUND_CLOSEST(ts->calib.a * counter + ts->calib.b, 1000000); in tegra_tsensor_get_temp()
200 c2 = DIV_ROUND_CLOSEST(ts->calib.p, c1); in tegra_tsensor_get_temp()
201 c3 = c1 * ts->calib.m; in tegra_tsensor_get_temp()
202 c4 = ts->calib.n; in tegra_tsensor_get_temp()
213 c1 = DIV_ROUND_CLOSEST(ts->calib.p - temp * 1000, ts->calib.m); in tegra_tsensor_temp_to_counter()
214 c2 = -ts->calib.r - int_sqrt(ts->calib.r * ts->calib.r - c1); in tegra_tsensor_temp_to_counter()
216 return DIV_ROUND_CLOSEST(c2 * 1000000 - ts->calib.b, ts->calib.a); in tegra_tsensor_temp_to_counter()
481 ts->calib.a = DIV_ROUND_CLOSEST((t2_90C - t1_25C) * 1000000, in tegra_tsensor_nvmem_setup()
484 ts->calib.b = t1_25C * 1000000 - ts->calib.a * c1_25C; in tegra_tsensor_nvmem_setup()
[all …]
Dsoctherm-fuse.c112 u32 val, calib; in tegra_calc_tsensor_calib() local
150 calib = ((u16)therma << SENSOR_CONFIG2_THERMA_SHIFT) | in tegra_calc_tsensor_calib()
153 *calibration = calib; in tegra_calc_tsensor_calib()
/linux-6.12.1/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors.c67 st->core.calib[i].offset = in cros_ec_sensors_read()
70 *val = st->core.calib[idx].offset; in cros_ec_sensors_read()
89 st->core.calib[i].scale = in cros_ec_sensors_read()
92 *val = st->core.calib[idx].scale >> 15; in cros_ec_sensors_read()
93 *val2 = ((st->core.calib[idx].scale & 0x7FFF) * 1000000LL) / in cros_ec_sensors_read()
163 st->core.calib[idx].offset = val; in cros_ec_sensors_write()
171 st->core.calib[i].offset; in cros_ec_sensors_write()
178 st->core.calib[idx].scale = val; in cros_ec_sensors_write()
186 st->core.calib[i].scale; in cros_ec_sensors_write()
/linux-6.12.1/drivers/thermal/qcom/
Dtsens-v0_1.c96 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8916()
172 u32 *calib, *bkp; in calibrate_8974() local
180 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
181 if (IS_ERR(calib)) in calibrate_8974()
182 return PTR_ERR(calib); in calibrate_8974()
186 kfree(calib); in calibrate_8974()
195 bkp, calib); in calibrate_8974()
199 calib, NULL); in calibrate_8974()
204 kfree(calib); in calibrate_8974()
/linux-6.12.1/Documentation/devicetree/bindings/thermal/
Dmediatek,lvts-thermal.yaml52 - const: lvts-calib-data-1
53 - const: lvts-calib-data-2
123 nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2";
Dimx-thermal.yaml44 - const: calib
89 tempmon_calib: calib@38 {
110 nvmem-cell-names = "calib", "temp_grade";
Dqcom-tsens.yaml118 - const: calib
304 nvmem-cell-names = "calib", "calib_backup";
351 nvmem-cell-names = "calib", "calib_sel";
369 nvmem-cell-names = "calib";
/linux-6.12.1/Documentation/devicetree/bindings/power/supply/
Dsc27xx-fg.yaml50 sprd,calib-resistance-micro-ohms:
64 - sprd,calib-resistance-micro-ohms
102 sprd,calib-resistance-micro-ohms = <21500>;
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/api/
Dlocation.h775 * @calib: An array of calibration values per FTM rx bandwidth.
796 __le16 calib[IWL_TOF_BW_NUM]; member
822 * @calib: An array of calibration values per FTM rx bandwidth.
849 __le16 calib[IWL_TOF_BW_NUM]; member
880 * @calib: An array of calibration values per FTM rx bandwidth.
919 __le16 calib[IWL_TOF_BW_NUM]; member
954 * @calib: An array of calibration values per FTM rx bandwidth.
1000 __le16 calib[IWL_TOF_BW_NUM]; member
1037 * @calib: An array of calibration values per FTM rx bandwidth.
1076 __le16 calib[IWL_TOF_BW_NUM]; member
[all …]
/linux-6.12.1/drivers/iio/light/
Dcros_ec_light_prox.c90 st->core.calib[0].offset = in cros_ec_light_prox_read()
93 *val = st->core.calib[idx].offset; in cros_ec_light_prox_read()
137 st->core.calib[idx].offset = val; in cros_ec_light_prox_write()
142 st->core.calib[0].offset; in cros_ec_light_prox_write()
/linux-6.12.1/Documentation/devicetree/bindings/clock/
Dqcom,gcc-apq8064.yaml65 - const: calib
91 nvmem-cell-names = "calib", "calib_backup";
/linux-6.12.1/drivers/ata/
Dahci_tegra.c197 struct sata_pad_calibration calib; in tegra124_ahci_init() local
206 calib = tegra124_pad_calibration[val & FUSE_SATA_CALIB_MASK]; in tegra124_ahci_init()
214 val |= calib.gen1_tx_amp << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_AMP_SHIFT; in tegra124_ahci_init()
215 val |= calib.gen1_tx_peak << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_PEAK_SHIFT; in tegra124_ahci_init()
223 val |= calib.gen2_tx_amp << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_AMP_SHIFT; in tegra124_ahci_init()
224 val |= calib.gen2_tx_peak << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_PEAK_SHIFT; in tegra124_ahci_init()
/linux-6.12.1/include/linux/iio/common/
Dcros_ec_sensors_core.h48 * @calib: calibration parameters. Note that trigger
76 } calib[CROS_EC_SENSOR_MAX_AXIS]; member
/linux-6.12.1/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi72 fgu_calib: calib@6 {
77 adc_big_scale: calib@24 {
81 adc_small_scale: calib@26 {
/linux-6.12.1/drivers/gpu/drm/i2c/
Dtda998x_drv.c87 struct gpio_desc *calib; member
495 struct gpio_desc *calib = priv->calib; in tda998x_cec_calibration() local
500 gpiod_direction_output(calib, 1); in tda998x_cec_calibration()
504 gpiod_set_value(calib, 0); in tda998x_cec_calibration()
506 gpiod_set_value(calib, 1); in tda998x_cec_calibration()
510 gpiod_direction_input(calib); in tda998x_cec_calibration()
519 struct gpio_desc *calib; in tda998x_cec_hook_init() local
521 calib = gpiod_get(&priv->hdmi->dev, "nxp,calib", GPIOD_ASIS); in tda998x_cec_hook_init()
522 if (IS_ERR(calib)) { in tda998x_cec_hook_init()
524 PTR_ERR(calib)); in tda998x_cec_hook_init()
[all …]
/linux-6.12.1/drivers/phy/tegra/
Dxusb-tegra186.c268 struct tegra_xusb_fuse_calibration calib; member
627 value |= HS_SQUELCH_LEVEL(priv->calib.hs_squelch); in tegra186_utmi_bias_pad_power_on()
889 hs_current_level = (int)priv->calib.hs_curr_level[index] + in tegra186_utmi_phy_power_on()
899 value |= HS_CURR_LEVEL(priv->calib.hs_curr_level[index]); in tegra186_utmi_phy_power_on()
906 value |= TERM_RANGE_ADJ(priv->calib.hs_term_range_adj); in tegra186_utmi_phy_power_on()
908 value |= RPD_CTRL(priv->calib.rpd_ctrl); in tegra186_utmi_phy_power_on()
1451 padctl->calib.hs_curr_level = level; in tegra186_xusb_read_fuse_calibration()
1453 padctl->calib.hs_squelch = (value >> HS_SQUELCH_SHIFT) & in tegra186_xusb_read_fuse_calibration()
1455 padctl->calib.hs_term_range_adj = (value >> HS_TERM_RANGE_ADJ_SHIFT) & in tegra186_xusb_read_fuse_calibration()
1466 padctl->calib.rpd_ctrl = (value >> RPD_CTRL_SHIFT) & RPD_CTRL_MASK; in tegra186_xusb_read_fuse_calibration()
/linux-6.12.1/Documentation/devicetree/bindings/input/
Dmicrochip,cap11xx.yaml110 microchip,calib-sensitivity:
176 microchip,calib-sensitivity: false
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/dvm/
DMakefile5 iwldvm-objs += lib.o calib.o tt.o sta.o rx.o eeprom.o
/linux-6.12.1/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c170 WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY(calib, fail_count,
172 WL18XX_DEBUGFS_FWSTATS_FILE(calib, calib_count, "%u");
547 DEBUGFS_FWSTATS_ADD(calib, fail_count); in wl18xx_debugfs_add_files()
549 DEBUGFS_FWSTATS_ADD(calib, calib_count); in wl18xx_debugfs_add_files()
/linux-6.12.1/drivers/net/wireless/intel/iwlegacy/
DMakefile10 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o
/linux-6.12.1/Documentation/devicetree/bindings/nvmem/
Dsprd-efuse.txt24 thermal_calib: calib@10 {
Damlogic,meson6-efuse.yaml55 temperature_calib: calib@1f4 {
Dmicrochip,sama7g5-otpc.yaml46 temperature_calib: calib@1 {

12345