Lines Matching refs:rw
441 int tool, x, y, rw; in wacom_gr_parse_report() local
501 rw = (data[6] & 0x01) ? -1 : in wacom_gr_parse_report()
503 input_report_rel(input, REL_WHEEL, rw); in wacom_gr_parse_report()
510 rw = 44 - (data[6] >> 2); in wacom_gr_parse_report()
511 if (rw < 0) in wacom_gr_parse_report()
512 rw = 0; in wacom_gr_parse_report()
513 else if (rw > 31) in wacom_gr_parse_report()
514 rw = 31; in wacom_gr_parse_report()
515 input_report_abs(input, ABS_DISTANCE, rw); in wacom_gr_parse_report()
532 rw = data[7] & 0x03; in wacom_gr_parse_report()
533 if (rw != wdata->butstate) { in wacom_gr_parse_report()
534 wdata->butstate = rw; in wacom_gr_parse_report()
535 input_report_key(input, BTN_0, rw & 0x02); in wacom_gr_parse_report()
536 input_report_key(input, BTN_1, rw & 0x01); in wacom_gr_parse_report()
543 rw = (data[7] >> 2 & 0x07); in wacom_gr_parse_report()
544 if (rw != wdata->power_raw) { in wacom_gr_parse_report()
545 wdata->power_raw = rw; in wacom_gr_parse_report()
546 wdata->battery_capacity = batcap_gr[rw]; in wacom_gr_parse_report()
547 if (rw == 7) in wacom_gr_parse_report()