Lines Matching refs:prox

137 	int prox, pressure;  in wacom_pl_irq()  local
145 prox = data[1] & 0x40; in wacom_pl_irq()
170 if (prox) { in wacom_pl_irq()
186 if (!prox) in wacom_pl_irq()
188 input_report_key(input, wacom->tool[0], prox); in wacom_pl_irq()
226 int prox = data[1] & 0x20; in wacom_dtu_irq() local
231 if (prox) { in wacom_dtu_irq()
245 if (!prox) /* out-prox */ in wacom_dtu_irq()
247 input_report_key(input, wacom->tool[0], prox); in wacom_dtu_irq()
256 unsigned short prox, pressure = 0; in wacom_dtus_irq() local
272 prox = data[1] & 0x80; in wacom_dtus_irq()
273 if (prox) { in wacom_dtus_irq()
295 if (!prox) /* out-prox */ in wacom_dtus_irq()
297 input_report_key(input, wacom->tool[0], prox); in wacom_dtus_irq()
310 int prox; in wacom_graphire_irq() local
327 prox = data[1] & 0x80; in wacom_graphire_irq()
328 if (prox || wacom->id[0]) { in wacom_graphire_irq()
329 if (prox) { in wacom_graphire_irq()
392 if (!prox) in wacom_graphire_irq()
395 input_report_key(input, wacom->tool[0], prox); in wacom_graphire_irq()
402 prox = data[7] & 0xf8; in wacom_graphire_irq()
403 if (prox || wacom->id[1]) { in wacom_graphire_irq()
409 if (!prox) in wacom_graphire_irq()
417 prox = (data[7] & 0xf8) || data[8]; in wacom_graphire_irq()
418 if (prox || wacom->id[1]) { in wacom_graphire_irq()
425 if (!prox) in wacom_graphire_irq()
432 prox = data[7] & 0x03; in wacom_graphire_irq()
433 if (prox || wacom->id[1]) { in wacom_graphire_irq()
437 if (!prox) in wacom_graphire_irq()
485 bool prox = false; in wacom_intuos_pad() local
602 prox = (buttons & ~(~0U << nbuttons)) | (keys & ~(~0U << nkeys)) | in wacom_intuos_pad()
628 input_report_key(input, wacom->tool[1], prox ? 1 : 0); in wacom_intuos_pad()
629 input_report_abs(input, ABS_MISC, prox ? PAD_DEVICE_ID : 0); in wacom_intuos_pad()
1281 bool prox = frame[0] & 0x40; in wacom_intuos_pro2_bt_pen() local
1288 if (!prox) { in wacom_intuos_pro2_bt_pen()
1347 input_report_key(pen_input, wacom->tool[0], prox); in wacom_intuos_pro2_bt_pen()
1353 wacom->shared->stylus_in_proximity = prox; in wacom_intuos_pro2_bt_pen()
1436 bool prox = expresskeys || center || ringstatus; in wacom_intuos_pro2_bt_pad() local
1449 input_report_key(pad_input, wacom->tool[1], prox ? 1 : 0); in wacom_intuos_pro2_bt_pad()
1450 input_report_abs(pad_input, ABS_MISC, prox ? PAD_DEVICE_ID : 0); in wacom_intuos_pro2_bt_pad()
1674 bool prox = report_touch_events(wacom); in wacom_tpc_single_touch() local
1681 prox = prox && (data[0] & 0x01); in wacom_tpc_single_touch()
1685 prox = prox && (data[2] & 0x01); in wacom_tpc_single_touch()
1689 prox = prox && (data[1] & 0x01); in wacom_tpc_single_touch()
1694 if (prox) { in wacom_tpc_single_touch()
1698 input_report_key(input, BTN_TOUCH, prox); in wacom_tpc_single_touch()
1701 wacom->shared->touch_down = prox; in wacom_tpc_single_touch()
1710 bool prox = data[1] & 0x20; in wacom_tpc_pen() local
1717 wacom->shared->stylus_in_proximity = prox; in wacom_tpc_pen()
1729 input_report_key(input, wacom->tool[0], prox); in wacom_tpc_pen()
2529 bool prox = hid_data->tipswitch && in wacom_wac_finger_slot() local
2536 prox = 0; in wacom_wac_finger_slot()
2548 input_mt_report_slot_state(input, MT_TOOL_FINGER, prox); in wacom_wac_finger_slot()
2551 input_report_key(input, BTN_TOUCH, prox); in wacom_wac_finger_slot()
2554 if (prox) { in wacom_wac_finger_slot()
2976 bool range, prox, rdy; in wacom_bpt_pen() local
2982 prox = (data[1] & 0x40) == 0x40; in wacom_bpt_pen()
2995 if (prox) { in wacom_bpt_pen()
3026 if (prox || !range) { in wacom_bpt_pen()