Lines Matching refs:payload
337 static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) in zforce_touch_event() argument
344 count = payload[0]; in zforce_touch_event()
354 payload[9 * i + 2] << 8 | payload[9 * i + 1]; in zforce_touch_event()
356 payload[9 * i + 4] << 8 | payload[9 * i + 3]; in zforce_touch_event()
365 point.state = payload[9 * i + 5] & 0x0f; in zforce_touch_event()
366 point.id = (payload[9 * i + 5] & 0xf0) >> 4; in zforce_touch_event()
369 point.area_major = max(payload[9 * i + 6], in zforce_touch_event()
370 payload[9 * i + 7]); in zforce_touch_event()
371 point.area_minor = min(payload[9 * i + 6], in zforce_touch_event()
372 payload[9 * i + 7]); in zforce_touch_event()
373 point.orientation = payload[9 * i + 6] > payload[9 * i + 7]; in zforce_touch_event()
375 point.pressure = payload[9 * i + 8]; in zforce_touch_event()
376 point.prblty = payload[9 * i + 9]; in zforce_touch_event()
488 u8 *payload; in zforce_irq_thread() local
522 payload = &payload_buffer[PAYLOAD_BODY]; in zforce_irq_thread()
524 switch (payload[RESPONSE_ID]) { in zforce_irq_thread()
532 zforce_touch_event(ts, &payload[RESPONSE_DATA]); in zforce_irq_thread()
536 ts->boot_complete = payload[RESPONSE_DATA]; in zforce_irq_thread()
537 zforce_complete(ts, payload[RESPONSE_ID], 0); in zforce_irq_thread()
545 zforce_complete(ts, payload[RESPONSE_ID], in zforce_irq_thread()
546 payload[RESPONSE_DATA]); in zforce_irq_thread()
554 ts->version_major = (payload[RESPONSE_DATA + 1] << 8) | in zforce_irq_thread()
555 payload[RESPONSE_DATA]; in zforce_irq_thread()
556 ts->version_minor = (payload[RESPONSE_DATA + 3] << 8) | in zforce_irq_thread()
557 payload[RESPONSE_DATA + 2]; in zforce_irq_thread()
558 ts->version_build = (payload[RESPONSE_DATA + 5] << 8) | in zforce_irq_thread()
559 payload[RESPONSE_DATA + 4]; in zforce_irq_thread()
560 ts->version_rev = (payload[RESPONSE_DATA + 7] << 8) | in zforce_irq_thread()
561 payload[RESPONSE_DATA + 6]; in zforce_irq_thread()
567 zforce_complete(ts, payload[RESPONSE_ID], 0); in zforce_irq_thread()
572 payload[RESPONSE_DATA]); in zforce_irq_thread()
578 payload[RESPONSE_ID]); in zforce_irq_thread()