/linux-6.1.9/drivers/iio/chemical/ |
D | bme680_core.c | 109 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/ |
D | bmp280-core.c | 144 } 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/ |
D | tsens-v0_1.c | 357 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/ |
D | tegra30-tsensor.c | 88 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 …]
|
D | soctherm-fuse.c | 112 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()
|
D | soctherm.h | 138 u32 *calib);
|
/linux-6.1.9/drivers/iio/common/cros_ec_sensors/ |
D | cros_ec_sensors.c | 67 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/ |
D | sc27xx-fg.yaml | 47 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/ |
D | cros_ec_light_prox.c | 90 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()
|
D | tsl2563.c | 353 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/ |
D | imx-thermal.yaml | 39 - const: calib 78 tempmon_calib: calib@38 { 99 nvmem-cell-names = "calib", "temp_grade";
|
D | qcom-tsens.yaml | 88 - 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/ |
D | ahci_tegra.c | 197 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/ |
D | tda998x_drv.c | 87 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/ |
D | qcom,gcc-apq8064.yaml | 65 - const: calib 90 nvmem-cell-names = "calib", "calib_backup";
|
/linux-6.1.9/arch/arm64/boot/dts/sprd/ |
D | sc2731.dtsi | 73 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/ |
D | Makefile | 10 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | Makefile | 5 iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
|
/linux-6.1.9/drivers/phy/tegra/ |
D | xusb-tegra186.c | 255 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/ |
D | sprd-efuse.txt | 24 thermal_calib: calib@10 {
|
D | microchip,sama7g5-otpc.yaml | 45 temperature_calib: calib@1 {
|
D | sc27xx-efuse.txt | 37 thermal_calib: calib@10 {
|
/linux-6.1.9/include/linux/iio/common/ |
D | cros_ec_sensors_core.h | 76 } calib[CROS_EC_SENSOR_MAX_AXIS]; member
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | location.h | 733 __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/ |
D | debugfs.c | 170 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()
|