Lines Matching refs:tdata
182 static void magicmouse_emit_touch(struct magicmouse_sc *msc, int raw_id, u8 *tdata) in magicmouse_emit_touch() argument
188 id = (tdata[6] << 2 | tdata[5] >> 6) & 0xf; in magicmouse_emit_touch()
189 x = (tdata[1] << 28 | tdata[0] << 20) >> 20; in magicmouse_emit_touch()
190 y = -((tdata[2] << 24 | tdata[1] << 16) >> 20); in magicmouse_emit_touch()
191 size = tdata[5] & 0x3f; in magicmouse_emit_touch()
192 orientation = (tdata[6] >> 2) - 32; in magicmouse_emit_touch()
193 touch_major = tdata[3]; in magicmouse_emit_touch()
194 touch_minor = tdata[4]; in magicmouse_emit_touch()
195 state = tdata[7] & TOUCH_STATE_MASK; in magicmouse_emit_touch()
198 id = (tdata[7] << 2 | tdata[6] >> 6) & 0xf; in magicmouse_emit_touch()
199 x = (tdata[1] << 27 | tdata[0] << 19) >> 19; in magicmouse_emit_touch()
200 y = -((tdata[3] << 30 | tdata[2] << 22 | tdata[1] << 14) >> 19); in magicmouse_emit_touch()
201 size = tdata[6] & 0x3f; in magicmouse_emit_touch()
202 orientation = (tdata[7] >> 2) - 32; in magicmouse_emit_touch()
203 touch_major = tdata[4]; in magicmouse_emit_touch()
204 touch_minor = tdata[5]; in magicmouse_emit_touch()
205 state = tdata[8] & TOUCH_STATE_MASK; in magicmouse_emit_touch()
274 input_event(input, EV_MSC, MSC_RAW, tdata[7]); in magicmouse_emit_touch()
276 input_event(input, EV_MSC, MSC_RAW, tdata[8]); in magicmouse_emit_touch()