Searched refs:masked_reg (Results 1 – 2 of 2) sorted by relevance
242 u8 masked_reg; in stk8312_set_sample_rate() local259 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() local298 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()
184 u8 masked_reg; in stk8ba50_set_power() local192 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()