Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/iio/accel/
Dstk8312.c242 u8 masked_reg; in stk8312_set_sample_rate() local
259 masked_reg = (ret & (~STK8312_SR_MASK)) | rate; in stk8312_set_sample_rate()
261 ret = i2c_smbus_write_byte_data(client, STK8312_REG_SR, masked_reg); in stk8312_set_sample_rate()
279 u8 masked_reg; in stk8312_set_range() local
298 masked_reg = ret & (~STK8312_RNG_MASK); in stk8312_set_range()
299 masked_reg |= range << STK8312_RNG_SHIFT; in stk8312_set_range()
301 ret = i2c_smbus_write_byte_data(client, STK8312_REG_STH, masked_reg); in stk8312_set_range()
Dstk8ba50.c184 u8 masked_reg; in stk8ba50_set_power() local
192 masked_reg = ret | STK8BA50_MODE_POWERBIT; in stk8ba50_set_power()
194 masked_reg = ret & (~STK8BA50_MODE_POWERBIT); in stk8ba50_set_power()
197 masked_reg); in stk8ba50_set_power()