Home
last modified time | relevance | path

Searched +defs:val +defs:temp (Results 1 – 25 of 557) sorted by relevance

12345678910>>...23

/linux-6.14.4/tools/iio/
Diio_utils.c294 struct iio_channel_info temp; in bsort_channel_array_by_index() local
652 static int _write_sysfs_int(const char *filename, const char *basedir, int val, in _write_sysfs_int()
658 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local
729 int write_sysfs_int(const char *filename, const char *basedir, int val) in write_sysfs_int()
744 int val) in write_sysfs_int_and_verify()
750 const char *val, int verify) in _write_sysfs_string()
754 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string() local
830 const char *val) in write_sysfs_string_and_verify()
844 const char *val) in write_sysfs_string()
861 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint() local
[all …]
/linux-6.14.4/drivers/net/dsa/b53/
Db53_mdio.c80 static int b53_mdio_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val) in b53_mdio_read8()
95 static int b53_mdio_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val) in b53_mdio_read16()
109 static int b53_mdio_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val) in b53_mdio_read32()
125 static int b53_mdio_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_mdio_read48()
128 u64 temp = 0; in b53_mdio_read48() local
147 static int b53_mdio_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_mdio_read64()
150 u64 temp = 0; in b53_mdio_read64() local
201 u32 temp = value; in b53_mdio_write32() local
220 u64 temp = value; in b53_mdio_write48() local
239 u64 temp = value; in b53_mdio_write64() local
/linux-6.14.4/drivers/hwmon/
Dlm92.c66 static inline s16 TEMP_TO_REG(long val, int resolution) in TEMP_TO_REG()
85 static int lm92_temp_read(struct lm92_data *data, u32 attr, int channel, long *val) in lm92_temp_read()
89 u32 temp; in lm92_temp_read() local
151 static int lm92_chip_read(struct lm92_data *data, u32 attr, long *val) in lm92_chip_read()
153 u32 temp; in lm92_chip_read() local
170 int channel, long *val) in lm92_read()
184 static int lm92_temp_write(struct lm92_data *data, u32 attr, long val) in lm92_temp_write()
188 u32 temp; in lm92_temp_write() local
218 u32 attr, int channel, long val) in lm92_write()
333 static int lm92_reg_read(void *context, unsigned int reg, unsigned int *val) in lm92_reg_read()
[all …]
Dspd5118.c84 int temp = sign_extend32(reg >> 2, 10); in spd5118_temp_from_reg() local
89 static u16 spd5118_temp_to_reg(long temp) in spd5118_temp_to_reg()
95 static int spd5118_read_temp(struct regmap *regmap, u32 attr, long *val) in spd5118_read_temp()
99 u16 temp; in spd5118_read_temp() local
131 static int spd5118_read_alarm(struct regmap *regmap, u32 attr, long *val) in spd5118_read_alarm()
162 static int spd5118_read_enable(struct regmap *regmap, long *val) in spd5118_read_enable()
175 u32 attr, int channel, long *val) in spd5118_read()
201 static int spd5118_write_temp(struct regmap *regmap, u32 attr, long val) in spd5118_write_temp()
204 u16 temp; in spd5118_write_temp() local
231 static int spd5118_write_enable(struct regmap *regmap, long val) in spd5118_write_enable()
[all …]
Dadt7470.c155 s8 temp[ADT7470_TEMP_COUNT]; member
180 unsigned int *val) in adt7470_read_word_data()
195 unsigned int val) in adt7470_write_word_data()
309 unsigned int val; in adt7470_update_sensors() local
380 unsigned int val; in adt7470_update_limits() local
489 long temp; in auto_update_interval_store() local
520 long temp; in num_temp_sensors_store() local
536 static int adt7470_temp_read(struct device *dev, u32 attr, int channel, long *val) in adt7470_temp_read()
563 static int adt7470_temp_write(struct device *dev, u32 attr, int channel, long val) in adt7470_temp_write()
624 static int adt7470_fan_read(struct device *dev, u32 attr, int channel, long *val) in adt7470_fan_read()
[all …]
Dcros_ec_hwmon.c39 static int cros_ec_hwmon_read_temp(struct cros_ec_device *cros_ec, u8 index, u8 *temp) in cros_ec_hwmon_read_temp()
60 static bool cros_ec_hwmon_is_error_temp(u8 temp) in cros_ec_hwmon_is_error_temp()
68 static long cros_ec_hwmon_temp_to_millicelsius(u8 temp) in cros_ec_hwmon_temp_to_millicelsius()
74 u32 attr, int channel, long *val) in cros_ec_hwmon_read()
79 u8 temp; in cros_ec_hwmon_read() local
196 u8 temp; in cros_ec_hwmon_probe_temp_sensors() local
Dk8temp.c19 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) argument
87 u32 attr, int channel, long *val) in k8temp_read()
92 u32 temp; in k8temp_read() local
136 u32 temp; in k8temp_probe() local
Dtmp401.c143 static int tmp401_reg_read(void *context, unsigned int reg, unsigned int *val) in tmp401_reg_read()
228 static int tmp401_reg_write(void *context, unsigned int reg, unsigned int val) in tmp401_reg_write()
269 int temp = reg; in tmp401_register_to_temp() local
277 static u16 tmp401_temp_to_register(long temp, bool extended, int zbits) in tmp401_temp_to_register()
307 static int tmp401_temp_read(struct device *dev, u32 attr, int channel, long *val) in tmp401_temp_read()
353 long val) in tmp401_temp_write()
358 int reg, ret, temp; in tmp401_temp_write() local
393 static int tmp401_chip_read(struct device *dev, u32 attr, int channel, long *val) in tmp401_chip_read()
416 static int tmp401_set_convrate(struct regmap *regmap, long val) in tmp401_set_convrate()
433 static int tmp401_chip_write(struct device *dev, u32 attr, int channel, long val) in tmp401_chip_write()
[all …]
Dstts751.c94 int temp; member
111 static s32 stts751_to_hw(int val) in stts751_to_hw()
199 static int stts751_set_temp_reg16(struct stts751_priv *priv, int temp, in stts751_set_temp_reg16()
214 static int stts751_set_temp_reg8(struct stts751_priv *priv, int temp, u8 reg) in stts751_set_temp_reg8()
222 static int stts751_read_reg16(struct stts751_priv *priv, int *temp, in stts751_read_reg16()
240 static int stts751_read_reg8(struct stts751_priv *priv, int *temp, u8 reg) in stts751_read_reg8()
436 long temp; in therm_store() local
478 long temp; in hyst_store() local
526 long temp; in max_store() local
560 long temp; in min_store() local
[all …]
/linux-6.14.4/drivers/thermal/
Drockchip_thermal.c264 int temp; member
550 int temp) in rk_tsadcv2_temp_to_code()
602 u32 code, int *temp) in rk_tsadcv2_code_to_temp()
840 u32 val; in rk_tsadcv2_irq_ack() local
848 u32 val; in rk_tsadcv3_irq_ack() local
856 u32 val; in rk_tsadcv4_irq_ack() local
867 u32 val; in rk_tsadcv2_control() local
889 u32 val; in rk_tsadcv3_control() local
902 u32 val; in rk_tsadcv4_control() local
913 int chn, void __iomem *regs, int *temp) in rk_tsadcv2_get_temp()
[all …]
Dthermal-generic-adc.c26 static int gadc_thermal_adc_to_temp(struct gadc_thermal_info *gti, int val) in gadc_thermal_adc_to_temp()
28 int temp, temp_hi, temp_lo, adc_hi, adc_lo; in gadc_thermal_adc_to_temp() local
57 static int gadc_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in gadc_thermal_get_temp()
60 int val; in gadc_thermal_get_temp() local
/linux-6.14.4/drivers/gpio/
Dgpio-loongson.c42 u32 val; in loongson_gpio_get_value() local
54 u32 val; in loongson_gpio_set_value() local
68 u32 temp; in loongson_gpio_direction_input() local
82 u32 temp; in loongson_gpio_direction_output() local
/linux-6.14.4/drivers/nvme/host/
Dhwmon.c20 long *temp) in nvme_get_temp_thresh()
41 long temp) in nvme_set_temp_thresh()
67 u32 attr, int channel, long *val) in nvme_hwmon_read()
71 int temp; in nvme_hwmon_read() local
116 u32 attr, int channel, long val) in nvme_hwmon_write()
/linux-6.14.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_i2c.c45 uint32_t temp; in amdgpu_i2c_pre_xfer() local
87 uint32_t temp; in amdgpu_i2c_post_xfer() local
106 uint32_t val; in amdgpu_i2c_get_clock() local
121 uint32_t val; in amdgpu_i2c_get_data() local
135 uint32_t val; in amdgpu_i2c_set_clock() local
148 uint32_t val; in amdgpu_i2c_set_data() local
260 u8 *val) in amdgpu_i2c_get_byte()
296 u8 val) in amdgpu_i2c_put_byte()
321 u8 val = 0; in amdgpu_i2c_router_select_ddc_port() local
352 u8 val; in amdgpu_i2c_router_select_cd_port() local
/linux-6.14.4/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_temp.c16 static int inv_icm42600_temp_read(struct inv_icm42600_state *st, int16_t *temp) in inv_icm42600_temp_read()
48 int *val, int *val2, long mask) in inv_icm42600_temp_read_raw()
51 int16_t temp; in inv_icm42600_temp_read_raw() local
/linux-6.14.4/sound/pci/au88x0/
Dau88x0_synth.c30 int temp; in vortex_wt_setstereo() local
42 int temp; in vortex_wt_setdsout() local
57 int temp; in vortex_wt_allocroute() local
183 u32 val) in vortex_wt_SetReg()
/linux-6.14.4/drivers/net/ethernet/smsc/
Dsmsc911x.c190 u32 val) in __smsc911x_reg_write()
207 __smsc911x_reg_write_shift(struct smsc911x_data *pdata, u32 reg, u32 val) in __smsc911x_reg_write_shift()
226 u32 val) in smsc911x_reg_write()
478 u32 val; in smsc911x_mac_complete() local
495 unsigned int temp; in smsc911x_mac_read() local
522 unsigned int offset, u32 val) in smsc911x_mac_write()
524 unsigned int temp; in smsc911x_mac_write() local
592 u16 val) in smsc911x_mii_write()
817 unsigned int temp; in smsc911x_phy_reset() local
844 unsigned int i, val; in smsc911x_phy_loopbacktest() local
[all …]
/linux-6.14.4/drivers/thermal/broadcom/
Dbrcmstb_thermal.c136 int temp, bool low) in avs_tmon_temp_to_code()
153 static int brcmstb_get_temp(struct thermal_zone_device *tz, int *temp) in brcmstb_get_temp()
156 u32 val; in brcmstb_get_temp() local
179 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() local
195 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp() local
205 int temp) in avs_tmon_set_trip_temp()
208 u32 val, orig; in avs_tmon_set_trip_temp() local
227 u32 val; in avs_tmon_get_intr_temp() local
/linux-6.14.4/drivers/iio/pressure/
Dms5611_core.c105 s32 *temp, s32 *pressure) in ms5611_read_temp_and_pressure()
121 s32 *temp, s32 *pressure) in ms5611_temp_and_pressure_compensate()
157 s32 *temp, s32 *pressure) in ms5607_temp_and_pressure_compensate()
238 int *val, int *val2, long mask) in ms5611_read_raw()
241 s32 temp, pressure; in ms5611_read_raw() local
307 int val, int val2, long mask) in ms5611_write_raw()
/linux-6.14.4/drivers/i2c/busses/
Di2c-imx.c131 u16 val; member
366 static inline void imx_i2c_write_reg(unsigned int val, in imx_i2c_write_reg()
380 unsigned int temp; in i2c_imx_clear_irq() local
539 unsigned int temp; in i2c_imx_bus_busy() local
697 unsigned int temp = 0; in i2c_imx_start() local
730 unsigned int temp = 0; in i2c_imx_stop() local
766 unsigned int temp; in i2c_imx_enable_bus_idle() local
775 enum i2c_slave_event event, u8 *val) in i2c_imx_slave_event()
783 u8 val = 0; in i2c_imx_slave_finish_op() local
906 int temp; in i2c_imx_slave_init() local
[all …]
/linux-6.14.4/drivers/thermal/samsung/
Dexynos_tmu.c206 static int temp_to_code(struct exynos_tmu_data *data, u8 temp) in temp_to_code()
284 int ret, temp; in exynos_thermal_zone_configure() local
352 int bit_off, u8 temp) in exynos_tmu_update_temp()
367 static void exynos4210_tmu_set_low_temp(struct exynos_tmu_data *data, u8 temp) in exynos4210_tmu_set_low_temp()
375 static void exynos4210_tmu_set_high_temp(struct exynos_tmu_data *data, u8 temp) in exynos4210_tmu_set_high_temp()
394 static void exynos4210_tmu_set_crit_temp(struct exynos_tmu_data *data, u8 temp) in exynos4210_tmu_set_crit_temp()
417 static void exynos4412_tmu_set_low_temp(struct exynos_tmu_data *data, u8 temp) in exynos4412_tmu_set_low_temp()
424 static void exynos4412_tmu_set_high_temp(struct exynos_tmu_data *data, u8 temp) in exynos4412_tmu_set_high_temp()
437 static void exynos4412_tmu_set_crit_temp(struct exynos_tmu_data *data, u8 temp) in exynos4412_tmu_set_crit_temp()
471 static void exynos5433_tmu_set_low_temp(struct exynos_tmu_data *data, u8 temp) in exynos5433_tmu_set_low_temp()
[all …]
/linux-6.14.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_hw.c286 u32 val; in __qlcnic_set_win_base() local
593 u32 val; in qlcnic_83xx_setup_mbx_intr() local
630 u32 val = QLCRDX(adapter->ahw, QLCNIC_INFORMANT); in qlcnic_83xx_get_func_no() local
637 u32 val, limit = 0; in qlcnic_83xx_cam_lock() local
745 u32 val; in qlcnic_83xx_enable_mbx_interrupt() local
899 u32 temp; in qlcnic_83xx_alloc_mbx_args() local
1146 u32 temp = 0; in qlcnic_83xx_del_rx_ctx() local
1299 u32 temp = 0; in qlcnic_83xx_del_tx_ctx() local
1322 u32 *buf, intr_mask, temp = 0; in qlcnic_83xx_create_tx_ctx() local
1696 u32 temp; in qlcnic_83xx_setup_link_event() local
[all …]
/linux-6.14.4/drivers/macintosh/
Dtherm_windtunnel.c62 int temp; member
76 int temp; member
94 print_temp( const char *s, int temp ) in print_temp()
156 int val = (fan_setting << 3) | 7; in tune_fan() local
172 int temp, i, level, casetemp; in poll_temp() local
212 int val; in setup_hardware() local
376 int hyst_temp, os_temp, temp; in attach_thermostat() local
/linux-6.14.4/drivers/net/phy/aquantia/
Daquantia_hwmon.c44 int temp = phy_read_mmd(phydev, MDIO_MMD_VEND1, reg); in aqr_hwmon_get() local
57 int temp; in aqr_hwmon_set() local
70 int val = phy_read_mmd(phydev, MDIO_MMD_VEND1, reg); in aqr_hwmon_test_bit() local
80 int val = aqr_hwmon_test_bit(phydev, VEND1_GENERAL_STAT1, bit); in aqr_hwmon_status1() local
/linux-6.14.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hwmon.c46 static int bnxt_hwrm_temp_query(struct bnxt *bp, u8 *temp) in bnxt_hwrm_temp_query()
101 int channel, long *val) in bnxt_hwmon_read()
104 u8 temp = 0; in bnxt_hwmon_read() local
171 u8 temp; in temp1_shutdown_alarm_show() local

12345678910>>...23