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