Home
last modified time | relevance | path

Searched refs:calib (Results 1 – 25 of 67) sorted by relevance

123

/linux-6.1.9/drivers/iio/chemical/
Dbme680_core.c109 struct bme680_calib *calib) in bme680_read_calib() argument
123 calib->par_t1 = le16_to_cpu(buf); in bme680_read_calib()
131 calib->par_t2 = le16_to_cpu(buf); in bme680_read_calib()
138 calib->par_t3 = tmp; in bme680_read_calib()
147 calib->par_p1 = le16_to_cpu(buf); in bme680_read_calib()
155 calib->par_p2 = le16_to_cpu(buf); in bme680_read_calib()
162 calib->par_p3 = tmp; in bme680_read_calib()
170 calib->par_p4 = le16_to_cpu(buf); in bme680_read_calib()
178 calib->par_p5 = le16_to_cpu(buf); in bme680_read_calib()
185 calib->par_p6 = tmp; in bme680_read_calib()
[all …]
/linux-6.1.9/drivers/iio/pressure/
Dbmp280-core.c144 } calib; member
290 struct bmp280_calib *calib = &data->calib.bmp280; in bmp280_read_calib() local
307 calib->T1 = le16_to_cpu(data->bmp280_cal_buf[T1]); in bmp280_read_calib()
308 calib->T2 = le16_to_cpu(data->bmp280_cal_buf[T2]); in bmp280_read_calib()
309 calib->T3 = le16_to_cpu(data->bmp280_cal_buf[T3]); in bmp280_read_calib()
312 calib->P1 = le16_to_cpu(data->bmp280_cal_buf[P1]); in bmp280_read_calib()
313 calib->P2 = le16_to_cpu(data->bmp280_cal_buf[P2]); in bmp280_read_calib()
314 calib->P3 = le16_to_cpu(data->bmp280_cal_buf[P3]); in bmp280_read_calib()
315 calib->P4 = le16_to_cpu(data->bmp280_cal_buf[P4]); in bmp280_read_calib()
316 calib->P5 = le16_to_cpu(data->bmp280_cal_buf[P5]); in bmp280_read_calib()
[all …]
/linux-6.1.9/drivers/thermal/qcom/
Dtsens-v0_1.c357 u32 *calib, *bkp; in calibrate_8974() local
360 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
361 if (IS_ERR(calib)) in calibrate_8974()
362 return PTR_ERR(calib); in calibrate_8974()
366 kfree(calib); in calibrate_8974()
374 mode = (calib[4] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; in calibrate_8974()
375 mode |= (calib[5] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; in calibrate_8974()
385 p2[5] = (calib[4] & S5_P2_BKP_MASK) >> S5_P2_BKP_SHIFT; in calibrate_8974()
386 p2[6] = (calib[5] & S6_P2_BKP_MASK); in calibrate_8974()
387 p2[7] = (calib[5] & S7_P2_BKP_MASK) >> S7_P2_BKP_SHIFT; in calibrate_8974()
[all …]
/linux-6.1.9/drivers/thermal/tegra/
Dtegra30-tsensor.c88 struct tegra_tsensor_calibration_data calib; member
199 c1 = DIV_ROUND_CLOSEST(ts->calib.a * counter + ts->calib.b, 1000000); in tegra_tsensor_get_temp()
201 c2 = DIV_ROUND_CLOSEST(ts->calib.p, c1); in tegra_tsensor_get_temp()
202 c3 = c1 * ts->calib.m; in tegra_tsensor_get_temp()
203 c4 = ts->calib.n; in tegra_tsensor_get_temp()
214 c1 = DIV_ROUND_CLOSEST(ts->calib.p - temp * 1000, ts->calib.m); in tegra_tsensor_temp_to_counter()
215 c2 = -ts->calib.r - int_sqrt(ts->calib.r * ts->calib.r - c1); in tegra_tsensor_temp_to_counter()
217 return DIV_ROUND_CLOSEST(c2 * 1000000 - ts->calib.b, ts->calib.a); in tegra_tsensor_temp_to_counter()
483 ts->calib.a = DIV_ROUND_CLOSEST((t2_90C - t1_25C) * 1000000, in tegra_tsensor_nvmem_setup()
486 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()
Dsoctherm.h138 u32 *calib);
/linux-6.1.9/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.1.9/Documentation/devicetree/bindings/power/supply/
Dsc27xx-fg.yaml47 sprd,calib-resistance-micro-ohms:
60 - sprd,calib-resistance-micro-ohms
96 sprd,calib-resistance-micro-ohms = <21500>;
/linux-6.1.9/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()
Dtsl2563.c353 static inline int tsl2563_calib_to_sysfs(u32 calib) in tsl2563_calib_to_sysfs() argument
355 return (int) (((calib * CALIB_BASE_SYSFS) + in tsl2563_calib_to_sysfs()
434 static u32 tsl2563_calib_adc(u32 adc, u32 calib) in tsl2563_calib_adc() argument
438 scaled *= calib; in tsl2563_calib_adc()
/linux-6.1.9/Documentation/devicetree/bindings/thermal/
Dimx-thermal.yaml39 - const: calib
78 tempmon_calib: calib@38 {
99 nvmem-cell-names = "calib", "temp_grade";
Dqcom-tsens.yaml88 - const: calib
169 nvmem-cell-names = "calib", "calib_backup";
187 nvmem-cell-names = "calib", "calib_sel";
205 nvmem-cell-names = "calib";
/linux-6.1.9/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.1.9/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.1.9/Documentation/devicetree/bindings/clock/
Dqcom,gcc-apq8064.yaml65 - const: calib
90 nvmem-cell-names = "calib", "calib_backup";
/linux-6.1.9/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi73 fgu_calib: calib@6 {
78 adc_big_scale: calib@24 {
82 adc_small_scale: calib@26 {
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/
DMakefile10 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
DMakefile5 iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
/linux-6.1.9/drivers/phy/tegra/
Dxusb-tegra186.c255 struct tegra_xusb_fuse_calibration calib; member
603 value |= HS_SQUELCH_LEVEL(priv->calib.hs_squelch); in tegra186_utmi_bias_pad_power_on()
834 hs_current_level = (int)priv->calib.hs_curr_level[index] + in tegra186_utmi_phy_power_on()
844 value |= HS_CURR_LEVEL(priv->calib.hs_curr_level[index]); in tegra186_utmi_phy_power_on()
851 value |= TERM_RANGE_ADJ(priv->calib.hs_term_range_adj); in tegra186_utmi_phy_power_on()
853 value |= RPD_CTRL(priv->calib.rpd_ctrl); in tegra186_utmi_phy_power_on()
1397 padctl->calib.hs_curr_level = level; in tegra186_xusb_read_fuse_calibration()
1399 padctl->calib.hs_squelch = (value >> HS_SQUELCH_SHIFT) & in tegra186_xusb_read_fuse_calibration()
1401 padctl->calib.hs_term_range_adj = (value >> HS_TERM_RANGE_ADJ_SHIFT) & in tegra186_xusb_read_fuse_calibration()
1412 padctl->calib.rpd_ctrl = (value >> RPD_CTRL_SHIFT) & RPD_CTRL_MASK; in tegra186_xusb_read_fuse_calibration()
/linux-6.1.9/Documentation/devicetree/bindings/nvmem/
Dsprd-efuse.txt24 thermal_calib: calib@10 {
Dmicrochip,sama7g5-otpc.yaml45 temperature_calib: calib@1 {
Dsc27xx-efuse.txt37 thermal_calib: calib@10 {
/linux-6.1.9/include/linux/iio/common/
Dcros_ec_sensors_core.h76 } calib[CROS_EC_SENSOR_MAX_AXIS]; member
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/
Dlocation.h733 __le16 calib[IWL_TOF_BW_NUM]; member
786 __le16 calib[IWL_TOF_BW_NUM]; member
855 __le16 calib[IWL_TOF_BW_NUM]; member
936 __le16 calib[IWL_TOF_BW_NUM]; member
/linux-6.1.9/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()

123