/linux-2.6.39/drivers/input/serio/ |
D | libps2.c | 38 int ps2_sendbyte(struct ps2dev *ps2dev, unsigned char byte, int timeout) in ps2_sendbyte() argument 40 serio_pause_rx(ps2dev->serio); in ps2_sendbyte() 41 ps2dev->nak = 1; in ps2_sendbyte() 42 ps2dev->flags |= PS2_FLAG_ACK; in ps2_sendbyte() 43 serio_continue_rx(ps2dev->serio); in ps2_sendbyte() 45 if (serio_write(ps2dev->serio, byte) == 0) in ps2_sendbyte() 46 wait_event_timeout(ps2dev->wait, in ps2_sendbyte() 47 !(ps2dev->flags & PS2_FLAG_ACK), in ps2_sendbyte() 50 serio_pause_rx(ps2dev->serio); in ps2_sendbyte() 51 ps2dev->flags &= ~PS2_FLAG_ACK; in ps2_sendbyte() [all …]
|
/linux-2.6.39/include/linux/ |
D | libps2.h | 29 struct ps2dev { struct 44 void ps2_init(struct ps2dev *ps2dev, struct serio *serio); argument 45 int ps2_sendbyte(struct ps2dev *ps2dev, unsigned char byte, int timeout); 46 void ps2_drain(struct ps2dev *ps2dev, int maxbytes, int timeout); 47 void ps2_begin_command(struct ps2dev *ps2dev); 48 void ps2_end_command(struct ps2dev *ps2dev); 49 int __ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command); 50 int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command); 51 int ps2_handle_ack(struct ps2dev *ps2dev, unsigned char data); 52 int ps2_handle_response(struct ps2dev *ps2dev, unsigned char data); [all …]
|
/linux-2.6.39/drivers/input/mouse/ |
D | sentelic.c | 83 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_read() local 94 ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE); in fsp_reg_read() 97 ps2_begin_command(ps2dev); in fsp_reg_read() 99 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_reg_read() 103 ps2_sendbyte(ps2dev, 0x66, FSP_CMD_TIMEOUT2); in fsp_reg_read() 105 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2); in fsp_reg_read() 107 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) in fsp_reg_read() 111 ps2_sendbyte(ps2dev, 0x68, FSP_CMD_TIMEOUT2); in fsp_reg_read() 114 ps2_sendbyte(ps2dev, 0xcc, FSP_CMD_TIMEOUT2); in fsp_reg_read() 118 ps2_sendbyte(ps2dev, 0x66, FSP_CMD_TIMEOUT2); in fsp_reg_read() [all …]
|
D | trackpoint.c | 25 static int trackpoint_read(struct ps2dev *ps2dev, unsigned char loc, unsigned char *results) in trackpoint_read() argument 27 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_read() 28 ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 1, loc))) { in trackpoint_read() 35 static int trackpoint_write(struct ps2dev *ps2dev, unsigned char loc, unsigned char val) in trackpoint_write() argument 37 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_write() 38 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_WRITE_MEM)) || in trackpoint_write() 39 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_write() 40 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, val))) { in trackpoint_write() 47 static int trackpoint_toggle_bit(struct ps2dev *ps2dev, unsigned char loc, unsigned char mask) in trackpoint_toggle_bit() argument 53 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_toggle_bit() [all …]
|
D | alps.c | 352 serio_pause_rx(psmouse->ps2dev.serio); in alps_flush_packet() 374 serio_continue_rx(psmouse->ps2dev.serio); in alps_flush_packet() 422 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_get_model() local 432 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES) || in alps_get_model() 433 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11) || in alps_get_model() 434 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11) || in alps_get_model() 435 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11)) in alps_get_model() 439 if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO)) in alps_get_model() 452 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES) || in alps_get_model() 453 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE21) || in alps_get_model() [all …]
|
D | logips2pp.c | 119 if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_POLL | 0x0300)) in ps2pp_cmd() 135 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_set_smartscroll() local 141 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 142 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 143 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 146 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 180 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_set_resolution() local 183 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11); in ps2pp_set_resolution() 184 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11); in ps2pp_set_resolution() 185 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11); in ps2pp_set_resolution() [all …]
|
D | psmouse-base.c | 224 psmouse->ps2dev.flags = 0; in __psmouse_set_state() 237 serio_pause_rx(psmouse->ps2dev.serio); in psmouse_set_state() 239 serio_continue_rx(psmouse->ps2dev.serio); in psmouse_set_state() 259 serio_reconnect(psmouse->ps2dev.serio); in psmouse_handle_byte() 301 ps2_cmd_aborted(&psmouse->ps2dev); in psmouse_interrupt() 305 if (unlikely(psmouse->ps2dev.flags & PS2_FLAG_ACK)) in psmouse_interrupt() 306 if (ps2_handle_ack(&psmouse->ps2dev, data)) in psmouse_interrupt() 309 if (unlikely(psmouse->ps2dev.flags & PS2_FLAG_CMD)) in psmouse_interrupt() 310 if (ps2_handle_response(&psmouse->ps2dev, data)) in psmouse_interrupt() 384 if (ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_SETSCALE11)) in psmouse_sliced_command() [all …]
|
D | hgpk.c | 498 struct ps2dev *ps2dev = &psmouse->ps2dev; in hgpk_select_mode() local 524 if (ps2_command(ps2dev, NULL, advanced_init[i])) in hgpk_select_mode() 531 if (ps2_command(ps2dev, NULL, cmd)) in hgpk_select_mode() 614 struct ps2dev *ps2dev = &psmouse->ps2dev; in hgpk_reset_device() local 617 if (ps2_command(ps2dev, NULL, 0xf5) || in hgpk_reset_device() 618 ps2_command(ps2dev, NULL, 0xf5) || in hgpk_reset_device() 619 ps2_command(ps2dev, NULL, 0xe6) || in hgpk_reset_device() 620 ps2_command(ps2dev, NULL, 0xf5)) { in hgpk_reset_device() 641 struct ps2dev *ps2dev = &psmouse->ps2dev; in hgpk_force_recalibrate() local 671 if (ps2_command(ps2dev, NULL, PSMOUSE_CMD_ENABLE)) in hgpk_force_recalibrate() [all …]
|
D | lifebook.c | 207 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_absolute_mode() local 219 ps2_command(ps2dev, ¶m, PSMOUSE_CMD_SETRES); in lifebook_absolute_mode() 226 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_relative_mode() local 229 ps2_command(ps2dev, ¶m, PSMOUSE_CMD_SETRES); in lifebook_relative_mode() 241 ps2_command(&psmouse->ps2dev, &p, PSMOUSE_CMD_SETRES); in lifebook_set_resolution() 263 strcmp(psmouse->ps2dev.serio->phys, desired_serio_phys)) in lifebook_detect() 287 "%s/input1", psmouse->ps2dev.serio->phys); in lifebook_create_relative_device() 295 dev2->dev.parent = &psmouse->ps2dev.serio->dev; in lifebook_create_relative_device()
|
D | hgpk.h | 50 dev_dbg(&(psmouse)->ps2dev.serio->dev, format, ## arg) 52 dev_err(&(psmouse)->ps2dev.serio->dev, format, ## arg) 54 dev_info(&(psmouse)->ps2dev.serio->dev, format, ## arg) 56 dev_warn(&(psmouse)->ps2dev.serio->dev, format, ## arg) 58 dev_notice(&(psmouse)->ps2dev.serio->dev, format, ## arg)
|
D | elantech.c | 41 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in synaptics_send_cmd() 55 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_ps2_command() local 61 rc = ps2_command(ps2dev, param, command); in elantech_ps2_command() 96 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in elantech_read_reg() 140 ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_SETSCALE11)) { in elantech_write_reg() 610 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_detect() local 613 ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_RESET_DIS); in elantech_detect() 615 if (ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE) || in elantech_detect() 616 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11) || in elantech_detect() 617 ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11) || in elantech_detect() [all …]
|
D | synaptics.c | 62 if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRATE)) in synaptics_mode_cmd() 69 struct ps2dev *ps2dev = &psmouse->ps2dev; in synaptics_detect() local 74 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 75 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 76 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 77 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 78 ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO); in synaptics_detect() 110 if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) in synaptics_send_cmd() 292 if (ps2_command(&psmouse->ps2dev, ¶m, PSMOUSE_CMD_SETRATE)) in synaptics_set_advanced_gesture_mode() 311 if (ps2_command(&parent->ps2dev, &rate_param, PSMOUSE_CMD_SETRATE)) in synaptics_pt_write() [all …]
|
D | psmouse.h | 41 struct ps2dev ps2dev; member
|
D | touchkit_ps2.c | 79 if (ps2_command(&psmouse->ps2dev, param, command)) in touchkit_ps2_detect()
|
/linux-2.6.39/drivers/input/keyboard/ |
D | atkbd.c | 203 struct ps2dev ps2dev; member 390 if (unlikely(atkbd->ps2dev.flags & PS2_FLAG_ACK)) in atkbd_interrupt() 391 if (ps2_handle_ack(&atkbd->ps2dev, data)) in atkbd_interrupt() 394 if (unlikely(atkbd->ps2dev.flags & PS2_FLAG_CMD)) in atkbd_interrupt() 395 if (ps2_handle_response(&atkbd->ps2dev, data)) in atkbd_interrupt() 420 serio_reconnect(atkbd->ps2dev.serio); in atkbd_interrupt() 548 return ps2_command(&atkbd->ps2dev, ¶m, ATKBD_CMD_SETREP); in atkbd_set_repeat_rate() 559 if (ps2_command(&atkbd->ps2dev, param, ATKBD_CMD_SETLEDS)) in atkbd_set_leds() 569 if (ps2_command(&atkbd->ps2dev, param, ATKBD_CMD_EX_SETLEDS)) in atkbd_set_leds() 662 serio_pause_rx(atkbd->ps2dev.serio); in atkbd_enable() [all …]
|