| /OK3568_Linux_fs/kernel/drivers/input/keyboard/ |
| H A D | hil_kbd.c | 234 if (val < input_abs_get_min(dev, ABS_X + i)) in hil_dev_handle_ptr_events() 235 input_abs_set_min(dev, ABS_X + i, val); in hil_dev_handle_ptr_events() 236 if (val > input_abs_get_max(dev, ABS_X + i)) in hil_dev_handle_ptr_events() 237 input_abs_set_max(dev, ABS_X + i, val); in hil_dev_handle_ptr_events() 240 val = input_abs_get_max(dev, ABS_X + i) - val; in hil_dev_handle_ptr_events() 241 input_report_abs(dev, ABS_X + i, val); in hil_dev_handle_ptr_events() 381 input_set_abs_params(input_dev, ABS_X + i, in hil_dev_pointer_setup() 385 input_set_abs_params(input_dev, ABS_X + i, in hil_dev_pointer_setup() 390 int diff = input_abs_get_max(input_dev, ABS_X + i) / 10; in hil_dev_pointer_setup() 391 input_abs_set_min(input_dev, ABS_X + i, in hil_dev_pointer_setup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A D | hid-udraw-ps3.c | 164 input_report_abs(udraw->joy_input_dev, ABS_X, x); in udraw_raw_event() 220 input_report_abs(udraw->touch_input_dev, ABS_X, x); in udraw_raw_event() 239 input_report_abs(udraw->pen_input_dev, ABS_X, x); in udraw_raw_event() 255 input_report_abs(udraw->accel_input_dev, ABS_X, x); in udraw_raw_event() 313 input_set_abs_params(input_dev, ABS_X, 0, RES_X, 1, 0); in udraw_setup_touch() 314 input_abs_set_res(input_dev, ABS_X, RES_X / WIDTH); in udraw_setup_touch() 340 input_set_abs_params(input_dev, ABS_X, 0, RES_X, 1, 0); in udraw_setup_pen() 341 input_abs_set_res(input_dev, ABS_X, RES_X / WIDTH); in udraw_setup_pen() 369 input_set_abs_params(input_dev, ABS_X, -512, 512, 0, 0); in udraw_setup_accel() 399 input_set_abs_params(input_dev, ABS_X, -127, 127, 0, 0); in udraw_setup_joypad()
|
| /OK3568_Linux_fs/kernel/drivers/input/joystick/ |
| H A D | twidjoy.c | 25 * corresponding ABS_X and ABS_Y events. This turns the Twiddler into a game 95 int button_bits, abs_x, abs_y; in twidjoy_process_packet() local 107 abs_x = ((data[4] & 0x07) << 5) | ((data[3] & 0x7C) >> 2); in twidjoy_process_packet() 108 if (data[4] & 0x08) abs_x -= 256; in twidjoy_process_packet() 113 input_report_abs(dev, ABS_X, -abs_x); in twidjoy_process_packet() 194 input_set_abs_params(input_dev, ABS_X, -50, 50, 4, 4); in twidjoy_connect()
|
| H A D | grip.c | 52 static int grip_abs_gpp[] = { ABS_X, ABS_Y, -1 }; 53 static int grip_abs_bd[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y, -1 }; 54 static int grip_abs_xt[] = { ABS_X, ABS_Y, ABS_BRAKE, ABS_GAS, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y, … 55 static int grip_abs_dc[] = { ABS_X, ABS_Y, ABS_RX, ABS_RY, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y, -1 }; 190 input_report_abs(dev, ABS_X, ((*data >> 15) & 1) - ((*data >> 16) & 1)); in grip_poll() 206 input_report_abs(dev, ABS_X, (data[0] >> 2) & 0x3f); in grip_poll() 225 input_report_abs(dev, ABS_X, (data[0] >> 2) & 0x3f); in grip_poll() 247 input_report_abs(dev, ABS_X, (data[0] >> 2) & 0x3f); in grip_poll()
|
| H A D | db9.c | 103 static const short db9_abs[] = { ABS_X, ABS_Y, ABS_RX, ABS_RY, ABS_RZ, ABS_Z, ABS_HAT0X, ABS_HAT0Y,… 368 input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 377 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 386 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 395 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 406 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 423 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 443 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer() 486 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer()
|
| H A D | amijoy.c | 52 input_report_abs(amijoy_dev[i], ABS_X, ((data >> 1) & 1) - ((data >> 9) & 1)); in amijoy_interrupt() 124 amijoy_dev[i]->absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y); in amijoy_init() 128 input_set_abs_params(amijoy_dev[i], ABS_X + j, in amijoy_init()
|
| H A D | sidewinder.c | 70 { ABS_X, ABS_Y, ABS_RZ, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y }, 71 { ABS_X, ABS_Y }, 72 { ABS_X, ABS_Y, ABS_RZ, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y }, 73 { ABS_X, ABS_Y, ABS_RZ, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y }, 74 { ABS_X, ABS_Y, ABS_THROTTLE, ABS_HAT0X, ABS_HAT0Y }, 299 input_report_abs(dev, ABS_X, (GB( 3,3) << 7) | GB(16,7)); in sw_parse() 324 input_report_abs(sw->dev[i], ABS_X, GB(i*15+3,1) - GB(i*15+2,1)); in sw_parse() 342 input_report_abs(dev, ABS_X, GB( 9,10)); in sw_parse() 363 input_report_abs(dev, ABS_X, GB( 0,10)); in sw_parse()
|
| H A D | maplecontrol.c | 57 input_report_abs(dev, ABS_X, res[12]); in dc_pad_callback() 94 ABS_GAS, ABS_BRAKE, ABS_X, ABS_Y, ABS_RX, ABS_RY, -1, -1, in probe_maple_controller() 133 for (i = ABS_X; i <= ABS_BRAKE; i++) in probe_maple_controller()
|
| H A D | gamecon.c | 233 input_report_abs(dev, ABS_X, x); in gc_n64_process_packet() 381 input_report_abs(dev, ABS_X, !(s & data[6]) - !(s & data[7])); in gc_nes_process_packet() 392 input_report_abs(dev, ABS_X, !(s & data[6]) - !(s & data[7])); in gc_nes_process_packet() 491 input_report_abs(dev, ABS_X, in gc_multi_process_packet() 537 ABS_X, ABS_Y, ABS_RX, ABS_RY, ABS_HAT0X, ABS_HAT0Y 655 input_report_abs(dev, ABS_X, in gc_psx_report_one() 678 input_report_abs(dev, ABS_X, in gc_psx_report_one() 839 input_set_abs_params(input_dev, ABS_X + i, -1, 1, 0, 0); in gc_setup_pad() 852 input_set_abs_params(input_dev, ABS_X + i, -127, 126, 0, 2); in gc_setup_pad()
|
| /OK3568_Linux_fs/kernel/drivers/input/mouse/ |
| H A D | sentelic.c | 642 unsigned short abs_x = 0, abs_y = 0; in fsp_packet_debug() local 648 abs_x = GET_ABS_X(packet); in fsp_packet_debug() 666 "abs_x: %d, abs_y: %d\n", in fsp_packet_debug() 668 packet[0], packet[1], packet[2], packet[3], abs_x, abs_y); in fsp_packet_debug() 699 unsigned short abs_x, abs_y, fgrs = 0; in fsp_process_byte() local 723 abs_x = GET_ABS_X(packet); in fsp_process_byte() 747 fsp_set_slot(dev, 1, fgrs == 2, abs_x, abs_y); in fsp_process_byte() 760 fsp_set_slot(dev, 0, fgrs != 0, abs_x, abs_y); in fsp_process_byte() 776 if (abs_x != 0 && abs_y != 0) in fsp_process_byte() 779 fsp_set_slot(dev, 0, fgrs > 0, abs_x, abs_y); in fsp_process_byte() [all …]
|
| H A D | byd.c | 39 * we pick ABS_X/ABS_Y dimensions which are multiples of 256 and in 228 s32 abs_x; member 244 input_report_abs(dev, ABS_X, priv->abs_x); in byd_report_input() 269 priv->abs_x = BYD_PAD_WIDTH / 2; in byd_clear_touch() 298 priv->abs_x = pkt[1] * (BYD_PAD_WIDTH / 256); in byd_process_byte() 311 priv->abs_x += dx * BYD_DT; in byd_process_byte() 500 input_set_abs_params(dev, ABS_X, 0, BYD_PAD_WIDTH, 0, 0); in byd_init() 502 input_abs_set_res(dev, ABS_X, BYD_PAD_RESOLUTION); in byd_init()
|
| H A D | pc110pad.c | 61 input_report_abs(pc110pad_dev, ABS_X, in pc110pad_interrupt() 129 pc110pad_dev->absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y); in pc110pad_init() 132 input_abs_set_max(pc110pad_dev, ABS_X, 0x1ff); in pc110pad_init()
|
| H A D | hgpk.c | 189 priv->abs_x = priv->abs_y = -1; in hgpk_reset_hack_state() 390 if (x == priv->abs_x && y == priv->abs_y) { in hgpk_process_advanced_packet() 405 if (priv->mode != HGPK_MODE_PENTABLET && priv->abs_x != -1) { in hgpk_process_advanced_packet() 406 int x_diff = priv->abs_x - x; in hgpk_process_advanced_packet() 416 input_report_abs(idev, ABS_X, x); in hgpk_process_advanced_packet() 418 priv->abs_x = x; in hgpk_process_advanced_packet() 575 input_set_abs_params(input, ABS_X, 0, 399, 0, 0); in hgpk_setup_input_device() 579 input_abs_set_res(input, ABS_X, 8); in hgpk_setup_input_device() 590 input_set_abs_params(input, ABS_X, 0, 999, 0, 0); in hgpk_setup_input_device() 594 input_abs_set_res(input, ABS_X, 6); in hgpk_setup_input_device()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/ |
| H A D | gpio-decoder.txt | 11 - linux,axis: the input subsystem axis to map to (ABS_X/ABS_Y). 12 Defaults to 0 (ABS_X). 21 linux,axis = <0>; /* ABS_X */
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/accel/ |
| H A D | da223_cust.c | 581 input_set_abs_params(pInputDev, ABS_X, sensor->ops->range[0], sensor->ops->range[1], 0, 0); 702 input_report_abs(sensor->input_dev, ABS_X, -(axis.y/64)); 706 input_report_abs(sensor->input_dev, ABS_X, -(axis.y/64)); 710 input_report_abs(sensor->input_dev, ABS_X, -(axis.x/64)); 714 input_report_abs(sensor->input_dev, ABS_X, -(axis.x/64)); 718 input_report_abs(sensor->input_dev, ABS_X, -(axis.x/64)); 722 input_report_abs(sensor->input_dev, ABS_X, (axis.y/64)); 726 input_report_abs(sensor->input_dev, ABS_X, -(axis.y/64)); 730 input_report_abs(sensor->input_dev, ABS_X, -(axis.y/64)); 734 input_report_abs(sensor->input_dev, ABS_X, (axis.y/64)); [all …]
|
| H A D | sc7a20.c | 1463 input_set_abs_params(pInputDev, ABS_X, sensor->ops->range[0], sensor->ops->range[1], 0, 0); in sensor_init() 1517 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() 1521 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() 1525 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1529 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() 1533 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1537 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1541 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1545 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1549 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() [all …]
|
| H A D | sc7660.c | 1383 input_set_abs_params(pInputDev, ABS_X, sensor->ops->range[0], sensor->ops->range[1], 0, 0); in sensor_init() 1436 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() 1440 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() 1444 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1448 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value() 1452 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1456 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1460 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1464 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() 1468 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value() [all …]
|
| /OK3568_Linux_fs/kernel/sound/usb/caiaq/ |
| H A D | input.c | 206 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog() 213 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog() 241 input_report_abs(input_dev, ABS_X, i); in snd_caiaq_input_read_erp() 315 input_report_abs(cdev->input_dev, ABS_X, buf[5] & 0xf); in snd_caiaq_input_read_io() 610 input->absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y) | in snd_usb_caiaq_input_init() 615 input_set_abs_params(input, ABS_X, 0, 4096, 0, 10); in snd_usb_caiaq_input_init() 622 input->absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y) | in snd_usb_caiaq_input_init() 627 input_set_abs_params(input, ABS_X, 0, 1024, 0, 10); in snd_usb_caiaq_input_init() 634 input->absbit[0] = BIT_MASK(ABS_X); in snd_usb_caiaq_input_init() 638 input_set_abs_params(input, ABS_X, 0, 999, 0, 10); in snd_usb_caiaq_input_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/ |
| H A D | ipaq-micro-ts.c | 32 input_report_abs(ts->input, ABS_X, in micro_ts_receive() 39 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive() 104 input_set_capability(ts->input, EV_ABS, ABS_X); in micro_ts_probe() 106 input_set_abs_params(ts->input, ABS_X, 0, 1023, 0, 0); in micro_ts_probe()
|
| H A D | elo.c | 97 input_report_abs(dev, ABS_X, (elo->data[4] << 8) | elo->data[3]); in elo_process_data_10() 146 input_report_abs(dev, ABS_X, ((elo->data[0] & 0x3f) << 6) | (elo->data[1] & 0x3f)); in elo_process_data_6() 189 input_report_abs(dev, ABS_X, elo->data[1]); in elo_process_data_3() 269 input_set_abs_params(dev, ABS_X, 96, 4000, 0, 0); in elo_setup_10() 356 input_set_abs_params(input_dev, ABS_X, 96, 4000, 0, 0); in elo_connect() 361 input_set_abs_params(input_dev, ABS_X, 0, 255, 0, 0); in elo_connect()
|
| H A D | wm97xx-core.c | 69 static int abs_x[3] = {150, 4000, 5}; variable 70 module_param_array(abs_x, int, NULL, 0); 71 MODULE_PARM_DESC(abs_x, "Touchscreen absolute X min, max, fuzz"); 442 if (abs_x[0] > (data.x & 0xfff) || in wm97xx_read_samples() 443 abs_x[1] < (data.x & 0xfff) || in wm97xx_read_samples() 451 input_report_abs(wm->input_dev, ABS_X, data.x & 0xfff); in wm97xx_read_samples() 599 input_set_abs_params(wm->input_dev, ABS_X, abs_x[0], abs_x[1], in wm97xx_register_touch() 600 abs_x[2], 0); in wm97xx_register_touch()
|
| H A D | wacom_w8001.c | 251 input_report_abs(dev, ABS_X, coord->x); in report_pen_events() 272 input_report_abs(dev, ABS_X, x); in report_single_touch() 447 input_set_abs_params(dev, ABS_X, 0, coord.x, 0, 0); in w8001_setup_pen() 449 input_abs_set_res(dev, ABS_X, W8001_PEN_RESOLUTION); in w8001_setup_pen() 498 input_set_abs_params(dev, ABS_X, 0, touch.x, 0, 0); in w8001_setup_touch() 500 input_abs_set_res(dev, ABS_X, touch.panel_res); in w8001_setup_touch()
|
| H A D | hp680_ts_input.c | 59 input_report_abs(hp680_ts_dev, ABS_X, absx); in do_softint() 88 input_set_abs_params(hp680_ts_dev, ABS_X, in hp680_ts_init()
|
| /OK3568_Linux_fs/kernel/Documentation/input/ |
| H A D | input-programming.rst | 198 the ABS_X axis:: 200 button_dev.absmin[ABS_X] = 0; 201 button_dev.absmax[ABS_X] = 255; 202 button_dev.absfuzz[ABS_X] = 4; 203 button_dev.absflat[ABS_X] = 8; 207 input_set_abs_params(button_dev, ABS_X, 0, 255, 4, 8);
|
| /OK3568_Linux_fs/kernel/drivers/input/ |
| H A D | mousedev.c | 131 case ABS_X: in mousedev_touchpad_event() 135 size = input_abs_get_max(dev, ABS_X) - in mousedev_touchpad_event() 136 input_abs_get_min(dev, ABS_X); in mousedev_touchpad_event() 152 size = input_abs_get_max(dev, ABS_X) - in mousedev_touchpad_event() 153 input_abs_get_min(dev, ABS_X); in mousedev_touchpad_event() 174 case ABS_X: in mousedev_abs_event() 175 min = input_abs_get_min(dev, ABS_X); in mousedev_abs_event() 176 max = input_abs_get_max(dev, ABS_X); in mousedev_abs_event() 1024 .absbit = { BIT_MASK(ABS_X) | BIT_MASK(ABS_Y) }, 1034 .absbit = { BIT_MASK(ABS_X) | BIT_MASK(ABS_Y) | [all …]
|