Lines Matching refs:ams_i2c_write
83 static int ams_i2c_write(u8 reg, u8 value) in ams_i2c_write() function
93 ams_i2c_write(AMS_COMMAND, cmd); in ams_i2c_cmd()
115 ams_i2c_write(AMS_CTRLX, val); in ams_i2c_set_irq()
124 ams_i2c_write(AMS_CTRLY, val); in ams_i2c_set_irq()
133 ams_i2c_write(AMS_CTRLZ, val); in ams_i2c_set_irq()
140 ams_i2c_write(AMS_FREEFALL, 0); in ams_i2c_clear_irq()
143 ams_i2c_write(AMS_SHOCK, 0); in ams_i2c_clear_irq()
181 ams_i2c_write(AMS_CTRL1, 0x02); in ams_i2c_probe()
182 ams_i2c_write(AMS_CTRL2, 0x85); in ams_i2c_probe()
183 ams_i2c_write(AMS_CTRL3, 0x01); in ams_i2c_probe()
213 ams_i2c_write(AMS_SENSLOW, 0x15); in ams_i2c_probe()
214 ams_i2c_write(AMS_SENSHIGH, 0x60); in ams_i2c_probe()
215 ams_i2c_write(AMS_CTRLX, 0x08); in ams_i2c_probe()
216 ams_i2c_write(AMS_CTRLY, 0x0F); in ams_i2c_probe()
217 ams_i2c_write(AMS_CTRLZ, 0x4F); in ams_i2c_probe()
218 ams_i2c_write(AMS_UNKNOWN1, 0x14); in ams_i2c_probe()