Lines Matching refs:tsc
33 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd) in tsc2007_xfer() argument
38 data = i2c_smbus_read_word_data(tsc->client, cmd); in tsc2007_xfer()
40 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); in tsc2007_xfer()
50 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); in tsc2007_xfer()
55 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument
58 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values()
61 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values()
64 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values()
65 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values()
68 tsc2007_xfer(tsc, PWRDOWN); in tsc2007_read_values()
71 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_calculate_resistance() argument
83 rt *= tsc->x_plate_ohms; in tsc2007_calculate_resistance()