Lines Matching refs:shadow
146 uint8_t shadow[MAX_REGS]; member
189 tcs3400_chip.shadow[TCS3400_ENABLE] |= in drv_als_ams_tcs3400_set_power_mode()
192 &(tcs3400_chip.shadow[TCS3400_ENABLE]), in drv_als_ams_tcs3400_set_power_mode()
198 tcs3400_chip.shadow[TCS3400_REG_AUX] |= TCS3400_EN_ALS_SAT_IRQ; in drv_als_ams_tcs3400_set_power_mode()
200 &(tcs3400_chip.shadow[TCS3400_REG_AUX]), in drv_als_ams_tcs3400_set_power_mode()
215 tcs3400_chip.shadow[TCS3400_ENABLE] = 0x00; in drv_als_ams_tcs3400_set_power_mode()
217 &(tcs3400_chip.shadow[TCS3400_ENABLE]), in drv_als_ams_tcs3400_set_power_mode()
253 ret = sensor_i2c_write(drv, reg, &(tcs3400_chip.shadow[reg]), in tcs3400_reset_regs()
271 tcs3400_chip.shadow[TCS3400_CONTROL] &= ~0x3; in drv_als_ams_tcs3400_set_default_config()
272 tcs3400_chip.shadow[TCS3400_CONTROL] |= tcs3400_chip.again; in drv_als_ams_tcs3400_set_default_config()
273 tcs3400_chip.shadow[TCS3400_ALS_TIME] |= tcs3400_chip.atime; in drv_als_ams_tcs3400_set_default_config()
274 tcs3400_chip.shadow[TCS3400_PERSISTENCE] = tcs3400_chip.persist; in drv_als_ams_tcs3400_set_default_config()
275 tcs3400_chip.shadow[TCS3400_CONFIG] = 0x40; in drv_als_ams_tcs3400_set_default_config()
315 &tcs3400_chip.shadow[TCS3400_CLR_CHANLO], 8, in tcs3400_read_als_data()
322 buf = &tcs3400_chip.shadow[TCS3400_CLR_CHANLO]; in tcs3400_read_als_data()
343 val = 256 - tcs3400_chip.shadow[TCS3400_ALS_TIME]; in tcs3400_max_als_value()
352 uint8_t atime = 256 - tcs3400_chip.shadow[TCS3400_ALS_TIME]; in tcs3400_cal_cpl()
355 uint8_t gain = als_gains[(tcs3400_chip.shadow[TCS3400_CONTROL] & 0x3)]; in tcs3400_cal_cpl()
385 tcs3400_chip.shadow[TCS3400_ENABLE] |= in tcs3400_als_enable()
388 &(tcs3400_chip.shadow[TCS3400_ENABLE]), in tcs3400_als_enable()
394 tcs3400_chip.shadow[TCS3400_REG_AUX] |= TCS3400_EN_ALS_SAT_IRQ; in tcs3400_als_enable()
396 &(tcs3400_chip.shadow[TCS3400_REG_AUX]), I2C_DATA_LEN, in tcs3400_als_enable()
405 tcs3400_chip.shadow[TCS3400_ENABLE] = 0x00; in tcs3400_als_enable()
407 &(tcs3400_chip.shadow[TCS3400_ENABLE]), in tcs3400_als_enable()
442 tcs3400_chip.shadow[TCS3400_CONTROL] &= ~0x3; in tcs3400_set_als_gain()
443 tcs3400_chip.shadow[TCS3400_CONTROL] |= ctrl_reg; in tcs3400_set_als_gain()
459 uint8_t gain = (tcs3400_chip.shadow[TCS3400_CONTROL]) & 0x3; in tcs3400_dec_gain()
482 uint8_t gain = (tcs3400_chip.shadow[TCS3400_CONTROL]) & 0x3; in tcs3400_inc_gain()
581 &(tcs3400_chip.shadow[TCS3400_STATUS]), I2C_DATA_LEN, in drv_als_ams_tcs3400_read()
587 status = tcs3400_chip.shadow[TCS3400_STATUS]; in drv_als_ams_tcs3400_read()