Home
last modified time | relevance | path

Searched refs:psmouse (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v6.6/drivers/input/mouse/
Dpsmouse-base.c85 (void *) offsetof(struct psmouse, rate),
88 (void *) offsetof(struct psmouse, resolution),
91 (void *) offsetof(struct psmouse, resetafter),
94 (void *) offsetof(struct psmouse, resync_time),
119 struct psmouse *psmouse_from_serio(struct serio *serio) in psmouse_from_serio()
123 return container_of(ps2dev, struct psmouse, ps2dev); in psmouse_from_serio()
154 psmouse_ret_t psmouse_process_byte(struct psmouse *psmouse) in psmouse_process_byte() argument
156 struct input_dev *dev = psmouse->dev; in psmouse_process_byte()
157 u8 *packet = psmouse->packet; in psmouse_process_byte()
160 if (psmouse->pktcnt < psmouse->pktsize) in psmouse_process_byte()
[all …]
Dcypress_ps2.c29 static void cypress_set_packet_size(struct psmouse *psmouse, unsigned int n) in cypress_set_packet_size() argument
31 struct cytp_data *cytp = psmouse->private; in cypress_set_packet_size()
38 static int cypress_ps2_sendbyte(struct psmouse *psmouse, int value) in cypress_ps2_sendbyte() argument
40 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_sendbyte()
43 psmouse_dbg(psmouse, in cypress_ps2_sendbyte()
53 psmouse_dbg(psmouse, "sending command 0x%02x succeeded, resp 0xfa\n", in cypress_ps2_sendbyte()
60 static int cypress_ps2_ext_cmd(struct psmouse *psmouse, unsigned short cmd, in cypress_ps2_ext_cmd() argument
63 struct ps2dev *ps2dev = &psmouse->ps2dev; in cypress_ps2_ext_cmd()
75 rc = cypress_ps2_sendbyte(psmouse, cmd & 0xff); in cypress_ps2_ext_cmd()
77 rc = cypress_ps2_sendbyte(psmouse, 0x00); in cypress_ps2_ext_cmd()
[all …]
Dhgpk.c124 static int hgpk_discard_decay_hack(struct psmouse *psmouse, int x, int y) in hgpk_discard_decay_hack() argument
126 struct hgpk_data *priv = psmouse->private; in hgpk_discard_decay_hack()
136 psmouse_warn(psmouse, "detected %dpx jump in x\n", x); in hgpk_discard_decay_hack()
139 psmouse_warn(psmouse, "detected secondary %dpx jump in x\n", x); in hgpk_discard_decay_hack()
151 psmouse_warn(psmouse, "detected %dpx jump in y\n", y); in hgpk_discard_decay_hack()
154 psmouse_warn(psmouse, "detected secondary %dpx jump in y\n", y); in hgpk_discard_decay_hack()
168 psmouse_warn(psmouse, "scheduling recalibration\n"); in hgpk_discard_decay_hack()
169 psmouse_queue_work(psmouse, &priv->recalib_wq, in hgpk_discard_decay_hack()
185 static void hgpk_reset_hack_state(struct psmouse *psmouse) in hgpk_reset_hack_state() argument
187 struct hgpk_data *priv = psmouse->private; in hgpk_reset_hack_state()
[all …]
Dsentelic.c71 static int fsp_reg_read(struct psmouse *psmouse, int reg_addr, int *reg_val) in fsp_reg_read() argument
73 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_read()
84 psmouse_deactivate(psmouse); in fsp_reg_read()
121 psmouse_activate(psmouse); in fsp_reg_read()
122 psmouse_dbg(psmouse, in fsp_reg_read()
128 static int fsp_reg_write(struct psmouse *psmouse, int reg_addr, int reg_val) in fsp_reg_write() argument
130 struct ps2dev *ps2dev = &psmouse->ps2dev; in fsp_reg_write()
174 psmouse_dbg(psmouse, in fsp_reg_write()
181 static int fsp_reg_write_enable(struct psmouse *psmouse, bool enable) in fsp_reg_write_enable() argument
185 if (fsp_reg_read(psmouse, FSP_REG_SYSCTL1, &v) == -1) in fsp_reg_write_enable()
[all …]
Dpsmouse.h75 struct psmouse;
85 int (*detect)(struct psmouse *, bool);
86 int (*init)(struct psmouse *);
89 struct psmouse { struct
118 psmouse_ret_t (*protocol_handler)(struct psmouse *psmouse); argument
119 void (*set_rate)(struct psmouse *psmouse, unsigned int rate); argument
120 void (*set_resolution)(struct psmouse *psmouse, unsigned int resolution); argument
121 void (*set_scale)(struct psmouse *psmouse, enum psmouse_scale scale); argument
123 int (*reconnect)(struct psmouse *psmouse); argument
124 int (*fast_reconnect)(struct psmouse *psmouse); argument
[all …]
Dfocaltech.c35 int focaltech_detect(struct psmouse *psmouse, bool set_properties) in focaltech_detect() argument
37 if (!psmouse_matches_pnp_id(psmouse, focaltech_pnp_ids)) in focaltech_detect()
41 psmouse->vendor = "FocalTech"; in focaltech_detect()
42 psmouse->name = "Touchpad"; in focaltech_detect()
115 static void focaltech_report_state(struct psmouse *psmouse) in focaltech_report_state() argument
117 struct focaltech_data *priv = psmouse->private; in focaltech_report_state()
119 struct input_dev *dev = psmouse->dev; in focaltech_report_state()
149 static void focaltech_process_touch_packet(struct psmouse *psmouse, in focaltech_process_touch_packet() argument
152 struct focaltech_data *priv = psmouse->private; in focaltech_process_touch_packet()
173 static void focaltech_process_abs_packet(struct psmouse *psmouse, in focaltech_process_abs_packet() argument
[all …]
Delantech.c28 psmouse_printk(KERN_DEBUG, psmouse, \
35 static int synaptics_send_cmd(struct psmouse *psmouse, unsigned char c, in synaptics_send_cmd() argument
38 if (ps2_sliced_command(&psmouse->ps2dev, c) || in synaptics_send_cmd()
39 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in synaptics_send_cmd()
40 psmouse_err(psmouse, "%s query 0x%02x failed.\n", __func__, c); in synaptics_send_cmd()
50 static int elantech_send_cmd(struct psmouse *psmouse, unsigned char c, in elantech_send_cmd() argument
53 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_send_cmd()
58 psmouse_err(psmouse, "%s query 0x%02x failed.\n", __func__, c); in elantech_send_cmd()
68 static int elantech_ps2_command(struct psmouse *psmouse, in elantech_ps2_command() argument
71 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_ps2_command()
[all …]
Dsynaptics.c79 static int synaptics_mode_cmd(struct psmouse *psmouse, u8 mode) in synaptics_mode_cmd() argument
84 error = ps2_sliced_command(&psmouse->ps2dev, mode); in synaptics_mode_cmd()
89 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRATE); in synaptics_mode_cmd()
96 int synaptics_detect(struct psmouse *psmouse, bool set_properties) in synaptics_detect() argument
98 struct ps2dev *ps2dev = &psmouse->ps2dev; in synaptics_detect()
111 psmouse->vendor = "Synaptics"; in synaptics_detect()
112 psmouse->name = "TouchPad"; in synaptics_detect()
118 void synaptics_reset(struct psmouse *psmouse) in synaptics_reset() argument
121 synaptics_mode_cmd(psmouse, 0); in synaptics_reset()
207 static int synaptics_send_cmd(struct psmouse *psmouse, u8 cmd, u8 *param) in synaptics_send_cmd() argument
[all …]
Dalps.c248 static void alps_process_packet_v1_v2(struct psmouse *psmouse) in alps_process_packet_v1_v2() argument
250 struct alps_data *priv = psmouse->private; in alps_process_packet_v1_v2()
251 unsigned char *packet = psmouse->packet; in alps_process_packet_v1_v2()
252 struct input_dev *dev = psmouse->dev; in alps_process_packet_v1_v2()
510 static void alps_report_mt_data(struct psmouse *psmouse, int n) in alps_report_mt_data() argument
512 struct alps_data *priv = psmouse->private; in alps_report_mt_data()
513 struct input_dev *dev = psmouse->dev; in alps_report_mt_data()
524 static void alps_report_semi_mt_data(struct psmouse *psmouse, int fingers) in alps_report_semi_mt_data() argument
526 struct alps_data *priv = psmouse->private; in alps_report_semi_mt_data()
527 struct input_dev *dev = psmouse->dev; in alps_report_semi_mt_data()
[all …]
Dbyd.c227 struct psmouse *psmouse; member
236 static void byd_report_input(struct psmouse *psmouse) in byd_report_input() argument
238 struct byd_data *priv = psmouse->private; in byd_report_input()
239 struct input_dev *dev = psmouse->dev; in byd_report_input()
255 struct psmouse *psmouse = priv->psmouse; in byd_clear_touch() local
257 serio_pause_rx(psmouse->ps2dev.serio); in byd_clear_touch()
260 byd_report_input(psmouse); in byd_clear_touch()
262 serio_continue_rx(psmouse->ps2dev.serio); in byd_clear_touch()
273 static psmouse_ret_t byd_process_byte(struct psmouse *psmouse) in byd_process_byte() argument
275 struct byd_data *priv = psmouse->private; in byd_process_byte()
[all …]
Dvmmouse.c115 static void vmmouse_report_button(struct psmouse *psmouse, in vmmouse_report_button() argument
141 static psmouse_ret_t vmmouse_report_events(struct psmouse *psmouse) in vmmouse_report_events() argument
143 struct input_dev *rel_dev = psmouse->dev; in vmmouse_report_events()
144 struct vmmouse_data *priv = psmouse->private; in vmmouse_report_events()
157 psmouse_err(psmouse, "failed to fetch status data\n"); in vmmouse_report_events()
170 psmouse_err(psmouse, "invalid queue length\n"); in vmmouse_report_events()
197 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events()
200 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events()
203 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events()
223 static psmouse_ret_t vmmouse_process_byte(struct psmouse *psmouse) in vmmouse_process_byte() argument
[all …]
Dlogips2pp.c41 static psmouse_ret_t ps2pp_process_byte(struct psmouse *psmouse) in ps2pp_process_byte() argument
43 struct input_dev *dev = psmouse->dev; in ps2pp_process_byte()
44 u8 *packet = psmouse->packet; in ps2pp_process_byte()
46 if (psmouse->pktcnt < 3) in ps2pp_process_byte()
87 psmouse_dbg(psmouse, in ps2pp_process_byte()
113 static int ps2pp_cmd(struct psmouse *psmouse, u8 *param, u8 command) in ps2pp_cmd() argument
117 error = ps2_sliced_command(&psmouse->ps2dev, command); in ps2pp_cmd()
121 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_POLL | 0x0300); in ps2pp_cmd()
136 static void ps2pp_set_smartscroll(struct psmouse *psmouse, bool smartscroll) in ps2pp_set_smartscroll() argument
138 struct ps2dev *ps2dev = &psmouse->ps2dev; in ps2pp_set_smartscroll()
[all …]
Dlifebook.c132 static psmouse_ret_t lifebook_process_byte(struct psmouse *psmouse) in lifebook_process_byte() argument
134 struct lifebook_data *priv = psmouse->private; in lifebook_process_byte()
135 struct input_dev *dev1 = psmouse->dev; in lifebook_process_byte()
137 u8 *packet = psmouse->packet; in lifebook_process_byte()
141 if (psmouse->pktcnt != 3) in lifebook_process_byte()
144 switch (psmouse->pktcnt) { in lifebook_process_byte()
170 psmouse_warn(psmouse, in lifebook_process_byte()
199 static int lifebook_absolute_mode(struct psmouse *psmouse) in lifebook_absolute_mode() argument
201 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_absolute_mode()
205 error = psmouse_reset(psmouse); in lifebook_absolute_mode()
[all …]
Dtrackpoint.c104 static ssize_t trackpoint_show_int_attr(struct psmouse *psmouse, in trackpoint_show_int_attr() argument
107 struct trackpoint_data *tp = psmouse->private; in trackpoint_show_int_attr()
117 static ssize_t trackpoint_set_int_attr(struct psmouse *psmouse, void *data, in trackpoint_set_int_attr() argument
120 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_int_attr()
131 err = trackpoint_write(&psmouse->ps2dev, attr->command, value); in trackpoint_set_int_attr()
146 static ssize_t trackpoint_set_bit_attr(struct psmouse *psmouse, void *data, in trackpoint_set_bit_attr() argument
149 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_bit_attr()
164 err = trackpoint_toggle_bit(&psmouse->ps2dev, in trackpoint_set_bit_attr()
204 static bool trackpoint_is_attr_available(struct psmouse *psmouse, in trackpoint_is_attr_available() argument
207 struct trackpoint_data *tp = psmouse->private; in trackpoint_is_attr_available()
[all …]
Dpsmouse-smbus.c19 struct psmouse *psmouse; member
54 psmouse_dbg(smbdev->psmouse, in psmouse_smbus_check_adapter()
56 serio_rescan(smbdev->psmouse->ps2dev.serio); in psmouse_smbus_check_adapter()
76 psmouse_dbg(smbdev->psmouse, in psmouse_smbus_detach_i2c_client()
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()
116 static psmouse_ret_t psmouse_smbus_process_byte(struct psmouse *psmouse) in psmouse_smbus_process_byte() argument
121 static int psmouse_smbus_reconnect(struct psmouse *psmouse) in psmouse_smbus_reconnect() argument
123 struct psmouse_smbus_dev *smbdev = psmouse->private; in psmouse_smbus_reconnect()
126 psmouse_deactivate(psmouse); in psmouse_smbus_reconnect()
[all …]
DMakefile20 obj-$(CONFIG_MOUSE_PS2) += psmouse.o
28 psmouse-objs := psmouse-base.o synaptics.o focaltech.o
30 psmouse-$(CONFIG_MOUSE_PS2_ALPS) += alps.o
31 psmouse-$(CONFIG_MOUSE_PS2_BYD) += byd.o
32 psmouse-$(CONFIG_MOUSE_PS2_ELANTECH) += elantech.o
33 psmouse-$(CONFIG_MOUSE_PS2_OLPC) += hgpk.o
34 psmouse-$(CONFIG_MOUSE_PS2_LOGIPS2PP) += logips2pp.o
35 psmouse-$(CONFIG_MOUSE_PS2_LIFEBOOK) += lifebook.o
36 psmouse-$(CONFIG_MOUSE_PS2_SENTELIC) += sentelic.o
37 psmouse-$(CONFIG_MOUSE_PS2_TRACKPOINT) += trackpoint.o
[all …]
Delantech.h165 int (*send_cmd)(struct psmouse *psmouse, unsigned char c,
188 void (*original_set_rate)(struct psmouse *psmouse, unsigned int rate);
191 int elantech_detect(struct psmouse *psmouse, bool set_properties);
192 int elantech_init_ps2(struct psmouse *psmouse);
195 int elantech_init(struct psmouse *psmouse);
197 static inline int elantech_init(struct psmouse *psmouse) in elantech_init() argument
203 int elantech_init_smbus(struct psmouse *psmouse);
Dtouchkit_ps2.c40 static psmouse_ret_t touchkit_ps2_process_byte(struct psmouse *psmouse) in touchkit_ps2_process_byte() argument
42 unsigned char *packet = psmouse->packet; in touchkit_ps2_process_byte()
43 struct input_dev *dev = psmouse->dev; in touchkit_ps2_process_byte()
45 if (psmouse->pktcnt != 5) in touchkit_ps2_process_byte()
56 int touchkit_ps2_detect(struct psmouse *psmouse, bool set_properties) in touchkit_ps2_detect() argument
58 struct input_dev *dev = psmouse->dev; in touchkit_ps2_detect()
66 if (ps2_command(&psmouse->ps2dev, param, command)) in touchkit_ps2_detect()
80 psmouse->vendor = "eGalax"; in touchkit_ps2_detect()
81 psmouse->name = "Touchscreen"; in touchkit_ps2_detect()
82 psmouse->protocol_handler = touchkit_ps2_process_byte; in touchkit_ps2_detect()
[all …]
Dalps.h287 struct psmouse *psmouse; member
309 int (*hw_init)(struct psmouse *psmouse);
310 void (*process_packet)(struct psmouse *psmouse);
312 struct psmouse *psmouse);
326 int alps_detect(struct psmouse *psmouse, bool set_properties);
327 int alps_init(struct psmouse *psmouse);
Dfocaltech.h16 int focaltech_detect(struct psmouse *psmouse, bool set_properties);
19 int focaltech_init(struct psmouse *psmouse);
21 static inline int focaltech_init(struct psmouse *psmouse) in focaltech_init() argument
Dsynaptics.h207 int synaptics_detect(struct psmouse *psmouse, bool set_properties);
208 int synaptics_init_absolute(struct psmouse *psmouse);
209 int synaptics_init_relative(struct psmouse *psmouse);
210 int synaptics_init_smbus(struct psmouse *psmouse);
211 int synaptics_init(struct psmouse *psmouse);
212 void synaptics_reset(struct psmouse *psmouse);
Dhgpk.h37 struct psmouse *psmouse; member
50 int hgpk_detect(struct psmouse *psmouse, bool set_properties);
51 int hgpk_init(struct psmouse *psmouse);
Dbyd.h5 int byd_detect(struct psmouse *psmouse, bool set_properties);
6 int byd_init(struct psmouse *psmouse);
Dvmmouse.h13 int vmmouse_detect(struct psmouse *psmouse, bool set_properties);
14 int vmmouse_init(struct psmouse *psmouse);
Dlifebook.h11 int lifebook_detect(struct psmouse *psmouse, bool set_properties);
12 int lifebook_init(struct psmouse *psmouse);

12