Home
last modified time | relevance | path

Searched refs:hwval (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/hwmon/
Dstts751.c203 s32 hwval; in stts751_set_temp_reg16() local
206 hwval = stts751_to_hw(temp); in stts751_set_temp_reg16()
208 ret = i2c_smbus_write_byte_data(priv->client, hreg, hwval >> 8); in stts751_set_temp_reg16()
212 return i2c_smbus_write_byte_data(priv->client, lreg, hwval & 0xff); in stts751_set_temp_reg16()
217 s32 hwval; in stts751_set_temp_reg8() local
219 hwval = stts751_to_hw(temp); in stts751_set_temp_reg8()
220 return i2c_smbus_write_byte_data(priv->client, reg, hwval >> 8); in stts751_set_temp_reg8()
/Linux-v6.6/drivers/iio/imu/bno055/
Dbno055.c554 int hwval, idx; in bno055_get_regmask() local
558 ret = regmap_read(priv->regmap, reg, &hwval); in bno055_get_regmask()
562 idx = (hwval & mask) >> shift; in bno055_get_regmask()
588 int hwval; in bno055_set_regmask() local
637 hwval = i; in bno055_set_regmask()
643 hwval = attr->hw_xlate[hwval]; in bno055_set_regmask()
649 ret = regmap_update_bits(priv->regmap, reg, mask, hwval << shift); in bno055_set_regmask()