Lines Matching refs:stylus

585 			report->stylus.pid					= HID_PID;  in elan_ts_recv_data()
586 report->stylus.pbuf_valid_size = rbuf[0]; in elan_ts_recv_data()
587 report->stylus.pbutton_value = 0;//rbuf[13]; in elan_ts_recv_data()
588 report->stylus.preport_idx = 3; in elan_ts_recv_data()
589 report->stylus.tip_status = (rbuf[3] & 0x33) >> 1; in elan_ts_recv_data()
590 report->stylus.inrange_status = rbuf[3] & 0x02; in elan_ts_recv_data()
591 report->stylus.key = rbuf[3] >> 1; in elan_ts_recv_data()
595 report->stylus.barrel_tip = rbuf[3]; in elan_ts_recv_data()
597 memcpy(buf,rbuf,report->stylus.pbuf_valid_size); in elan_ts_recv_data()
630 for(i = 0; i < report->stylus.pbuf_valid_size/8 + 1; i++) { in elan_ts_recv_data()
696 struct elan_stylus_struct stylus = report->stylus; in elants_a_report() local
754 print_log(ts->level,"[elan] stylus.key %d, pkey %d\n",stylus.key,pkey); in elants_a_report()
755 if (stylus.key > 0 || !pkey) { in elants_a_report()
756 switch(stylus.key) { in elants_a_report()
786 stylus.tip_status,stylus.inrange_status); in elants_a_report()
787 if (stylus.inrange_status) { in elants_a_report()
799 input_report_key(ts->pen_idev, BTN_TOUCH, stylus.tip_status); in elants_a_report()
800 input_report_key(ts->pen_idev, BTN_TOOL_PEN, stylus.tip_status); in elants_a_report()
810 struct elan_stylus_struct stylus = report->stylus; in elants_slot_report() local
885 if (stylus.key > 0 || !pkey) { in elants_slot_report()
886 switch(stylus.key) { in elants_slot_report()
916 stylus.inrange_status,stylus.barrel_tip); in elants_slot_report()
917 if(stylus.inrange_status) { in elants_slot_report()
991 int pbutton = report->stylus.pbutton_value; in elan_ts_hid_report()