Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/iio/pressure/
Dbmp280-core.c93 } calib; member
151 struct bmp280_calib *calib, in bmp280_read_calib() argument
174 calib->T1 = le16_to_cpu(t_buf[T1]); in bmp280_read_calib()
175 calib->T2 = le16_to_cpu(t_buf[T2]); in bmp280_read_calib()
176 calib->T3 = le16_to_cpu(t_buf[T3]); in bmp280_read_calib()
190 calib->P1 = le16_to_cpu(p_buf[P1]); in bmp280_read_calib()
191 calib->P2 = le16_to_cpu(p_buf[P2]); in bmp280_read_calib()
192 calib->P3 = le16_to_cpu(p_buf[P3]); in bmp280_read_calib()
193 calib->P4 = le16_to_cpu(p_buf[P4]); in bmp280_read_calib()
194 calib->P5 = le16_to_cpu(p_buf[P5]); in bmp280_read_calib()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/qcom/
Dtsens-v0_1.c324 u32 *calib, *bkp; in calibrate_8974() local
327 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
328 if (IS_ERR(calib)) in calibrate_8974()
329 return PTR_ERR(calib); in calibrate_8974()
333 kfree(calib); in calibrate_8974()
341 mode = (calib[4] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; in calibrate_8974()
342 mode |= (calib[5] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; in calibrate_8974()
352 p2[5] = (calib[4] & S5_P2_BKP_MASK) >> S5_P2_BKP_SHIFT; in calibrate_8974()
353 p2[6] = (calib[5] & S6_P2_BKP_MASK); in calibrate_8974()
354 p2[7] = (calib[5] & S7_P2_BKP_MASK) >> S7_P2_BKP_SHIFT; in calibrate_8974()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors.c66 st->core.calib[i].offset = in cros_ec_sensors_read()
69 *val = st->core.calib[idx].offset; in cros_ec_sensors_read()
88 st->core.calib[i].scale = in cros_ec_sensors_read()
91 *val = st->core.calib[idx].scale >> 15; in cros_ec_sensors_read()
92 *val2 = ((st->core.calib[idx].scale & 0x7FFF) * 1000000LL) / in cros_ec_sensors_read()
162 st->core.calib[idx].offset = val; in cros_ec_sensors_write()
170 st->core.calib[i].offset; in cros_ec_sensors_write()
177 st->core.calib[idx].scale = val; in cros_ec_sensors_write()
185 st->core.calib[i].scale; in cros_ec_sensors_write()
/kernel/linux/linux-5.10/drivers/thermal/tegra/
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);
/kernel/linux/linux-5.10/drivers/iio/light/
Dcros_ec_light_prox.c89 st->core.calib[0].offset = in cros_ec_light_prox_read()
92 *val = st->core.calib[idx].offset; in cros_ec_light_prox_read()
136 st->core.calib[idx].offset = val; in cros_ec_light_prox_write()
141 st->core.calib[0].offset; in cros_ec_light_prox_write()
Dtsl2563.c351 static inline int tsl2563_calib_to_sysfs(u32 calib) in tsl2563_calib_to_sysfs() argument
353 return (int) (((calib * CALIB_BASE_SYSFS) + in tsl2563_calib_to_sysfs()
432 static u32 tsl2563_calib_adc(u32 adc, u32 calib) in tsl2563_calib_adc() argument
436 scaled *= calib; in tsl2563_calib_adc()
/kernel/linux/linux-5.10/drivers/ata/
Dahci_tegra.c192 struct sata_pad_calibration calib; in tegra124_ahci_init() local
201 calib = tegra124_pad_calibration[val & FUSE_SATA_CALIB_MASK]; in tegra124_ahci_init()
209 val |= calib.gen1_tx_amp << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_AMP_SHIFT; in tegra124_ahci_init()
210 val |= calib.gen1_tx_peak << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_PEAK_SHIFT; in tegra124_ahci_init()
218 val |= calib.gen2_tx_amp << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_AMP_SHIFT; in tegra124_ahci_init()
219 val |= calib.gen2_tx_peak << T_SATA0_CHX_PHY_CTRL1_GEN1_TX_PEAK_SHIFT; in tegra124_ahci_init()
/kernel/linux/linux-5.10/drivers/phy/tegra/
Dxusb-tegra186.c136 struct tegra_xusb_fuse_calibration calib; member
216 value |= HS_SQUELCH_LEVEL(priv->calib.hs_squelch); in tegra186_utmi_bias_pad_power_on()
443 hs_current_level = (int)priv->calib.hs_curr_level[index] + in tegra186_utmi_phy_power_on()
453 value |= HS_CURR_LEVEL(priv->calib.hs_curr_level[index]); in tegra186_utmi_phy_power_on()
460 value |= TERM_RANGE_ADJ(priv->calib.hs_term_range_adj); in tegra186_utmi_phy_power_on()
462 value |= RPD_CTRL(priv->calib.rpd_ctrl); in tegra186_utmi_phy_power_on()
892 padctl->calib.hs_curr_level = level; in tegra186_xusb_read_fuse_calibration()
894 padctl->calib.hs_squelch = (value >> HS_SQUELCH_SHIFT) & in tegra186_xusb_read_fuse_calibration()
896 padctl->calib.hs_term_range_adj = (value >> HS_TERM_RANGE_ADJ_SHIFT) & in tegra186_xusb_read_fuse_calibration()
907 padctl->calib.rpd_ctrl = (value >> RPD_CTRL_SHIFT) & RPD_CTRL_MASK; in tegra186_xusb_read_fuse_calibration()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dsc27xx-fg.txt16 - sprd,calib-resistance-micro-ohms: Specify the real resistance of coulomb counter
57 sprd,calib-resistance-micro-ohms = <21500>;
/kernel/linux/linux-5.10/drivers/gpu/drm/i2c/
Dtda998x_drv.c86 struct gpio_desc *calib; member
494 struct gpio_desc *calib = priv->calib; in tda998x_cec_calibration() local
499 gpiod_direction_output(calib, 1); in tda998x_cec_calibration()
503 gpiod_set_value(calib, 0); in tda998x_cec_calibration()
505 gpiod_set_value(calib, 1); in tda998x_cec_calibration()
509 gpiod_direction_input(calib); in tda998x_cec_calibration()
518 struct gpio_desc *calib; in tda998x_cec_hook_init() local
520 calib = gpiod_get(&priv->hdmi->dev, "nxp,calib", GPIOD_ASIS); in tda998x_cec_hook_init()
521 if (IS_ERR(calib)) { in tda998x_cec_hook_init()
523 PTR_ERR(calib)); in tda998x_cec_hook_init()
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/sprd/
Dsc2731.dtsi73 fgu_calib: calib@6 {
78 adc_big_scale: calib@24 {
82 adc_small_scale: calib@26 {
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
DMakefile10 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
DMakefile5 iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/nvmem/
Dsprd-efuse.txt24 thermal_calib: calib@10 {
Dmtk-efuse.txt25 thermal_calibration: calib@528 {
Dsc27xx-efuse.txt37 thermal_calib: calib@10 {
/kernel/linux/linux-5.10/include/linux/iio/common/
Dcros_ec_sensors_core.h78 } calib[CROS_EC_SENSOR_MAX_AXIS]; member
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c170 WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY(calib, fail_count,
172 WL18XX_DEBUGFS_FWSTATS_FILE(calib, calib_count, "%u");
553 DEBUGFS_FWSTATS_ADD(calib, fail_count); in wl18xx_debugfs_add_files()
555 DEBUGFS_FWSTATS_ADD(calib, calib_count); in wl18xx_debugfs_add_files()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dnvm.c279 const __le16 *sw, *calib, *regulatory, *mac_override, *phy_sku; in iwl_parse_nvm_sections() local
321 calib = (const __le16 *)sections[NVM_SECTION_TYPE_CALIBRATION].data; in iwl_parse_nvm_sections()
330 return iwl_parse_nvm_data(mvm->trans, mvm->cfg, mvm->fw, hw, sw, calib, in iwl_parse_nvm_sections()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
DMakefile36 calib.o \
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/bridge/
Dtda998x.txt30 - nxp,calib-gpios: calibration GPIO, which must correspond with the
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/
Dlocation.h650 __le16 calib[IWL_TOF_BW_NUM]; member
703 __le16 calib[IWL_TOF_BW_NUM]; member
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dam335x-boneblack-common.dtsi93 nxp,calib-gpios = <&gpio1 25 0>;

123