/linux-6.3-rc2/drivers/input/serio/ |
A D | libps2.c | 26 static int ps2_do_sendbyte(struct ps2dev *ps2dev, u8 byte, in ps2_do_sendbyte() argument 28 __releases(&ps2dev->serio->lock) __acquires(&ps2dev->serio->lock) in ps2_do_sendbyte() 102 void ps2_begin_command(struct ps2dev *ps2dev) in ps2_begin_command() argument 110 void ps2_end_command(struct ps2dev *ps2dev) in ps2_end_command() argument 171 static int ps2_adjust_timeout(struct ps2dev *ps2dev, in ps2_adjust_timeout() argument 207 ps2dev->flags = ps2dev->cmdcnt = 0; in ps2_adjust_timeout() 319 ps2dev->nak, ps2dev->flags, in __ps2_command() 393 bool ps2_handle_ack(struct ps2dev *ps2dev, u8 data) in ps2_handle_ack() argument 463 bool ps2_handle_response(struct ps2dev *ps2dev, u8 data) in ps2_handle_response() argument 466 ps2dev->cmdbuf[--ps2dev->cmdcnt] = data; in ps2_handle_response() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | libps2.h | 33 struct ps2dev { struct 48 void ps2_init(struct ps2dev *ps2dev, struct serio *serio); argument 49 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout); 51 void ps2_begin_command(struct ps2dev *ps2dev); 52 void ps2_end_command(struct ps2dev *ps2dev); 53 int __ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command); 54 int ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command); 55 int ps2_sliced_command(struct ps2dev *ps2dev, u8 command); 56 bool ps2_handle_ack(struct ps2dev *ps2dev, u8 data); 57 bool ps2_handle_response(struct ps2dev *ps2dev, u8 data); [all …]
|
/linux-6.3-rc2/drivers/input/mouse/ |
A D | sentelic.c | 73 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_read() local 86 ps2_begin_command(ps2dev); in fsp_reg_read() 120 ps2_end_command(ps2dev); in fsp_reg_read() 130 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_write() local 134 ps2_begin_command(ps2dev); in fsp_reg_write() 173 ps2_end_command(ps2dev); in fsp_reg_write() 203 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_page_reg_read() local 231 ps2_end_command(ps2dev); in fsp_page_reg_read() 241 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_page_reg_write() local 270 ps2_end_command(ps2dev); in fsp_page_reg_write() [all …]
|
A D | logips2pp.c | 138 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_set_smartscroll() local 144 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 145 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 146 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 149 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 189 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_set_resolution() local 359 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_detect() local 390 ps2_command(ps2dev, param, 0x30d1); in ps2pp_detect() 393 ps2_command(ps2dev, param, 0x30d1); in ps2pp_detect() 396 ps2_command(ps2dev, param, 0x30d1); in ps2pp_detect() [all …]
|
A D | trackpoint.c | 33 static int trackpoint_power_on_reset(struct ps2dev *ps2dev) in trackpoint_power_on_reset() argument 52 static int trackpoint_read(struct ps2dev *ps2dev, u8 loc, u8 *results) in trackpoint_read() argument 59 static int trackpoint_write(struct ps2dev *ps2dev, u8 loc, u8 val) in trackpoint_write() argument 66 static int trackpoint_toggle_bit(struct ps2dev *ps2dev, u8 loc, u8 mask) in trackpoint_toggle_bit() argument 77 static int trackpoint_update_bit(struct ps2dev *ps2dev, in trackpoint_update_bit() argument 83 retval = trackpoint_read(ps2dev, loc, &data); in trackpoint_update_bit() 164 err = trackpoint_toggle_bit(&psmouse->ps2dev, in trackpoint_set_bit_attr() 255 trackpoint_write(&_psmouse->ps2dev, \ 258 trackpoint_update_bit(&_psmouse->ps2dev, \ 275 error = ps2_command(&psmouse->ps2dev, in trackpoint_start_protocol() [all …]
|
A D | focaltech.c | 267 struct ps2dev *ps2dev = &psmouse->ps2dev; in focaltech_switch_protocol() local 271 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol() 274 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol() 277 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol() 281 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol() 287 if (ps2_command(ps2dev, param, PSMOUSE_CMD_ENABLE)) in focaltech_switch_protocol() 347 static int focaltech_read_register(struct ps2dev *ps2dev, int reg, in focaltech_read_register() argument 354 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in focaltech_read_register() 357 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in focaltech_read_register() 375 struct ps2dev *ps2dev = &psmouse->ps2dev; in focaltech_read_size() local [all …]
|
A D | alps.c | 1688 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_command_mode_send_nibble() local 1708 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_command_mode_set_addr() local 1726 struct ps2dev *ps2dev = &psmouse->ps2dev; in __alps_command_mode_read_reg() local 1770 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_rpt_cmd() local 1825 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_exit_command_mode() local 1838 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_passthrough_mode_v2() local 1855 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_absolute_mode_v1_v2() local 1892 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_monitor_mode_write_reg() local 1907 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_monitor_mode() local 1966 struct ps2dev *ps2dev = &psmouse->ps2dev; in alps_tap_mode() local [all …]
|
A D | psmouse-base.c | 250 psmouse->ps2dev.flags = 0; in __psmouse_set_state() 261 serio_pause_rx(psmouse->ps2dev.serio); in psmouse_set_state() 353 ps2_cmd_aborted(&psmouse->ps2dev); in psmouse_interrupt() 485 ps2_command(&psmouse->ps2dev, NULL, in psmouse_set_scale() 545 struct ps2dev *ps2dev = &psmouse->ps2dev; in genius_detect() local 577 struct ps2dev *ps2dev = &psmouse->ps2dev; in intellimouse_detect() local 610 struct ps2dev *ps2dev = &psmouse->ps2dev; in im_explorer_detect() local 656 struct ps2dev *ps2dev = &psmouse->ps2dev; in thinking_detect() local 1249 struct ps2dev *ps2dev = &psmouse->ps2dev; in psmouse_probe() local 1275 ps2dev->serio->phys, error); in psmouse_probe() [all …]
|
A D | hgpk.c | 494 struct ps2dev *ps2dev = &psmouse->ps2dev; in hgpk_select_mode() local 527 if (ps2_command(ps2dev, NULL, cmd)) in hgpk_select_mode() 610 struct ps2dev *ps2dev = &psmouse->ps2dev; in hgpk_reset_device() local 613 if (ps2_command(ps2dev, NULL, 0xf5) || in hgpk_reset_device() 614 ps2_command(ps2dev, NULL, 0xf5) || in hgpk_reset_device() 615 ps2_command(ps2dev, NULL, 0xe6) || in hgpk_reset_device() 616 ps2_command(ps2dev, NULL, 0xf5)) { in hgpk_reset_device() 694 struct ps2dev *ps2dev = &psmouse->ps2dev; in hgpk_toggle_powersave() local 730 if (ps2_command(ps2dev, NULL, 0xec) || in hgpk_toggle_powersave() 739 ps2_sendbyte(ps2dev, 0xec, 20); in hgpk_toggle_powersave() [all …]
|
A D | byd.c | 257 serio_pause_rx(psmouse->ps2dev.serio); in byd_clear_touch() 262 serio_continue_rx(psmouse->ps2dev.serio); in byd_clear_touch() 341 struct ps2dev *ps2dev = &psmouse->ps2dev; in byd_reset_touchpad() local 390 if (ps2_command(ps2dev, param, seq[i].command)) in byd_reset_touchpad() 437 struct ps2dev *ps2dev = &psmouse->ps2dev; in byd_detect() local 440 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in byd_detect() 442 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in byd_detect() 444 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in byd_detect() 446 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in byd_detect() 448 if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO)) in byd_detect()
|
A D | lifebook.c | 201 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_absolute_mode() local 215 ps2_command(ps2dev, ¶m, PSMOUSE_CMD_SETRES); in lifebook_absolute_mode() 222 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_relative_mode() local 225 ps2_command(ps2dev, ¶m, PSMOUSE_CMD_SETRES); in lifebook_relative_mode() 237 ps2_command(&psmouse->ps2dev, &p, PSMOUSE_CMD_SETRES); in lifebook_set_resolution() 259 strcmp(psmouse->ps2dev.serio->phys, desired_serio_phys)) in lifebook_detect() 283 "%s/input1", psmouse->ps2dev.serio->phys); in lifebook_create_relative_device() 291 dev2->dev.parent = &psmouse->ps2dev.serio->dev; in lifebook_create_relative_device()
|
A D | cypress_ps2.c | 40 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_sendbyte() local 42 if (ps2_sendbyte(ps2dev, value & 0xff, CYTP_CMD_TIMEOUT) < 0) { in cypress_ps2_sendbyte() 45 value & 0xff, ps2dev->nak); in cypress_ps2_sendbyte() 46 if (ps2dev->nak == CYTP_PS2_RETRY) in cypress_ps2_sendbyte() 63 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_ext_cmd() local 67 ps2_begin_command(ps2dev); in cypress_ps2_ext_cmd() 93 ps2_end_command(ps2dev); in cypress_ps2_ext_cmd() 103 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_read_cmd_status() local 107 ps2_begin_command(ps2dev); in cypress_ps2_read_cmd_status() 120 wait_event_timeout(ps2dev->wait, in cypress_ps2_read_cmd_status() [all …]
|
A D | psmouse.h | 92 struct ps2dev ps2dev; member 199 dev_dbg(&(psmouse)->ps2dev.serio->dev, \ 202 dev_info(&(psmouse)->ps2dev.serio->dev, \ 205 dev_warn(&(psmouse)->ps2dev.serio->dev, \ 208 dev_err(&(psmouse)->ps2dev.serio->dev, \ 211 dev_notice(&(psmouse)->ps2dev.serio->dev, \ 215 &(psmouse)->ps2dev.serio->dev, \
|
A D | elantech.c | 38 if (ps2_sliced_command(&psmouse->ps2dev, c) || in synaptics_send_cmd() 53 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_send_cmd() local 56 ps2_command(ps2dev, NULL, c) || in elantech_send_cmd() 57 ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO)) { in elantech_send_cmd() 71 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_ps2_command() local 77 rc = ps2_command(ps2dev, param, command); in elantech_ps2_command() 152 ps2_sliced_command(&psmouse->ps2dev, reg) || in elantech_read_reg() 207 ps2_sliced_command(&psmouse->ps2dev, reg) || in elantech_write_reg() 208 ps2_sliced_command(&psmouse->ps2dev, val) || in elantech_write_reg() 1403 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_detect() local [all …]
|
A D | synaptics.c | 98 struct ps2dev *ps2dev = &psmouse->ps2dev; in synaptics_detect() local 101 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 102 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 103 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 104 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in synaptics_detect() 105 ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO); in synaptics_detect() 651 serio_pause_rx(parent->ps2dev.serio); in synaptics_pt_start() 653 serio_continue_rx(parent->ps2dev.serio); in synaptics_pt_start() 663 serio_pause_rx(parent->ps2dev.serio); in synaptics_pt_stop() 665 serio_continue_rx(parent->ps2dev.serio); in synaptics_pt_stop() [all …]
|
A D | psmouse-smbus.c | 56 serio_rescan(smbdev->psmouse->ps2dev.serio); in psmouse_smbus_check_adapter() 81 &smbdev->psmouse->ps2dev.serio->dev); in psmouse_smbus_detach_i2c_client() 82 serio_rescan(smbdev->psmouse->ps2dev.serio); in psmouse_smbus_detach_i2c_client() 182 &psmouse->ps2dev.serio->dev); in psmouse_smbus_disconnect() 280 &psmouse->ps2dev.serio->dev, in psmouse_smbus_init()
|
A D | touchkit_ps2.c | 66 if (ps2_command(&psmouse->ps2dev, param, command)) in touchkit_ps2_detect()
|
A D | vmmouse.c | 456 psmouse->ps2dev.serio->phys); in vmmouse_init() 467 abs_dev->dev.parent = &psmouse->ps2dev.serio->dev; in vmmouse_init()
|
/linux-6.3-rc2/drivers/input/keyboard/ |
A D | atkbd.c | 204 struct ps2dev ps2dev; member 718 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_activate() local 725 dev_err(&ps2dev->serio->dev, in atkbd_activate() 727 ps2dev->serio->phys); in atkbd_activate() 741 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_deactivate() local 744 dev_err(&ps2dev->serio->dev, in atkbd_deactivate() 746 ps2dev->serio->phys); in atkbd_deactivate() 755 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_probe() local 768 ps2dev->serio->phys); in atkbd_probe() 822 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_select_set() local [all …]
|