Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Dstts751.c202 s32 hwval; in stts751_set_temp_reg16() local
205 hwval = stts751_to_hw(temp); in stts751_set_temp_reg16()
207 ret = i2c_smbus_write_byte_data(priv->client, hreg, hwval >> 8); in stts751_set_temp_reg16()
211 return i2c_smbus_write_byte_data(priv->client, lreg, hwval & 0xff); in stts751_set_temp_reg16()
216 s32 hwval; in stts751_set_temp_reg8() local
218 hwval = stts751_to_hw(temp); in stts751_set_temp_reg8()
219 return i2c_smbus_write_byte_data(priv->client, reg, hwval >> 8); in stts751_set_temp_reg8()
/linux/drivers/iio/imu/bno055/
H A 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()